User:Subfader~enwiki/monobook.js: Difference between revisions
Appearance
Content deleted Content added
No edit summary |
m Maintenance script moved page User:Subfader/monobook.js to User:Subfader~enwiki/monobook.js without leaving a redirect: Automatically moved page while renaming the user "Subfader" to "[[Special:CentralAuth/Subfa... |
||
(5 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
// [[User:Zocky/SearchBox.js]] |
|||
addOnloadHook(function () { |
|||
document.write('<script type="text/javascript" src="' |
|||
var tabs = document.getElementById('p-cactions').cloneNode(true); |
|||
+ 'http://en.wikipedia.org/enwiki/w/index.php?title=User:Zocky/SearchBox.js' |
|||
tabs.id = 'mytabs'; |
|||
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); |
|||
var listitems = tabs.getElementsByTagName('LI'); |
|||
for (i=0;i<listitems.length;i++) { |
|||
if(listitems[i].id) listitems[i].id = 'mytabs-' + listitems[i].id; |
|||
} |
|||
content = document.getElementById("content"); // Find the content div |
|||
content.parentNode.insertBefore(tabs, content.nextSibling); // Place tab list right after content div |
|||
}); |