Scripts:Jump to mylist: Difference between revisions

m
no edit summary
No edit summary
mNo edit summary
 
(2 intermediate revisions by 2 users 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 50: Line 50:
   div.style.background='#FFFFFF';
   div.style.background='#FFFFFF';
   div.style.color='#000000';
   div.style.color='#000000';
   div.style.opacity='0.50';
   div.style.opacity='0.75';
   div.style.border='1px solid black';
   div.style.border='1px solid black';
   div.style.padding='5px';
   div.style.padding='5px';
   div.style.MozBorderRadiusTopleft='6px';
   div.style.MozBorderRadiusTopleft='6px';
   div.style.fontFamily='sans-serif';
   div.style.fontFamily='sans-serif';
   div.style.fontSize='small';
   div.style.fontSize='smaller';
   div.style.textAlign='justify';
   div.style.textAlign='justify';
   div.style.whiteSpace='nowrap';
   div.style.whiteSpace='nowrap';
   div.style.zIndex=50;
   div.style.zIndex=50;
   div.innerHTML = "MYLIST: <a href='/perl-bin/animedb.pl?show=mylist'>all</a> | "+
   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=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=a'>a</a> | "+
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]]
1,633

edits

MediaWiki spam blocked by CleanTalk.
MediaWiki spam blocked by CleanTalk.