Jump to content

User:NewsAndEventsGuy/common.js

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by NewsAndEventsGuy (talk | contribs) at 16:11, 25 August 2019. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
//////////////////////////////////////////////////////////////////////////////////////// 
// 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:Dl2000/DateFix.js');