Jump to content

User:NewsAndEventsGuy/common.js: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
No edit summary
No edit summary
Line 1: Line 1:
////////////////////////////////////////////////////////////////////////////////////////
window.kephirUnclutter = { /* configuration */ };
////Activiate these lines to clean up formatted signatures
importScript('User:Kephir/gadgets/unclutter.js'); // [[User:Kephir/gadgets/unclutter]]
//window.kephirUnclutter = { /* configuration */ };
//importScript('User:Kephir/gadgets/unclutter.js'); // [[User:Kephir/gadgets/unclutter]]
////////////////////////////////////////////////////////////////////////////////////////




////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////

Revision as of 13:38, 3 August 2020

//////////////////////////////////////////////////////////////////////////////////////// 
////Activiate these lines to clean up formatted signatures
//window.kephirUnclutter = { /* configuration */ };
//importScript('User:Kephir/gadgets/unclutter.js'); // [[User:Kephir/gadgets/unclutter]]
//////////////////////////////////////////////////////////////////////////////////////// 



//////////////////////////////////////////////////////////////////////////////////////// 
// Commented out below is the code that I mentioned in the thread at
// Wikipedia_talk:WikiProject_JavaScript#Importscript_vs_just_putting_code_in_common.js
// 
//////////////////////////////////////////////////////////////////////////////////////// 
// mw.hook( 'wikipage.content' ).add( function( $content ) {
//    var href,
//    	links = $content.find( 'a[href^="#CITEREF"]' );
//
//    links.each( function (i, elem) {
//    	href = elem.getAttribute( 'href' ).substring(1); //skip the #
//        if ( 1 < 3) {
//            elem.parentNode.innerHTML += "harv error";}
//    } );
//});
////////////////////////////////////////////////////////////////////////////////////////

//importScript('User:NewsAndEventsGuy/HarvErrors-2019Aug14.js');
importScript( 'User:Cumbril/RefConsolidate_start.js' );
//importScript('User:Ohconfucius/script/MOSNUM dates.js'); // [[User:Ohconfucius/script/MOSNUM dates.js]]

mw.loader.load('//en.wikipedia.org/enwiki/w/index.php?title=User:Joeytje50/JWB.js/load.js&action=raw&ctype=text/javascript');