Bitcoin Forum
May 22, 2024, 02:43:10 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Simple extension/userscript to automatically check certain "Additional Options"  (Read 674 times)
poly (OP)
Member
**
Offline Offline

Activity: 84
Merit: 10


Weighted companion cube


View Profile
March 03, 2013, 10:41:46 AM
 #1

I've grown tired of checking the 'Don't use smilies' checkbox because I don't like how it looks, so I've made a simple userscript to automatically check it. It can also be used for other checkboxes too, like 'Return to this topic' or 'Notify me of replies'. Just change "check_smileys" to the ID of the checkbox.

JS:
Quote
window.onload = function(){
   if(document.getElementById("check_smileys")){
      document.getElementById("check_smileys").checked = true;
   }
}

(I told you it's simple! :)

If you want it to be packaged in a chrome extension, use this as manifest.json:

Quote
{
  "manifest_version": 2,
  "name": "SMF Uncheck Smilies",
  "description": "A simple extension that automatically checks 'Don't use smilies.'",
  "version": "1.0",
  "permissions": [
  "https://bitcointalk.org/"
  ],
  "content_scripts": [
   {
      "matches": ["https://bitcointalk.org/*"],
      "js": ["content.js"]
   }
  ]
}

Then just load it unpacked in Chrome.

poly | My Tip Jar
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!