Files:Generic files: Difference between revisions

Jump to navigation Jump to search
m
Line 37: Line 37:
==How can I easily add several generic files at once?==
==How can I easily add several generic files at once?==
Easy with a javascript bookmarklet.<br>
Easy with a javascript bookmarklet.<br>
Create a new bookmark in your browser and copy & Paste the following line into the url field of the bookmark:
Create a new bookmark in your browser and copy & Paste the following line into the url field of the bookmark:<br>
<pre>javascript:var j = 0; var n = prompt("How many?"); if (n<1) {exit(0);} var elems =  
 
document.getElementsByTagName("i"); for(i=0; i<elems.length; i++){ var elem = elems.item(i); if  
:<tt>javascript:var j = 0; var n = prompt("How many?"); if (n<1) {exit(0);} var elems = document.getElementsByTagName("i"); for(i=0; i<elems.length; i++){ var elem = elems.item(i); if (elem.innerHTML == "generic file"){ elem.parentNode.previousSibling.childNodes.item(1).checked = true; j++; if (j>=n) {break;} }; } exit(0); </tt><br>
(elem.innerHTML == "generic file"){ elem.parentNode.previousSibling.childNodes.item(1).checked =  
 
true; j++; if (j>=n) {break;} }; } exit(0); </pre>
If you move that bookmark now into a toolbar (FF: bookmark-toolbar; IE: links) you can use it like a button. Before using it you must do an "expand all" on the animeentry you want to add!
If you move that bookmark now into a toolbar (FF: bookmark-toolbar; IE: links) you can use it like a button. Before using it you must do an "expand all" on the animeentry you want to add!


Navigation menu

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