User:ShakespeareFan00/common.js

window.charinsertCustom = { "Archaic":' ſ Ð ð Þ þ Ꝥ ꝥ', "User":'‖ ſ Á Æ  É  Ë  Í  Œ  Ñ  Ó  Ö  Ō  Ú  —  £  §  œ  à  á  â  ã  ä  ā  æ  ç  è  é  ê  ẽ  ë  ē  í  î  ï  ñ  ò  ó  ô  ō  ö  õ  ù  ú  û  ü '};

mw.loader.load('//en.wikisource.org/w/index.php?title=User:Inductiveload/jump_to_file/load.js&action=raw&ctype=text/javascript'); /* mw.loader.load('//en.wikisource.org/w/index.php?title=User:Inductiveload/index_preview.js&action=raw&ctype=text/javascript'); */ /* mw.loader.load('//en.wikisource.org/w/index.php?title=User:Inductiveload/show_markup.js&action=raw&ctype=text/javascript'); */ mw.loader.load('//en.wikisource.org/w/index.php?title=User:Inductiveload/page_carousel.js&action=raw&ctype=text/javascript'); mw.loader.load('//en.wikisource.org/w/index.php?title=MediaWiki:TemplateScript/typography.js&action=raw&ctype=text/javascript'); mw.loader.load('//en.wikisource.org/w/index.php?title=User:Inductiveload/save_load_actions.js&action=raw&ctype=text/javascript'); mw.loader.load('//en.wikisource.org/w/index.php?title=User:Inductiveload/maintain/load.js&action=raw&ctype=text/javascript'); mw.loader.load("/w/index.php?title=User:Inductiveload/maintain-ws-tools.js&action=raw&ctype=text/javascript"); mw.loader.load('//en.wikisource.org/w/index.php?title=User:Inductiveload/MiniPane.js&action=raw&ctype=text/javascript'); mw.loader.load('//en.wikisource.org/w/index.php?title=MediaWiki:TemplateScript/proofreading.js&action=raw&ctype=text/javascript');

mw.loader.load('//en.wikisource.org/w/index.php?title=User:ShakespeareFan00/pages.js&action=raw&ctype=text/javascript');

mw.loader.load("//en.wikisource.org/w/index.php?title=User:Inductiveload/ActivePageAlert.js&action=raw&ctype=text/javascript");

mw.hook( 'active_page_alert.config' ).add( function ( apa ) {   apa.cfg.userLimits = [      {          user: 'Billinghurst',          timeLimit: 0,          ignoreMinorEdits: false      },      {      	user: 'Ineuw',      	timeLimit: 0 ,      	ignoreMinorEdits: false      },      {      	user: 'Samwilson',      	timeLimit: 0,       	ignoreMinorEdits: false      },      {      	user: 'Prosfilaes',       	timeLimit: 0,       	ignoreMinorEdits: false      },      {      	user: 'Jan.Kamenicek',      	timeLimit: 0,       	ignoreMinorEdits: false      },      {      	user: 'Kathleen.wright5',      	timeLimit: 0,       	ignoreMinorEdits: false      },      {      	user: 'Xover',      	timeLimit: 0,       	ignoreMinorEdits: false      },      {      	user: 'Charles Matthews',      	timeLimit: 0,       	ignoreMinorEdits: false      },      {      	user: 'Inductiveload ',      	timeLimit: 0,       	ignoreMinorEdits: false },     {      	user: 'Beeswaxcandle', timeLimit: 0, ignoreMinorEdits: false },     {      	user: 'Mpaa', timeLimit: 0, ignoreMinorEdits: false },     {      	user: 'Hrishikes', timeLimit: 0, ignoreMinorEdits: false },     {      	user: 'MarkLSteadman ', timeLimit: 0, ignoreMinorEdits: false },     {      	user: 'Beleg_Tâl', timeLimit: 0, ignoreMinorEdits: false },     {      	user: 'PseudoSkull', timeLimit: 0, ignoreMinorEdits: false }   ];  } );

// create a user defined object var myLintHints = { };

// specify some object component myLintHints.rooms = "*";

// communicate user defined object mw.hook( "lintHint.config" ).fire( myLintHints );

// finally, load gadget mw.loader.load( "https://en.wikipedia.org/w/index.php?title=User:PerfektesChaos/js/lintHint/r.js&action=raw&bcache=1&maxage=86400&ctype=text/javascript" );

/* mw.loader.load('//en.wikisource.org/w/index.php?title=User:ShakespeareFan00/nonvisbles.css&action=raw&ctype=text/css', "text/css"); */ /* mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Joeytje50/JWB.js/load.js&action=raw&ctype=text/javascript'); */ /* mw.loader.load('//en.wikisource.org/w/index.php?title=User:Inductiveload/jwb.js/load.js&action=raw&ctype=text/javascript'); */ /* mw.loader.load('//en.wikisource.org/w/index.php?title=User:Inductiveload/show_markup.css&action=raw&ctype=text/css', "text/css"); */ /* mw.loader.load('//en.wikisource.org/w/index.php?title=User:Inductiveload/popups_reloaded.js&action=raw&ctype=text/javascript'); */ /* mw.loader.load('//en.wikisource.org/w/index.php?title=User:Inductiveload/popups_reloaded.css&action=raw&ctype=text/javascript', "text/css"); */ /* mw.loader.load('//en.wikisource.org/w/index.php?title=User:ShakespeareFan00/saveload.js&action=raw&ctype=text/javascript'); */ /* mw.loader.load('//en.wikisource.org/w/index.php?title=User:Sohom Datta/page-status-highlighter.js&action=raw&ctype=text/javascript');*/

/* show_invis=true; if ('wgNamespaceNumber' === 104 && show_invis) { $(".pagetext > div:nth-child(1) ").addClass("__nonvisibles"); }; */

/* var editBlockConfig = { namespaces: [1,2,5,6,7,8,9,12,13,14,15,100,101,114,115,828,829 ] }; mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Zchrykng/Scripts/FileEditBlock.js');



/* mw.loader.load('//en.wikisource.org/w/index.php?title=User:Samwilson/LinkedLintErrors.js&action=raw&ctype=text/javascript'); */

/* * Add several tools useful when proofreading pages in the Page: namespace. * @see https://en.wikisource.org/wiki/Wikisource:TemplateScript */ /* mw.loader.load('//en.wikisource.org/w/index.php?title=User:Ineuw/common.js/typoscan.js&action=raw&ctype=text/javascript'); mw.loader.load('//en.wikisource.org/w/index.php?title=User:AuFCL/common.js/typoscan.js&action=raw&ctype=text/javascript');

/** Save load actions **/

var checkSectionTags = function ( editbox ) { var t = editbox.value;

var parser = new DOMParser;

var lastSecName; var lastSecType;

var messages = [];

var matches = t.match( //g ) || []; matches.forEach( function ( s ) {

var sectionNode = parser.parseFromString( s, 'text/xml' ).childNodes[ 0 ];

var type; var name;

if ( sectionNode.attributes.begin ) { type = 'begin'; } else if ( sectionNode.attributes.end ) { type = 'end'; }       name = sectionNode.attributes[ type ].nodeValue;

if ( lastSecType === undefined && !( type === 'begin' ) ) { messages.push( 'First section tag (for "' + name + '") is not a "begin"' ); }

if ( type === 'end' && !( lastSecType === 'begin' && lastSecName === name ) ) { messages.push( 'Section "' + name + '"" ended, but the previous section tag was not a matching begin' );       }

if ( type === 'begin' && !( lastSecType === 'end' || lastSecType === undefined ) ) { messages.push( 'Section "' + name + '"" begun, but the previous section tag was not an end' );       }

lastSecName = name; lastSecType = type; } );

if ( lastSecType && lastSecType !== 'end' ) { messages.push( 'Last section tag (for "' + lastSecName + '") is not an "end"' ); }

if ( messages.length ) { alert( messages.join( '\n' ) ); } };

mw.hook( 'save_load_actions.config' ).add( function ( cfg ) {   cfg.enabled = true;    cfg.saveHooks = [ checkSectionTags ];    cfg.quickReplacements = [];    cfg.autoRefs = true;  } );

/* in case the WSLayouts object doesn't exist yet - Old method */ if ( !self.WSLayouts ) { self.WSLayouts = []; }

self.WSLayouts.push( {	name: 'Test Layout (Layout 2 replacement)',	id: 'test2' } );

mw.hook( 'ws.layouts.register' ).add( function ( cfg ) {	cfg.layouts.push( { name: 'My layout', // what you see in the menu id: 'test2'   // the name of the layout's class } ); } );