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

Content deleted Content added
No edit summary
m Maintenance: Replacing addOnloadHook with native jQuery (mw:ResourceLoader/Migration_guide_(users)#addOnloadHook - phab:T130879)
Line 4:
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); } });
importScript('User:Ohconfucius/script/MOSNUM dates.js'); // [[User:Ohconfucius/script/MOSNUM dates.js]]
var book_source_URL = "http://www.amazon.com/gp/s?search-alias=stripbooks&field-isbn=MAGICNUMBER";