Scripts:Jump to mylist: Difference between revisions

From AniDB
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
This script 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).
This script 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).


<pre>
<pre>
Line 95: Line 95:
</pre>
</pre>


As usual, save as <something>.user.js (e.g. anidbbar.user.js) and install with greasemonkey.
As usual, save as <tt><something>.user.js</tt> (e.g. <tt>anidbbar.user.js</tt>) and install with greasemonkey.


[[Category:Development]][[Category:Misc]]
[[Category:Development]][[Category:Misc]]

Latest revision as of 14:12, 25 April 2009

This script 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).

// 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.net/*
// @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='5px';
   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='/perl-bin/animedb.pl?show=mylist'>all</a> | "+
      "<a href='/perl-bin/animedb.pl?show=mylist&char=0'>0-9</a> | "+
      "<a href='/perl-bin/animedb.pl?show=mylist&char=a'>a</a> | "+
      "<a href='/perl-bin/animedb.pl?show=mylist&char=b'>b</a> | "+
      "<a href='/perl-bin/animedb.pl?show=mylist&char=c'>c</a> | "+
      "<a href='/perl-bin/animedb.pl?show=mylist&char=d'>d</a> | "+
      "<a href='/perl-bin/animedb.pl?show=mylist&char=e'>e</a> | "+
      "<a href='/perl-bin/animedb.pl?show=mylist&char=f'>f</a> | "+
      "<a href='/perl-bin/animedb.pl?show=mylist&char=g'>g</a> | "+
      "<a href='/perl-bin/animedb.pl?show=mylist&char=h'>h</a> | "+
      "<a href='/perl-bin/animedb.pl?show=mylist&char=i'>i</a> | "+
      "<a href='/perl-bin/animedb.pl?show=mylist&char=j'>j</a> | "+
      "<a href='/perl-bin/animedb.pl?show=mylist&char=k'>k</a> | "+
      "<a href='/perl-bin/animedb.pl?show=mylist&char=l'>l</a> | "+
      "<a href='/perl-bin/animedb.pl?show=mylist&char=m'>m</a> | "+
      "<a href='/perl-bin/animedb.pl?show=mylist&char=n'>n</a> | "+
      "<a href='/perl-bin/animedb.pl?show=mylist&char=o'>o</a> | "+
      "<a href='/perl-bin/animedb.pl?show=mylist&char=p'>p</a> | "+
      "<a href='/perl-bin/animedb.pl?show=mylist&char=q'>q</a> | "+
      "<a href='/perl-bin/animedb.pl?show=mylist&char=r'>r</a> | "+
      "<a href='/perl-bin/animedb.pl?show=mylist&char=s'>s</a> | "+
      "<a href='/perl-bin/animedb.pl?show=mylist&char=t'>t</a> | "+
      "<a href='/perl-bin/animedb.pl?show=mylist&char=u'>u</a> | "+
      "<a href='/perl-bin/animedb.pl?show=mylist&char=v'>v</a> | "+
      "<a href='/perl-bin/animedb.pl?show=mylist&char=w'>w</a> | "+
      "<a href='/perl-bin/animedb.pl?show=mylist&char=x'>x</a> | "+
      "<a href='/perl-bin/animedb.pl?show=mylist&char=y'>y</a> | "+
      "<a href='/perl-bin/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.