uberFAP

Talk about the Nmaps.net website.

Moderators: Rose, Sunset

Raigan and the Horse-Woman
Raigan and the Horse-Woman
Posts: 182
Joined: 2008.09.27 (02:14)
NUMA Profile: www.nmaps.net/user/sidke
Steam: www.steamcommunity.com/id/shagdish
Location: ⑨ 
Contact:

Postby sidke » 2010.08.09 (01:24)

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.
Last edited by sidke on 2010.08.13 (09:55), edited 18 times in total.

User avatar
Damn You're Fine
Posts: 378
Joined: 2008.12.12 (21:06)
NUMA Profile: http://nmaps.net/user/Leaff
MBTI Type: INFP
Location: The point at which two parellel lines intersect.

Postby Leaff » 2010.08.09 (01:25)

good plugin I approve
Image

User avatar
On the Psychic Highway
Posts: 290
Joined: 2009.11.16 (05:05)
NUMA Profile: http://nmaps.net/user/script
MBTI Type: INTJ
Location: On a boat

Postby Scrivener » 2010.08.09 (02:31)

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!
spoiler

<Uuni> i dont see the escape in religion


User avatar
Member
Posts: 25
Joined: 2008.09.26 (05:24)
NUMA Profile: http://nmaps.net/user/etdeshon

Postby etdeshon » 2010.08.09 (04:03)

I like it. Im not sure how to get it to work perfectly on Numa, but I love the idea.

User avatar
Smoothest Taint in the West
Posts: 3241
Joined: 2008.09.29 (14:22)
NUMA Profile: http://nmaps.net/user/ska
Steam: www.steamcommunity.com/id/
Location: Australia

Postby ska » 2010.08.09 (04:14)

alright! chrome ftw! great script, I've added sidke as a favourite author to show my gratitude!

User avatar
Yet Another Harshad
Posts: 449
Joined: 2008.10.29 (14:10)
NUMA Profile: http://nmaps.net/user/amomentlikethis
MBTI Type: ESFP
Location: England.
Contact:

Postby amomentlikethis » 2010.08.09 (04:25)

Could've mentioned the browsers on the NUMA news post. This is useless to me.
Hi.

User avatar
La historia me absolverá
La historia me absolverá
Posts: 2228
Joined: 2008.09.19 (14:27)
NUMA Profile: http://nmaps.net/user/maestro
MBTI Type: INTP
Location: Beijing
Contact:

Postby 乳头的早餐谷物 » 2010.08.09 (04:50)

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.
M E A T N E T 1 9 9 2

Image

User avatar
Member
Posts: 25
Joined: 2008.09.26 (05:24)
NUMA Profile: http://nmaps.net/user/etdeshon

Postby etdeshon » 2010.08.09 (04:52)

Oh. And I dont see that 'sync' link anywhere on the profile page. Maybe im doing something wrong?

User avatar
Average Time to Take Breakfast in Equador
Posts: 651
Joined: 2008.10.02 (00:03)
NUMA Profile: http://nmaps.net/user/rocket_thumped
MBTI Type: INFP
Contact:

Postby rocket_thumped » 2010.08.09 (05:20)

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.
Last edited by rocket_thumped on 2010.08.09 (06:31), edited 1 time in total.
Image

If you don't know what you're doing, you're doing it right.

User avatar
Plus (Size) Member
Posts: 59
Joined: 2010.04.24 (06:36)
NUMA Profile: http://nmaps.net/user/lsudny
MBTI Type: ISFP
Location: Poland
Contact:

Postby lsudny » 2010.08.09 (06:06)

amomentlikethis wrote:Could've mentioned the browsers on the NUMA news post. This is useless to me.
Agreed.
soundcloud | facebook

That is why I decline the title of Iron Cook and accept only the lesser title of Zinc Saucier, which I just made up. Also, it comes with double prize money!

Raigan and the Horse-Woman
Raigan and the Horse-Woman
Posts: 182
Joined: 2008.09.27 (02:14)
NUMA Profile: www.nmaps.net/user/sidke
Steam: www.steamcommunity.com/id/shagdish
Location: ⑨ 
Contact:

Postby sidke » 2010.08.09 (06:22)

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.
spoiler

辻菜摘が好きじゃー ヽ(´ー`)ノ sig by peking duck


User avatar
Yet Another Harshad
Posts: 449
Joined: 2008.10.29 (14:10)
NUMA Profile: http://nmaps.net/user/amomentlikethis
MBTI Type: ESFP
Location: England.
Contact:

Postby amomentlikethis » 2010.08.09 (07:32)

maki wrote:note that i said browser, and not internet explorer.
Nobody said anything about Internet Explorer. ^_^
Hi.

User avatar
Diagnosis Mohawk: Bahrain Cock Theory
Posts: 1405
Joined: 2008.09.23 (13:25)
NUMA Profile: http://nmaps.net/user/spawn_of_yanni
MBTI Type: ENFJ
Location: Pittsburgh

Postby Spawn of Yanni » 2010.08.09 (07:38)

I'm also sad about Opera difficulties but that's what I have Chrome lying around for, I guess. sidke, you are goddamn brilliant.
Image
feline disrespect from behind

Raigan and the Horse-Woman
Raigan and the Horse-Woman
Posts: 182
Joined: 2008.09.27 (02:14)
NUMA Profile: www.nmaps.net/user/sidke
Steam: www.steamcommunity.com/id/shagdish
Location: ⑨ 
Contact:

Postby sidke » 2010.08.09 (08:26)

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)

User avatar
Diagnosis Mohawk: Bahrain Cock Theory
Posts: 1405
Joined: 2008.09.23 (13:25)
NUMA Profile: http://nmaps.net/user/spawn_of_yanni
MBTI Type: ENFJ
Location: Pittsburgh

Postby Spawn of Yanni » 2010.08.09 (08:39)

OH GOD IT SO DOES

/me adds sidke to favourite authors.
Image
feline disrespect from behind

User avatar
Unlucky
Posts: 13
Joined: 2010.07.29 (06:28)
NUMA Profile: http://nmaps.net/user/

Postby BKPB58 » 2010.08.09 (11:36)

The Plug-in works GREAT!

I am using firefox so it's running smoothly.;)
"What's The Use Of Prolonging the inevitable?" ~Squeeky,Toy Story 2

Next Mappack Under Construction

User avatar
Intel 80486
Posts: 488
Joined: 2008.09.29 (04:14)
NUMA Profile: http://nmaps.net/user/epigone
Location: Iowa

Postby epigone » 2010.08.09 (15:31)

Nice work!
Member of the Metanet Forum community since June 3rd, 2006.


The Best of Epigone

User avatar
Moderator
Moderator
Posts: 1318
Joined: 2008.12.04 (01:16)
NUMA Profile: http://nmaps.net/user/maxson924
Location: Tampa
Contact:

Postby Rose » 2010.08.09 (16:14)

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.
Image

User avatar
Didn't get a name change in the middle of the TF2 thread.
Posts: 514
Joined: 2008.09.28 (04:50)
NUMA Profile: http://nmaps.net/user/heatwave21
MBTI Type: INFJ
Location: Visconsin
Contact:

Postby heatwave » 2010.08.09 (16:26)

Looks fantastic. Is there any possibility that you might make it into a Safari extension as well?
spoiler

Part of this community since 2007. — Play Subvein


Hawaii Five-Oh
Posts: 919
Joined: 2009.03.06 (19:50)

Postby blackson » 2010.08.09 (16:48)

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.

User avatar
The Konami Number
Posts: 593
Joined: 2009.02.05 (23:33)
NUMA Profile: http://nmaps.net/user/al__cair__raheakallan

Postby chocollama » 2010.08.09 (17:44)

man, im just lovin's it!
Image

User avatar
The number of seats in an Airbus A380
Posts: 558
Joined: 2008.11.13 (01:45)
NUMA Profile: http://nmaps.net/user/slayr
Location: Southern Ontario
Contact:

Postby Slayr » 2010.08.09 (18:07)

I'm not seeing the sync button anywhere, but this idea is really cool.

User avatar
Admin
Admin
Posts: 2332
Joined: 2008.09.27 (16:53)
NUMA Profile: http://www.nmaps.net/user/Aidiera :3
Steam: www.steamcommunity.com/id/
MBTI Type: INTJ
Location: Phoenix, Arizona

Postby aids » 2010.08.09 (18:22)

This keeps popping up.
uberFAP's cookie has been changed by another source since this page was loaded. <OK> to overwrite those changes?
Explaination?
Image

//--^.^--\\
\\.:.^.:.//

Raigan and the Horse-Woman
Raigan and the Horse-Woman
Posts: 182
Joined: 2008.09.27 (02:14)
NUMA Profile: www.nmaps.net/user/sidke
Steam: www.steamcommunity.com/id/shagdish
Location: ⑨ 
Contact:

Postby sidke » 2010.08.09 (19:09)

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=
spoiler

辻菜摘が好きじゃー ヽ(´ー`)ノ sig by peking duck


User avatar
Demon Fisherman
Posts: 1246
Joined: 2008.10.01 (23:37)
NUMA Profile: http://nmaps.net/squibbles
MBTI Type: ENFP
Location: Canberra

Postby squibbles » 2010.08.09 (19:27)

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.
spoiler

Nmaps.net

Tsukatu wrote:I don't know what it is, squibbles, but my brain keeps inserting "black" into random parts of your posts these days.
I totally just read that as, "I'd hate to be the only black guy stuck using v1.4."
[/ispoiler]


Who is online

Users browsing this forum: No registered users and 5 guests