Page 1 of 3

uberFAP

Posted: 2010.08.09 (01:24)
by sidke
The most elite favorite authors extension...
                                                               uberFAP


Developed for both Chrome and Firefox... and works in Opera!

Meet uberFAP (cool name, bro). This is a plugin that allows you to favorite specific authors, and have a customized map list with only those authors' maps. It doesn't interfere with NUMA at all (except maybe replace the 'active authors' link), and only provides additional features. Based on the original Favorite Authors Plugin, this was a complete redevelopment project whose main reason was to write it in a way that would allow me to implement new features more easily. I use an ever-so-slightly modified jQuery 1.4.2 library to make DOM integration a cinch. As far as features go, it keeps most of them and has a few more:

Retained Features:
 - A favorite toggle next to relevant author links
 - Highlighting of maps by authors you've favorited
 - A search term "!favorites" that lists maps by your favorite authors
 - An updates notification that lets you know when your favorite authors submit new maps (improved!)
 - A list of your favorite authors in your profile for easy access

New Features:
 - A really cute heart icon for the toggle :3
 - An entirely new server-integration feature
 - Upload your favorites to the server to share with others
 - View other users' favorite author map lists by searching "!favorites:username". If they don't have any results, tell them about this plugin and ask them to share!
 - Restore your favorite authors from the server. Useful if you're on a different computer or accidentally cleared your browser cache
 - A settings page to customize a few internal settings like update frequency
 - The ability to automatically sync your list the server whenever you make changes, as you can forget to press 'sync' each time
 - Clear your list, both locally and on the server. Sometimes you don't want people to know, and that's okay!

Installation:
Uninstall the original favorite authors plugin if you have it.

Firefox:
 - Obtain Greasemonkey
 - Install plugin via userscripts

Chrome:
 - Install plugin via userscripts

Opera:
 - In the menu, follow Settings > Preferences > Advanced > Content > Javascript Options
 - Click "Choose..." and select where your javascript plugins will load from. I suggest going to My Documents or the equivalent, creating a folder called "Opera Plugins", and using that. Then click OK.
 - On the userscripts page, right click 'Install' and click 'Saved Linked Content As...". Save this file in the folder you chose above.

Use:
You can favorite by clicking on the broken heart icon, and remove from your favorites by clicking on the heart icon. This is a toggle which display broken when not favorited, and a solid heart when favorited. REDUNDANCY, GET USED TO IT.
After you've favorited your fair share or fine fellows, you can view them by clicking 'Favorite Authors' in the submenu on the map pages. If you want to share your favorites with other people, head over to your user profile. On the top right of your profile section, you'll see 'Edit Settings' and 'Sync uberFAP'. Click 'Sync uberFAP' to send your favorite authors up to the server and share with everyone else.
Viewing other peoples' favorites, assuming they've shared, search for "!favorites:user". Note the exclamation mark, and make sure it's in there on your search. Also, replace author with the user's favorites you're searching =3=
Settings for uberFAP can be found under the normal settings for your account:
 - Frequency: Determines how often uberFAP will check NUMA for new maps by your favorite authors and update the 'X fav. updates' notification.
 - Results per author: How many maps will be pulled in from each author to populate favorite authors lists. Affects all lists you visit.
 - Automatically sync favorites: Each time you favorite or unfavorite an author, uberFAP will automatically send that change to the server to update your list.
 - Restore uberFAP: Clicking and confirming this will request your list from the server, and populate your favorite authors with those on the server.
 - Clear uberFAP: Clicking and confirming this will clear your favorite authors locally in your cookie, and on the server. People will no longer be able to see which authors you've favorited after this.

On occasion, you will get a message saying, "uberFAP's cookie has been changed..." This usually happens because you had multiple tabs open, and made different changes to your favorite authors on any two or more of them. As of yet, I haven't developed a method that merges these changes, and you'll have to either overwrite the changes made with the current tab by clicking OK, or choose to keep the changes already saved to the cookie, losing the current tab's changes, by clicking CANCEL. I will be working on a way to merge lists, eventually.


Screenshots:
Update notification:
Image

Favorite authors map listing:
Image

Profile favorite authors list:
Image

Sync link:
Image

uberFAP configuration on the settings page:
Image


Thanks to beta testers:
redmoon
leaphph
`
jerrod
Richard 'The Heartattack' Nelson

Security Information:
Some antiviruses think this is a rootkit or attack of sorts. I don't know if it's because there are eval() calls or that is sees the incredibly roundabout xss method I coded in, but there is nothing harmful that can happen from this plugin.

Assuming a problem will eventually arise:
Please, pretty please, message me on the forums or IRC. Preferably IRC since this is real-time and we can work issues out much quicker.
When an issue occurs, make sure you are using the latest version of what you are using. If there's still an issue, alongside telling me what is going on, also tell me what browser you're using. If you've been using the plugin already, and are just now having trouble, paste this code into your address bar:

Code: Select all

javascript:var j=document.cookie.split("; ");for(var x=0;x<j.length;x++){var c=j[x].split("=");if(c[0]==escape('vars')){prompt('',c[1])}};return false;
and paste me the text in the box that pops up.

Thanks.

Re: uberFAP

Posted: 2010.08.09 (01:25)
by Leaff
good plugin I approve

Re: uberFAP

Posted: 2010.08.09 (02:31)
by Scrivener
I'm glad I read this and noticed it was for Chrome; somewhere I had heard it only worked in ff. Downloaded, this is awesome. Thanks maki!

Re: uberFAP

Posted: 2010.08.09 (04:03)
by etdeshon
I like it. Im not sure how to get it to work perfectly on Numa, but I love the idea.

Re: uberFAP

Posted: 2010.08.09 (04:14)
by ska
alright! chrome ftw! great script, I've added sidke as a favourite author to show my gratitude!

Re: uberFAP

Posted: 2010.08.09 (04:25)
by amomentlikethis
Could've mentioned the browsers on the NUMA news post. This is useless to me.

Re: uberFAP

Posted: 2010.08.09 (04:50)
by 乳头的早餐谷物
amomentlikethis wrote:Could've mentioned the browsers on the NUMA news post. This is useless to me.
Yeah, boy, that's like five seconds of your life you're not going to get back. Or you could use a different browser or, you know, have some fucking respect.

Re: uberFAP

Posted: 2010.08.09 (04:52)
by etdeshon
Oh. And I dont see that 'sync' link anywhere on the profile page. Maybe im doing something wrong?

Re: uberFAP

Posted: 2010.08.09 (05:20)
by rocket_thumped
sforzan〆o wrote:
amomentlikethis wrote:Could've mentioned the browsers on the NUMA news post. This is useless to me.
Yeah, boy, that's like five seconds of your life you're not going to get back. Or you could use a different browser or, you know, have some fucking respect.
I love this plugin, well done sidke, you are my favorite mod bro.

Re: uberFAP

Posted: 2010.08.09 (06:06)
by lsudny
amomentlikethis wrote:Could've mentioned the browsers on the NUMA news post. This is useless to me.
Agreed.

Re: uberFAP

Posted: 2010.08.09 (06:22)
by sidke
i just want to say to anyone who comes here wanting to post about how it doesn't apply to you and you're up in arms because of it:
i don't want kids who are using internet explorer to be able to enjoy the result of my hard work, anyways

so either switch to a real browser or don't bother complaining, thank you


otherwise if you're using opera or (haha) safari, there are guides on running userscripts on your browsers and it's up to you to find them and try it. no guarantee on perfect functionality, though. if there are enough people using a specific browser that want compatibility, i'll definitely look into it. note that i said browser, and not internet explorer.

Re: uberFAP

Posted: 2010.08.09 (07:32)
by amomentlikethis
maki wrote:note that i said browser, and not internet explorer.
Nobody said anything about Internet Explorer. ^_^

Re: uberFAP

Posted: 2010.08.09 (07:38)
by Spawn of Yanni
I'm also sad about Opera difficulties but that's what I have Chrome lying around for, I guess. sidke, you are goddamn brilliant.

Re: uberFAP

Posted: 2010.08.09 (08:26)
by sidke
Spawn of Yanni wrote:I'm also sad about Opera difficulties but that's what I have Chrome lying around for, I guess. sidke, you are goddamn brilliant.
hey yanni, guess what
:>
i changed two lines and now it works perfectly on opera (latest version)

Re: uberFAP

Posted: 2010.08.09 (08:39)
by Spawn of Yanni
OH GOD IT SO DOES

/me adds sidke to favourite authors.

Re: uberFAP

Posted: 2010.08.09 (11:36)
by BKPB58
The Plug-in works GREAT!

I am using firefox so it's running smoothly.;)

Re: uberFAP

Posted: 2010.08.09 (15:31)
by epigone
Nice work!

Re: uberFAP

Posted: 2010.08.09 (16:14)
by Rose
maki wrote:i just want to say to anyone who comes here wanting to post about how it doesn't apply to you and you're up in arms because of it:
i don't want kids who are using internet explorer to be able to enjoy the result of my hard work, anyways

so either switch to a real browser or don't bother complaining, thank you


otherwise if you're using opera or (haha) safari, there are guides on running userscripts on your browsers and it's up to you to find them and try it. no guarantee on perfect functionality, though. if there are enough people using a specific browser that want compatibility, i'll definitely look into it. note that i said browser, and not internet explorer.
Win. Win. SO MUCH WIN.

Re: uberFAP

Posted: 2010.08.09 (16:26)
by heatwave
Looks fantastic. Is there any possibility that you might make it into a Safari extension as well?

Re: uberFAP

Posted: 2010.08.09 (16:48)
by blackson
rocket_thumped wrote:
sforzan〆o wrote:
amomentlikethis wrote:Could've mentioned the browsers on the NUMA news post. This is useless to me.
Yeah, boy, that's like five seconds of your life you're not going to get back. Or you could use a different browser or, you know, have some fucking respect.
I love this plugin, well done sidke, you are my favorite mod bro.
Hey now, watch it.

Re: uberFAP

Posted: 2010.08.09 (17:44)
by chocollama
man, im just lovin's it!

Re: uberFAP

Posted: 2010.08.09 (18:07)
by Slayr
I'm not seeing the sync button anywhere, but this idea is really cool.

Re: uberFAP

Posted: 2010.08.09 (18:22)
by aids
This keeps popping up.
uberFAP's cookie has been changed by another source since this page was loaded. <OK> to overwrite those changes?
Explaination?

Re: uberFAP

Posted: 2010.08.09 (19:09)
by sidke
Life247 wrote:This keeps popping up.
uberFAP's cookie has been changed by another source since this page was loaded. <OK> to overwrite those changes?
Explaination?
maki wrote:On occasion, you will get a message saying, "uberFAP's cookie has been changed..." This usually happens because you had multiple tabs open, and made different changes to your favorite authors on any two or more of them. As of yet, I haven't developed a method that merges these changes, and you'll have to either overwrite the changes made with the current tab by clicking OK, or choose to keep the changes already saved to the cookie, losing the current tab's changes, by clicking CANCEL. I will be working on a way to merge lists, eventually.
=3=

Re: uberFAP

Posted: 2010.08.09 (19:27)
by squibbles
I get that popup with totally unrelated tabs. It just happens.

Also, for some odd reason, I have arctic pony in my list...twice. O_o
I cannot remove one, without the other disappearing, and adding one also adds both.