userscripts.org Favourites

By Raffles Last update Sep 7, 2008 — Installed 4,231 times.

Post doesn't exist

Archived Comments (locked)

in
Subscribe to Archived Comments 58 posts, 20 voices



jerone Scriptwright

Ok, I tested a bit and found out that it only is when linkType is set to 2 (which i prefer).

p.s. Don't forget to update your update list above.

 
ozzii User

Thanks for the update.
I will test this at home. At work all is OK, but I didn't have updated the script.

 
Raffles Script's Author

As requested by jerone, I've added a "Refresh" link, next to the sorting links. You can tell when it's refreshing and when it's finished. While it's refreshing the stats, clicking the link again does nothing.

 
Raffles Script's Author

ozzii, forgive me, I didn't foresee this. I've reverted the name back to the original as it will probably cause issues for other people as well.

ozzii, I suggest you go to about:config, type in "favourites" and copy the line containing your favourites (double-click it and copy the value in the box). The name for it is greasemonkey.scriptvals.http://ratherodd.com//userscripts.org Favourites.favourites. Then reinstall the script from here.

If your favourites are still lost after that, add any random script to your favourites, then locate the same thing in about:config again and paste in the string you copied earlier.

jerone, I can't reproduce this. Everything is working fine on my end. It's probably something to do with the stupid name change. Try backing up the favourites string from about:config, and reinstalling the script from here.

I've thought about the refresh button before, it would be pretty easy.

About your other suggestion, I'm not exactly sure what you mean. Do you mean in search results and in the favourites table that is native to the site?

itsjareds, I don't understand what you mean. Do you mean that you only like the link that appears after "Comments Feed" with linkType 2 and that you want the other (native) one removed?

 
itsjareds Scriptwright

I would like if there could be linkType = 3, which removes the old favorites button and only uses yours.

I also like their buttons better :P

 
jerone Scriptwright

@ ozzii; this has to do with the name change. Maybe the author can add a solution.

@Raffles: i've got the latest version, and when i click 'x' on the favorites i get an error in FireBug:

l.parentNode has no properties
[Break on this error] undefined
Beside this error the scripts is deleted from the list, but as soon as i refresh the page it's back. Also the text "Remove from favourites" isn't reverted.
And the sorts for "author" & "date added" don't work.

Beside this i still love your script!

A suggestion: add an 'add to favourites' icon beside all scripts names in for example my personal favorites page and all script page would be very useful for the first time.
Another suggestion is a refresh button for updating stats.

 
ozzii User

After the update of this new version I have lost all my favourites.
So I must to disable "userscripts.org Favourites Everywhere" and keep
"userscripts.org Favourites" running.
Done something wrong ?

 
Raffles Script's Author

linkType 2 works now. It had broken because of a change in the site and a rather stupid XPath expression I was using. It's 37% better now, thanks for letting me know (I use linkType 1 so I would never have noticed).

I rather arbitrarily decided to use the famfamfam asterisk icon to make it stand out a little: . Let me know if you think it's horrible.

Jeton: I have thought of that before but it's an awful lot of hassle for a feature I don't use. If I suddenly find myself with 2 hours with nothing to do I might give it a go.

What do you mean with this:

While your script doesn't display them, it displays only three other scripts.

?

What "three other scripts"? My system and the site's are completely independent.

Regarding the title change, that's to make it a little less vague, since there other scripts about that deal with favourites on this site.

 
Jeton User

Can't you make this to "synchronize" with our Favorite scripts that we have already favored on our account?
I have my favorite scripts here: http://userscripts.org/users/50662/favorites

While your script doesn't display them, it displays only three other scripts.

 
Noxumbra Scriptwright

Weird thing: I like to use var linkType = 2;, but when I installed the new version of the script and changed it to 2, it stopped working. Or at least, there are no visual indicators (the "Favourites" link at the top nav bar, etc.). I've tried uninstalling and reinstalling, var linkType = 0; and var linkType = 1; seem to work fine, but I really love 2. Any ideas?

 
Raffles Script's Author

Yes, it would be possible, but that's not something I'm interested in myself, so I'm not going to do it. :)

 
alex. User

Would it be possible to also add a button on the scripts list page to add it to the favorites too?

 
Raffles Script's Author

You'll have to do that yourself. It would be trivial - all the CSS is at the bottom and you'd just need to add/change a few things to existing rules. E.g. to change the background colour of the main box, change the the "background" property for #favourites.

 
alex. User

Would it be possible to make the colours used in the popup customizable? I'm using a dark skin for user scripts and the orange looks really out of place.

 
Kactus Kooler User

Very nice script! Thanks :D

 
Raffles Script's Author

Good point, I didn't realise this because I test it with the live script.

It's fixed now. It uses sessionStorage (DOM Storage) to keep the data momentarily while the old script is replaced with the new one.

 
nettrotter Scriptwright

every time it is updated, it will lose all the formerly added data in the previous version of the script. I have to add again, to let alone those scripts who unluckily slipped my memory.

 
风的朋友 Scriptwright

great feature!

 
psyched Scriptwright

This is a truly awesome script.
Real nice work!

 
Raffles Script's Author

I don't think that's such a good idea. What about people who aren't members but still use the site and want to remember which their favourites are?

Making it work for several accounts is not something that would be useful for me and I doubt it would be useful for most people. Since I made this script primarily for myself (and I'm just putting it here in case anyone is interested), I don't think I'll add such a feature.

 
jerone Scriptwright

Maybe its an idea to make this script work only when you're logged on this site.
And with that idea use this script for several accounts with there own favourites.
Say what you think, gr J.

 
Raffles Script's Author

Minor update: Can now sort backwards and forwards. Also added a little image next to each sorting type to reflect direction list is currently sorted in.

 
Raffles Script's Author

It's similar, but in this version you can access them from anywhere on the site. In the one you link to, you have to go to a specific page to see the favourites.

 
matrixik Scriptwright

Is that work similar to http://userscripts.org/scripts/show/8911 ??

 
Raffles Script's Author

Good idea, I added the X.

Will try to integrate it with site's system when I have a bit more time as that will require some XHR magic.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel