Files:Generic files: Difference between revisions

m
mNo edit summary
Line 40: Line 40:
Create a new bookmark in your browser and copy & Paste the following line into the url field of the bookmark:<br>
Create a new bookmark in your browser and copy & Paste the following line into the url field of the bookmark:<br>


:<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>
:<tt>javascript:(function(){try{var x="//table[@class='filelist']//tr[contains(@class,'genr')]/td[@class='check']/input",r=document.evaluate(x,document,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE,null),n;while(n=r.iterateNext())n.checked=true}catch(e){alert("Script threw: "+e)}})()</tt><br>
 


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 <b>expand all</b> ([[Image:Plus.gif]]) on the [[Animeentries|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 <b>expand all</b> ([[Image:Plus.gif]]) on the [[Animeentries|animeentry]] you want to add!
MediaWiki spam blocked by CleanTalk.
MediaWiki spam blocked by CleanTalk.