Greasemonkey Script: Jump to mylist

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

Moderator: AniDB

Locked
belgabor
Posts: 21
Joined: Tue May 17, 2005 12:50 am

Greasemonkey Script: Jump to mylist

Post by belgabor »

Hi everybody,
I wrote a small greasemonkey script that attaches a floating bar to the bottom of anidb pages with direct links to the alphabetical mylist sections (like the selection bar if you view mylist). I don't know if anybody else finds it useful, but as it's written I can as well share it :D

Code: Select all

// AniDB MylistBar
// version 0.1
// 2006-02-07
// Copyright (c) 2006, belgaborNOSPAM(a)gmx.de
// Released under the GPL license
// http://www.gnu.org/copyleft/gpl.html
//
// --------------------------------------------------------------------
//
// This is a Greasemonkey user script.  To install it, you need
// Greasemonkey from http://greasemonkey.mozdev.org/
// Then restart Firefox and revisit this script.
// Under Tools, there will be a new menu item to "Install User Script".
// Accept the default configuration and install.
//
// To uninstall, go to Tools/Manage User Scripts,
// select "Animesuki Utility", and click Uninstall.
//
// --------------------------------------------------------------------
//
// Changelog
//
// v0.1
// - Basic functionality
//
// --------------------------------------------------------------------
// Note: Baseed upon a completely stripped down quickgallery by Jos van den Oever

// ==UserScript==
// @name		AniDB MylistBar
// @namespace		tag://belgaborNOSPAM(a)gmx.de,2006-02-07
// @description		Add a Mylist Bar on AniDB
// @include		http://anidb.info/*
// @exclude	   
// ==/UserScript==


(function() {
window.addEventListener("load", function(ev) {

var showit = function() {
	var div = document.createElement('div');
	div.style.display='block';
	div.style.position='fixed';
	div.style.bottom='1px';
	div.style.right='1px';
	div.style.background='#FFFFFF';
	div.style.color='#000000';
	div.style.opacity='0.75';
	div.style.border='1px solid black';
	div.style.padding='3px';
	div.style.MozBorderRadiusTopleft='6px';
	div.style.fontFamily='sans-serif';
	div.style.fontSize='smaller';
	div.style.textAlign='justify';
	div.style.whiteSpace='nowrap';
	div.style.zIndex=50;
	div.innerHTML = "Jump to mylist <a href='animedb.pl?show=mylist'>all</a> | "+
		"<a href='animedb.pl?show=mylist&char=0'>0-9</a> | "+
		"<a href='animedb.pl?show=mylist&char=a'>a</a> | "+
		"<a href='animedb.pl?show=mylist&char=b'>b</a> | "+
		"<a href='animedb.pl?show=mylist&char=c'>c</a> | "+
		"<a href='animedb.pl?show=mylist&char=d'>d</a> | "+
		"<a href='animedb.pl?show=mylist&char=e'>e</a> | "+
		"<a href='animedb.pl?show=mylist&char=f'>f</a> | "+
		"<a href='animedb.pl?show=mylist&char=g'>g</a> | "+
		"<a href='animedb.pl?show=mylist&char=h'>h</a> | "+
		"<a href='animedb.pl?show=mylist&char=i'>i</a> | "+
		"<a href='animedb.pl?show=mylist&char=j'>j</a> | "+
		"<a href='animedb.pl?show=mylist&char=k'>k</a> | "+
		"<a href='animedb.pl?show=mylist&char=l'>l</a> | "+
		"<a href='animedb.pl?show=mylist&char=m'>m</a> | "+
		"<a href='animedb.pl?show=mylist&char=n'>n</a> | "+
		"<a href='animedb.pl?show=mylist&char=o'>o</a> | "+
		"<a href='animedb.pl?show=mylist&char=p'>p</a> | "+
		"<a href='animedb.pl?show=mylist&char=q'>q</a> | "+
		"<a href='animedb.pl?show=mylist&char=r'>r</a> | "+
		"<a href='animedb.pl?show=mylist&char=s'>s</a> | "+
		"<a href='animedb.pl?show=mylist&char=t'>t</a> | "+
		"<a href='animedb.pl?show=mylist&char=u'>u</a> | "+
		"<a href='animedb.pl?show=mylist&char=v'>v</a> | "+
		"<a href='animedb.pl?show=mylist&char=w'>w</a> | "+
		"<a href='animedb.pl?show=mylist&char=x'>x</a> | "+
		"<a href='animedb.pl?show=mylist&char=y'>y</a> | "+
		"<a href='animedb.pl?show=mylist&char=z'>z</a>";
	document.body.appendChild(div);
}

showit();
 }, false);
})();
As usual, save as <something>.user.js (e.g. anidbbar.user.js) and install with greasemonkey.
Der Idiot
AniDB Staff
Posts: 1227
Joined: Fri Mar 21, 2003 10:19 am

Post by Der Idiot »

added to the wiki scripts section: http://wiki.anidb.info/w/Scripts:Jump_to_mylist
Rar
AniDB Staff
Posts: 1471
Joined: Fri Mar 12, 2004 2:41 pm
Location: UK
Contact:

Post by Rar »

Note, there's an issue here with GFDL, you should probably make them post 'em themselves, despite the fact the wiki has lots of stuff we can't really claim we have use over.

Rar
Locked