User:Jeff in CA/common.js: Difference between revisions

Content deleted Content added
No edit summary
Tags: Mobile edit Mobile web edit
No edit summary
Line 4:
importScript('User:Theopolisme/afch-rewrite.js') // [[User:Theopolisme/afch-rewrite.js]];
importScript('User:Salix alba/Citoid.js');
;importScript( 'User:MusikAnimal/customWatchlists.js' ); // Backlink: [[User:MusikAnimal/customWatchlists.js]]
 
addOnloadHook(function() { var elems = document.getElementsByClassName('editsection'); for (i = 0; i < elems.length; i++) { var span = document.createElement('span'); var link = document.createElement('a'); link.href = '#top'; link.appendChild(document.createTextNode('back to top')); span.appendChild(document.createTextNode('[')); span.appendChild(link); span.appendChild(document.createTextNode('] ')); elems[i].insertBefore(span, elems[i].firstChild); } });