Feature Select all from this group: Firefox script

Want to help out? Need help accessing the AniDB API? This is the place to ask questions.

Moderator: AniDB

Lupin III.
Posts: 10
Joined: Fri Dec 31, 2004 1:39 am

Feature Select all from this group: Firefox script

Post by Lupin III. »

For everyone, who wanted the feature to select all the files of a group with a single click, I wrote a script for Firefox.

It displays a checkbox besides every name in the grouplist of an anime. Clicking this checkbox (de)selects all files of this group. For details read this thread:
http://www.anidb.net/forum/viewtopic.php?t=4093

In short: you have to install the greasemonkey Firefox-extension (http://greasemonkey.mozdev.org/) and then install the userscript located at http://www3.sympatico.ca/techniko/anidb.user.js (click the link and select "Install User Script" from the Tools-menu while the file is displayed in the browser-window)
Many thanks to TechNiko for providing the space for the script.

And that's all you got to do. Visit an anime listing to see it work!
Der Idiot
AniDB Staff
Posts: 1227
Joined: Fri Mar 21, 2003 10:19 am

Post by Der Idiot »

I had to check with exp first if he approved of this. As he did it's now also in the wiki:
http://www.anidb.net/wiki/index.php?tit ... fox_Script

note him approving this does not mean it will get added to the actual webinterface. it will always stay an inofficial "addon".

anyway thx for this. many people will like that ^^
TechNiko
Posts: 38
Joined: Thu Jun 30, 2005 5:07 am
Location: Quebec, Canada
Contact:

Post by TechNiko »

AniDB-Site-Enhancer Version 20051210.01
FireFox extension Greasemonkey userscript
by Lupin III

This script adds two new features to the AniDB.net anime pages. See Screenshot HERE
  • It allows you to select all files from a same group with a single click. Quickly add or remove files from your AniDB MyList for a whole series at once instead of adding them one at a time.
  • It allows you to vote for animes more precisely, with 2 decimals. Ex. Vote 8.25
Install:
  • Step 1 - Install the greasemonkey Firefox-extension (http://greasemonkey.mozdev.org/)
  • Step 2 - Install one of the userscripts (links below) by clicking the link and selecting "Install User Script" from your browser's [Tools] menu while the file is displayed in the browser window.
And that's all you got to do. Visit an AniDB anime page, expand all file entries with the (+) button and see it work!

Scripts:
Last edited by TechNiko on Sat Dec 10, 2005 3:56 pm, edited 4 times in total.
PetriW
AniDB Staff
Posts: 1522
Joined: Sat May 24, 2003 2:34 pm

Post by PetriW »

I don't think exp likes any script that allows people to add a lot of files to your mylist with very little effort. Some users have abused features like this to create stat whore mylists.
Der Idiot
AniDB Staff
Posts: 1227
Joined: Fri Mar 21, 2003 10:19 am

Post by Der Idiot »

PetriW wrote:I don't think exp likes any script that allows people to add a lot of files to your mylist with very little effort. Some users have abused features like this to create stat whore mylists.
i asked him about it and he said it's ok with him
[ 18:48:59 ] [ @DerIdiot ] btw exp: http://www.anidb.net/forum/viewtopic.php?t=4130
[ 18:49:03 ] [ @DerIdiot ] your thought on that?
[ 18:49:15 ] [ @DerIdiot ] if it's ok with you i would add it to the wiki
[ 18:56:15 ] [ @EXP[BUSY] ] i don't have anything against it @ firefox script
[ 18:56:20 ] [ @EXP[BUSY] ] so feel free to make a wiki entry
[ 18:56:55 ] [ @EXP[BUSY] ] the ppl who would actually use it aren't the ones we're concerned with :P
[ 19:06:57 ] [ @DerIdiot ] ok
[ 19:07:02 ] [ @DerIdiot ] justw anted to make sure
[ 19:07:30 ] [ @DerIdiot ] i was a bit concerned about it.
wiki updated with new info and relocated: http://www.anidb.net/wiki/index.php?tit ... fox_Script
Last edited by Der Idiot on Tue Aug 09, 2005 10:19 pm, edited 1 time in total.
Rar
AniDB Staff
Posts: 1471
Joined: Fri Mar 12, 2004 2:41 pm
Location: UK
Contact:

Post by Rar »

TechNiko: Freakin' wiki it, don't paste doccu here. The baka has got the ball rolling already.

Rar
DonGato
Posts: 1296
Joined: Sun Nov 17, 2002 9:08 pm
Location: The Pampas, The land of the Gaucho!
Contact:

Post by DonGato »

DerIdiot, don't know if you already added it or where you want to add it but you also have this bookmarklet for selecting all generics:

Code: Select all

javascript:var elems = document.getElementsByTagName(%22i%22); for(i=0; i<elems.length; i++){var elem = elems.item(i); if (elem.innerHTML == %22generic file%22){elem.parentNode.previousSibling.childNodes.item(1).checked = true;};} exit(0);
Amour
Posts: 640
Joined: Fri Oct 08, 2004 5:19 pm
Location: France

Post by Amour »

Oh, and is there the same thing for ed2k links by group?
Der Idiot
AniDB Staff
Posts: 1227
Joined: Fri Mar 21, 2003 10:19 am

Post by Der Idiot »

DonGato wrote:DerIdiot, don't know if you already added it or where you want to add it but you also have this bookmarklet for selecting all generics:

Code: Select all

javascript:var elems = document.getElementsByTagName(%22i%22); for(i=0; i<elems.length; i++){var elem = elems.item(i); if (elem.innerHTML == %22generic file%22){elem.parentNode.previousSibling.childNodes.item(1).checked = true;};} exit(0);
already in on the generic files page
darcon
Posts: 1
Joined: Sun Dec 04, 2005 8:22 pm

Post by darcon »

I upgraded to Firefox 1.5 and greasemonkey 0.6.4 and the script no longer works :(
Anyone else having this problem?
Rar
AniDB Staff
Posts: 1471
Joined: Fri Mar 12, 2004 2:41 pm
Location: UK
Contact:

Post by Rar »

Always happens with major Firefox upgrades, wait for the mod authors to release new versions. The grease is popular, won't be long.

Rar
Lupin III.
Posts: 10
Joined: Fri Dec 31, 2004 1:39 am

Post by Lupin III. »

The failure was due to some modification to the API of FF and GM and how GM interacts with FF. I've made some changes to the script to get it working again and sent it to TechNiko. I hope that it made it through the PM without errors and that he will exchange the scripts on his webspace soon.
Guest

Post by Guest »

wow that was quick, thanks for your hard work :D
TechNiko
Posts: 38
Joined: Thu Jun 30, 2005 5:07 am
Location: Quebec, Canada
Contact:

Post by TechNiko »

Website updated with the new version fo the scripts.
You can download them on the wiki of course.
exp
Site Admin
Posts: 2438
Joined: Tue Oct 01, 2002 9:42 pm
Location: Nowhere

Post by exp »

this script is likely to get broken by the css changes to the animepage which will be happening soon.
in the long run it is probably better to go into a browser independend direction by providing custom javascript files (the new anime page will be mostly generated by javascript code)

BYe!
EXP
Locked