User:NewsAndEventsGuy/common.js: Difference between revisions
Appearance
Content deleted Content added
No edit summary |
No edit summary |
||
Line 16: | Line 16: | ||
//////////////////////////////////////////////////////////////////////////////////////// |
//////////////////////////////////////////////////////////////////////////////////////// |
||
importScript('User:NewsAndEventsGuy/HarvErrors-2019Aug14.js'); |
//importScript('User:NewsAndEventsGuy/HarvErrors-2019Aug14.js'); |
||
importScript( 'User:Cumbril/RefConsolidate_start.js' ); |
importScript( 'User:Cumbril/RefConsolidate_start.js' ); |
Revision as of 18:59, 16 August 2019
////////////////////////////////////////////////////////////////////////////////////////
// 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' );