Shop Mobile More Submit  Join Login

Information on Greasemonkey scripts

Journal Entry: Tue Jan 8, 2008, 10:41 PM
I have made a template for comments/explanations on my Greasemonkey (GM) scripts to be pasted in each deviation of this kind, but I thought it would be easier to put this in a permanent journal entry and to link there, instead of pasting the whole information.
Thus experimented users can skip this entirely, new users of the technology will find extended information, everybody can concentrate on the information specific to the shown script, and updates of such information is easily done in a central, unique location.


What is Greasemonkey?


It is an extension for the Firefox (FF) browser allowing to change the Web pages you are browsing, to improve your user experience.

In clear, that's a plug-in able to detect the pages you want to change (eg. pages on deviantART) and to run a JavaScript (JS) program (script) of your choice, which can alter the page, eg. by adding, removing, moving or changing elements, doing actions on user input, and so on.
You don't need to know JS programming to use them: just choose a script and install it, and you are good to go!

Note that GM scripts are known to run on Opera too, and I think there is a plug-in for Internet Explorer allowing that too. I also saw something called IE7Pro handling scripts like GM, but I guess scripts must be adjusted for it (more or less, depending on differences in Dom/CSS, calls of specific API, etc.).

For more information, I invite you to visit the related Web site.


How to install the GM scripts I provide?

  • Make sure you have FF installed with the GM extension!
  • Right-click on the Download link, choose the menu item to save the file to your disk (left click will display the code...)
  • Rename the saved file so it has an extension of .user.js - it is important for GM to recognize the script. The name can be changed too, I use deviantART-JumpToPage.user.js for example.
  • For some of my scripts, you might want to edit some options. Open the script in a text editor (Notepad if you have nothing else!) and search the lines starting with //$$ symbol. They contain instructions for setting changes. You can also edit the file after having installed it, and re-install it as below. Or use the Edit button in the GM script management dialog (see below).
  • Drag'n'drop the renamed script in the FF window. GM will ask if it must install it. Accept. You are done!
  • EDIT I finally opened a UserScripts.org account, so you can now just follow the link to the related page in my comments, and left-click on the Install this script button to install it. It might be a simpler procedure (but no editing before install...) and in some reported cases, the only one.


How to manage the installed GM scripts?


See the small monkey face icon in the status bar of FF: a left-click allows to deactivate it (you can reload the page to see it unaltered) and to re-activate it. A right-click allows you to manage the scripts you have installed. You can even edit the live scripts (eg. to change a hard-coded setting) if you activate the editor behind the Edit button: in the address bar, type about:config and Enter. Type grease in the Filter field, you will see a property called greasemonkey.editor. Double-click the line, and you will be able to paste the path to your favorite text editor there.

Note that GM doesn't use the original drag'n'dropped scripts, but a copy located in the profile directory. The Edit button opens these copies.


How to find GM scripts for deviantART?


Of course, you can find some of mine in my gallery:
  • Friends List improvements -- Eases moving a deviant to a category, sort columns, check/uncheck all items in a column.
  • Watching you? -- Shows an icon next to the deviant name if the deviant you visit is among your watchers.
  • Jump to page -- Adds a navigation item to skip pages in paged lists (comments, deviants, etc.)
  • Deviation statistics Displays on the deviation page some percentages: faves per view, faves per comment, comments per view. Also displays word count on literature deviations.
  • deviantART improvements (already using it, coming soon) -- Renames the tab, adds a combo box to jump to various parts of your account.
  • Miscat reporting helper This one, I won't release it, in fear of abuses. But I am willing to provide it to any serious miscat hunter: it adds a direct link from a category browse page to a report violation page, and a button to check the file type of a deviation. It improves the report page, showing the file types (to track type miscats in Flash or animation galleries), selecting the type of violation in the combo, putting focus in the description and even pre-filling it (to be completed/corrected!) and even showing the deviations of this deviant in a given category.


And there are lot of good scripts (and extensions) listed by the Mozilla club!


Add a Comment:
 
:icongothic-anomie:
gothic-anomie Featured By Owner Nov 19, 2008
When I right click on Download (trying to download watching you) I don't get an option to save file to disk. I've asked others, and they have the same problem. I have greasemonkey installed and enabled on Firefox. Is there another way to get it to work?
Reply
:iconphilho:
philho Featured By Owner Nov 20, 2008  Hobbyist Traditional Artist
On which browser?
With FF3 on Windows, it works for me. (It might say something like "save linked stuff" or something...)
Did you tried to go to UserScripts.org page?
Reply
:icongothic-anomie:
gothic-anomie Featured By Owner Nov 20, 2008
Oooh yeah, it says 'save link'

I'll try that, thanks!
Reply
:icondare-to-disgrace:
dare-to-disgrace Featured By Owner Nov 6, 2008  Hobbyist Traditional Artist
I don't get how you add the scripts :XD:. I downloaded Greasemonkey, and the watching you? script... and now I don't know what to do.
Reply
:iconphilho:
philho Featured By Owner Nov 7, 2008  Hobbyist Traditional Artist
Open Firefox. Drag'n'drop Greasemonkey in the window. FF should ask you if you want to add this extension. Accept. Restart Firefox.
Now drag'n'drop the script (with extension .user.js) on FF. It (actually GM) should ask you if you want to add the script. Accept. It should work now. Don't forget to scan your list of watchers... :-)
Reply
:icondare-to-disgrace:
dare-to-disgrace Featured By Owner Nov 7, 2008  Hobbyist Traditional Artist
Thank you! :heart:
Reply
:icondare-to-disgrace:
dare-to-disgrace Featured By Owner Nov 6, 2008  Hobbyist Traditional Artist
never mind XD
Reply
:iconmocinno:
mocinno Featured By Owner Nov 2, 2008  Hobbyist
Thank you!
Reply
:iconmarcieness:
marcieness Featured By Owner Aug 4, 2008  Hobbyist Traditional Artist
I tried installing it through the userscript way and I dont know how to activate it. it tells me its successfully activated but then when i visit someones page it doesnt work?
Reply
:iconphilho:
philho Featured By Owner Aug 5, 2008  Hobbyist Traditional Artist
I suggest you read the instructions. Particularly the part on scanning the list of watchers. If there is anything unclear, tell me so I improve. Thanks.
Reply
:iconmarcieness:
marcieness Featured By Owner Aug 9, 2008  Hobbyist Traditional Artist
I tried reading and re-reading but I just can't seem to understand how to get it to work. *Sigh* oh well.
Reply
:iconiznogood:
IzNoGooD Featured By Owner Aug 4, 2008
hmmmmm just saw the button on the watchers list.. but recognizes only 20 of them :S :S :S
Reply
:iconphilho:
philho Featured By Owner Aug 5, 2008  Hobbyist Traditional Artist
That's because you scanned the list of recent watchers, not the full list (click on Complete List, and the button in the pop-up).
Reply
:iconiznogood:
IzNoGooD Featured By Owner Aug 5, 2008
i feel so blond :(
Reply
:iconiznogood:
IzNoGooD Featured By Owner Aug 4, 2008
i cant find what i do wrong..

monkey ok (on botton right corner with colour)

with right click lists the script with the checked symbol infront...

thats all

cant see how i can scan who watches me :S
Reply
:iconglitterdarkstar:
glitterdarkstar Featured By Owner Aug 4, 2008
I installed it from greasemonkey.org, I see the monkey on the bar of my pc, but I don't see who watchs me :(
Reply
:iconphilho:
philho Featured By Owner Aug 4, 2008  Hobbyist Traditional Artist
Did you do a scan of your watcher list? Do you see the buttons to do the scan? Do it from the full list the first time.
Reply
:iconglitterdarkstar:
glitterdarkstar Featured By Owner Aug 4, 2008
mmm no ! I don't see it
Reply
:iconphilho:
philho Featured By Owner Aug 4, 2008  Hobbyist Traditional Artist
If you right-click on the monkey icon (bottom-right of FF window), do you see the script name, checked?
Reply
:iconglitterdarkstar:
glitterdarkstar Featured By Owner Aug 4, 2008
eheh it works now


many thanks it is a very nice script
Reply
:iconinspectorlupus:
InspectorLupus Featured By Owner Aug 3, 2008
I seem to have a problem. I have FF and Greasmonkey, and I can successfully download your scripts.
But when I try to install them, I get an error screen like this:

Script: C:\Users\Admin\Downloads\19411.user.js
Line: 63
Char: 2
Error: Syntax error
Code: 800A03EA
Source: Microsoft JScript compilation error



Don't really know what's the problem. ^^;
Reply
:iconphilho:
philho Featured By Owner Aug 4, 2008  Hobbyist Traditional Artist
Uh? Do you tried to double-click it? By default JS files are run by Windows' script interpreter.
You have to drag'n'drop the script in Firefox.
Reply
:iconpriya925:
priya925 Featured By Owner Aug 3, 2008
whenever I try to download any of the scripts it comes up with error...
Reply
:iconphilho:
philho Featured By Owner Aug 3, 2008  Hobbyist Traditional Artist
What kind of error? How do you try to download? Do you have Greasemonkey?
Reply
:iconcoolplaceonearth:
coolplaceonearth Featured By Owner Mar 31, 2008
hey having problems with Watching you on Deviant, um.. i have firefox 2.0 and Greasemonkey Extention v0.7 which both say are the newest version.

i have the script.. i apply it on.. it looks all ok.. i log in one of the beta / sub accounts.. i visit a page that i know is watching me as well.. and i dont see any changes applyed?

is there anything that i would have missed?
Reply
:iconphilho:
philho Featured By Owner Apr 1, 2008  Hobbyist Traditional Artist
Thanks for the detailed report. But I still to ask some questions, starting by the basis (sorry if it sounds silly):
- Is the Greasemonkey (GM) icon smiling and in colors?
- If you right-click on it, do you see deviantART - Watching you? script and checked?
- Did you scanned the list of watchers for this account?
Eg. I just went to the page of a recent watcher, saw no icons. I came back to my profile, clicked on the Update watcher list button, visited the watcher again and saw the icon. So, AFAIK, nothing is broken to date (such scripts can break if dA changes pages, etc.).
Reply
:icondreamstatic:
DreamStatic Featured By Owner Dec 25, 2007  Hobbyist Traditional Artist
Hello!

Excellent scripts! I have an idea for one, but not the skill to execute it. It is along the lines of your current Who is watching you script. I have always wished when I was browsing favorites, it would put a little icon or something to distinguish those who I was already watching.

For instance, I click on your favourites, they all load, the people that are on my watchlist already would have a little icon beside their name, or something so I know I don't need to click on them to investigate further, because I am already watching them.

Hopefully this makes some kind of sense, hehe. :)

Anyhow, love your existing offerings, just another bit of food for thought.
Reply
:iconphilho:
philho Featured By Owner Dec 26, 2007  Hobbyist Traditional Artist
Interesting idea, although I am not sure to see the point. Sometime I watch people but didn't have time to fully inspect their gallery, so if I find one of their works on somebody else's favourites, without knowing it, I would be happy to (re-)discover it.
And I have to grab the list of people you watch, it is another matter (possible, but still some work).
Reply
:icondreamstatic:
DreamStatic Featured By Owner Dec 26, 2007  Hobbyist Traditional Artist
I knew it wouldn't be easy. :) And I do understand some would not utilize it, as is with all scripts. However, when I add someone to my watchlist, I go thru their entire gallery to "catch-up" so I only need to view the new art. So afraid I may miss something. :) Anyhow, thank you for the reply and the great scripts. Keep them coming.

Hope you have Happy Holidays.
Reply
:iconmousemakesmess:
MouseMakesMess Featured By Owner Dec 23, 2007  Hobbyist Photographer
Heylo :)

I've done as you've said but when I drag the file into the FF windows it just gives me the code and GM doesn't ask me to install it.

Please can you advise me?

Thank you. :)

xx
Reply
:iconphilho:
philho Featured By Owner Dec 26, 2007  Hobbyist Traditional Artist
Yes, some people have trouble installing GM scripts this way. Perhaps I should put them on UserScripts.org, I have to create an account, and update them each time there... :(
Anyway, let me ask some questions, they are obvious, sorry for that, but sometime one can overlook simple things.
I will suppose GM is installed in Firefox. Did you installed other scripts before?
Is your GM activated? The little monkey head in the status bar (bottom right) must be smiling and colored. If I deactivate it (icon grayed out and sad), indeed FF displays the code I drag in the window.
Of course, the file must be named <something>.user.js, a simple .js file as dA sends doesn't activate GM.
Well, that's all I can think of right now, if none of the issues above apply, I will create a userscripts account.
Reply
:iconmousemakesmess:
MouseMakesMess Featured By Owner Dec 26, 2007  Hobbyist Photographer
Yep GM is installed. :)
Yep it's activated, and I've renamed the file properly. :)

I remember that I had this problem before and I managed to fix it but I can't remember how.
Reply
:iconphilho:
philho Featured By Owner Dec 27, 2007  Hobbyist Traditional Artist
OK, I added my three scripts to UserScripts.org and I have put a link to the corresponding pages in their descriptions. I hope it will make installation of my scripts much easier!
Reply
:iconmousemakesmess:
MouseMakesMess Featured By Owner Dec 28, 2007  Hobbyist Photographer
Thank you. :)
I'm sorry to be such a pain.
Reply
:iconphilho:
philho Featured By Owner Dec 28, 2007  Hobbyist Traditional Artist
Not at all, you weren't the only one with this problem, and it motivated me to do this move, which is a good thing.
Reply
:iconmousemakesmess:
MouseMakesMess Featured By Owner Dec 28, 2007  Hobbyist Photographer
:)
Thank you for your understanding. :)
I love your greasemonkey scripts. :)
Reply
Add a Comment:
 
×

:iconphilho: More from philho


More from DeviantArt



Details

Submitted on
January 8, 2008
Link
Thumb

Stats

Views
3,958
Favourites
0
Comments
36
×