User:NewsAndEventsGuy/common.js: Difference between revisions
Appearance
Content deleted Content added
replace first linke (mw.hook....) with original jQuery(document).ready(function($) |
Installing User:Enterprisey/archiver.js (script-installer) |
||
(30 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
importScript("User:The Transhumanist/SearchSuite.js"); //enhanced search features |
|||
//In my last test, there was no problem. In the last test the entire |
|||
//contents of this file were |
|||
⚫ | |||
//and test.js consisted of the javascript code below, which I have copied here |
|||
//in its entirety. I expect the show button on the "same paragraph" test |
|||
//page to be disabled for reasons unknown. The test pages are |
|||
// [[User:NewsAndEventsGuy/ShowButtonTest-DifferentParagraphs]] |
|||
// [[User:NewsAndEventsGuy/ShowButtonTest-SameParagraph]] |
|||
importScript('User:Ohconfucius/script/MOSNUM dates.js'); // [[User:Ohconfucius/script/MOSNUM dates.js]] |
|||
jQuery(document).ready(function($) { |
|||
⚫ | |||
⚫ | |||
DiffPreviewFindLineSetup(); //click on preview text to jump to my work in the editing window |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
//// should help sort contribs and the like by section //// |
|||
⚫ | |||
//mw.loader.load("https://www.mediawiki.org/enwiki/w/index.php?title=User:PerfektesChaos/js/resultListSort/r.js&action=raw&bcache=1&maxage=86400&ctype=text/javascript"); |
|||
// Save this comment in case it sheds light |
|||
// IDs can contain characters like . that have meaning in selectors |
|||
/// I think this one suppresses html in signatures ///// |
|||
// use $.escapeSelector to make sure they are escaped |
|||
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 ) { |
|||
⚫ | |||
⚫ | |||
// |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
//////////////////////////////////////////////////////////////////////////////////////// |
|||
⚫ | |||
//importScript( 'User:Cumbril/RefConsolidate_start.js' ); |
|||
importScript( 'User:Evad37/OneClickArchiver.js' ); // Backlink: [[User:Evad37/OneClickArchiver.js]] |
|||
importScript('User:Enterprisey/archiver.js'); // Backlink: [[User:Enterprisey/archiver.js]] |
Latest revision as of 20:41, 30 December 2022
importScript("User:The Transhumanist/SearchSuite.js"); //enhanced search features
importScript('User:Ohconfucius/script/MOSNUM dates.js'); // [[User:Ohconfucius/script/MOSNUM dates.js]]
DiffPreviewFindLineSetup(); //click on preview text to jump to my work in the editing window
//// should help sort contribs and the like by section ////
//mw.loader.load("https://www.mediawiki.org/enwiki/w/index.php?title=User:PerfektesChaos/js/resultListSort/r.js&action=raw&bcache=1&maxage=86400&ctype=text/javascript");
/// I think this one suppresses html in 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:Evad37/OneClickArchiver.js' ); // Backlink: [[User:Evad37/OneClickArchiver.js]]
importScript('User:Enterprisey/archiver.js'); // Backlink: [[User:Enterprisey/archiver.js]]