Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install
Userscripts.org Favorites
Allows users to store and view their favorite scripts on userscripts.org
Version History
Version 0.1 (2005.10.4) - Initial release
Version 0.2 (2005.10.5) - Fixed the multi-add bug pointed out by Wiser.
Version 0.3 (2005.10.5) - Added import/export feature

A blue (+) button appears to the left of a script being viewed, clicking on it will mark the script as your favorite, which can then be viewed by clicking the new Favorites button in the main menu bar at the top of the site, next to Random. A dimmed plus icon means the script has already been added.

The favorites view allows you to jump to a favorite script, and also to remove it by clicking the blue (x) to its left.

Now, it is possible to import an export your userscript favorites! Clicking the link shown above, found in the Favorites submenu, a text area will be revealed containing the current favorites in a delimitered format. You can keep that string elsewhere, and import it at a later time by pasting it into the text area (possibly overwriting its contents) and click the Import Favorites button. The favorites should now be updated, provided you entered a valid favorites string.
|
|
I've been happy with this script for over a year now. Thank you. |
|
|
BAMFC, make sure you read Junk Blocker's comments below. |
|
|
I'm not sure what I've done wrong, but I've installed this script successfully and navigated to different scripts, but nowhere do I get any blue plus-signs, and there's no "favorites" item added to my menu. I have double checked, and the script is enabled. Any suggestions? |
|
|
Bugger bugger bugger Looks like i cant post the code here as it gets translated into an actual link. If you have trouble with the import export link, line 51 of the original script is where you need to start looking |
|
|
And we'll try again with some code tags...
One more alteration of the code to get the import export link working
Line 51 (the first one of the out+= block of lines)
OLD:
out += "
NEW:
out += "
|
|
|
One more alteration of the code to get the import export link working
Line 51 (the first one of the out+= block of lines)
OLD:
out += " click to export or import favorites... |
|
|
Layout changed. New line 20 should be: var nav = document.evaluate("//div[@id='header']/ul[1]/li[5]", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); |
|
|
Couple of changes to give most of the functionality back. 1) Change one line at line 20 Old: var nav = document.evaluate("//ul[@id='menu']/li[5]", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); New: var nav = document.evaluate("//ul[@id='nav']/li[5]", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); 2) Replace 2 lines around line 107: Old: var link = document.evaluate("//div[@id='content']/div[@id='name']/a[1]", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); var script = link.snapshotItem(0); New: var script = document.evaluate("//div[@id='content']/h1", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null).snapshotItem(0); |
|
|
An excellent script! Great idea which could be modified for many sites! |
|
|
How difficult would it be to say create this for the addons.mozilla.org extension and perhaps even theme archives. This would make my life so much easier if I could avoid checking the installed ext to see if I already have it. I would love to have a list of all the extensions that interested me. |
|
|
Added the import/export feature! |
|
|
Fluke or not, I'm sorry that it happened (I've had to re-add a bunch of times when testing the script and I know how tedious it can be) and am thinking of adding an import/export feature just in case. |
|
|
I do not have the entry you discussed in my about:config (hence the name change wasn't a factor). However, upon reinstalling again (as a test), I kept my scripts so I guess it was one time fluke. If it happens again, I'll let you know. |
|
|
facted, reinstalling the script, even newer versions, should not clear the previously saved preferences, provided that I do not change the name of the script. The script name, in my case "Userscripts.org Favorites" is used by the greasemonkey GM_getValue and GM_setValue functions, and it is then used, by name, as a value in your firefox preferences (if you want to see the actual string I store, navigate to about:config and filter by greasemonkey. You should see your favorites in the greasemonkey.scriptvals.userscripts.org/Userscripts.org Favorites.favorites preference. Now, I did change the name of the script once (you can see from the screenshots that it used to be called "Userscript Favorites" and if you got the script in that transitional time, you might have lost your bookmarks then. Check your about:config for greasemonkey.scriptvals.userscripts.org/Userscript Favorites.favorites key, and if you have that, then that's what the problem is. In I have tested removing the script, closing Firefox, reopening and reinstalling from the site, and my saved bookmarks were retained. I f you can reproduce this problem still, please comment on the exact steps, and I will submit a fix for it. |
|
|
Small complaint, though not sure if this can be fixed: installing the new version of the script removed all my previous favorites. Is that an expected action? |
|
|
Thanks for fixing that small issue. Also, I'd like to thank you for setting an example on what a script description should really be like. A good description, pictures, and even GASP...a changelog!!! THANK YOU. |
|
|
Awesome! Yeah this is absolutely a planned feature. Trac/SVN is down right now due to DAV issues with lighttpd, but I'll try to get this back up ASAP and if you'd like to submit a patch that would be very cool! |
|
|
I fixed the multi-add bug, thanks Wiser! This should resolve adding even when the button is grayed out, and also all the duplicate entries being removed from the Favorites view (its an issue stemming from this original problem). As for Favorites overwriting the current page... that's something I'm thinking about changing, hopefully without opening new windows... |
|
|
Also, when you go to the Favorites list, the only way to go back to the script you were viewing is to either click on its link or to refresh the page. Also, to add to my previous comment, removing just one of the extra entries removes them all (only shows up after refresh). And upon further testing, it seems like this bug only happens if you click on the button after adding it to the list and you haven't navigated away from the page yet. |
|
|
Found a bug... even though the + is grayed out, clicking on it will add another entry of the script into your Favorites list. |
|
|
agreed. Should be core functionality included in the userscript interface, but I'll take it anyway I can get it :) |
|
|
superb :) |
You could comment on this script if you were logged in.
