So pick a website you want to change the background of and put it in the box (here I'm using and set the other fields as appropriate. This first script is going to set the background of a page to white – very useful indeed if you come across a page whose author has a fondness for eyeball-searing pink, or the sort of repeating background image that generates a headache within seconds. If you have no include rule, Greasemonkey assumes *, ie, that every URL is matched, so the script will run on every page you load. If an include rule is matched and no exclude rule is matched, the script will run. By default, the include box will contain the page you were on when you clicked the new script option, but you're free to delete that. You can also use wildcards for parts of names: will match any page whose path begins with f, on any server in the domain. So, com/* will match and all pages starting with that URL (whereas without the asterisk will just include the front page). The 'include' and 'exclude' rules govern on which sites a script will run, and can include wildcards. It's a very good idea to fill this field in, even for your own scripts – you may wind up with stacks of the things and they'll be a lot easier to manage if you provide extra clues about which is which. 'Description' is for a human-readable line describing what the script does. Alternatively, you can use or if you're intending to upload it to when you're done, you can use that.Ĭurrent versions of Greasemonkey won't allow you to leave it blank. There are a couple of things you can do here: the first one is to use your own website as the domain name. If you try to install a script that has the same name as an already-installed one, it's the namespace that governs whether it will overwrite the old one (if the namespace is the same) or co-exist with it (if they're different). The 'namespace' is to avoid your script clashing with others. The 'name' is just the name of your script – it's best to choose something that obviously indicates what it does, for ease of script management later on. Click that and you'll get a dialog looking a bit like the box on the right. Right-click on that and you'll get a menu that includes the option "New User Script". In your Firefox window, once you've downloaded and installed Greasemonkey, there'll be a little monkey face in the right-hand corner of the status bar. Greasemonkey provides a helpful dialogue to make writing a script as straightforward as possible.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |