Difference between revisions of "MediaWiki:Gadget-wikEd.js"

From BoSL Wiki
Jump to navigation Jump to search
(Created page with "// install Wikipedia:User:Cacycle/wikEd in-browser text editor ( function () { var script = document.createElement( 'script' ); script.src = '//en.wikipedia.org/w/index.ph...")
 
 
Line 1: Line 1:
// install [[Wikipedia:User:Cacycle/wikEd]] in-browser text editor
+
// _________________________________________________________________________________________
( function () { var script = document.createElement( 'script' ); script.src = '//en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js&action=raw&ctype=text/javascript'; script.async = true; document.getElementsByTagName( 'head' )[ 0 ].appendChild( script ); } ) ();
+
// |                                                                                        |
 +
// |                    === WARNING: GLOBAL GADGET FILE ===                                  |
 +
// |                  Changes to this page affect many users.                                |
 +
// | Please discuss changes on the talk page or on [[Wikipedia_talk:Gadget]] before editing. |
 +
// |_________________________________________________________________________________________|
 +
//
 +
// Imports [[User:Cacycle/wikEd.js]]
 +
// wikEd is a full-featured in-browser editor for Wikipedia, see [[User:Cacycle/wikEd]]
 +
 
 +
// disable loading for IE, not needed, but might save a few milliseconds
 +
if ( navigator.appName !== 'Microsoft Internet Explorer' ) {
 +
 
 +
  // load [[User:Cacycle/wikEd]] in-browser text editor
 +
  // please do not use the importScript(), importScriptURI(), or mw.loader.load() functions as these interfere with the script's own installation mechanism and will delay the startup
 +
  ( function () { var script = document.createElement( 'script' ); script.src = '//en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js&action=raw&ctype=text/javascript'; script.async = true; document.getElementsByTagName( 'head' )[ 0 ].appendChild( script ); } ) ();
 +
 
 +
}

Latest revision as of 19:33, 4 November 2019

//  _________________________________________________________________________________________
// |                                                                                         |
// |                    === WARNING: GLOBAL GADGET FILE ===                                  |
// |                  Changes to this page affect many users.                                |
// | Please discuss changes on the talk page or on [[Wikipedia_talk:Gadget]] before editing. |
// |_________________________________________________________________________________________|
//
// Imports [[User:Cacycle/wikEd.js]]
// wikEd is a full-featured in-browser editor for Wikipedia, see [[User:Cacycle/wikEd]]

// disable loading for IE, not needed, but might save a few milliseconds
if ( navigator.appName !== 'Microsoft Internet Explorer' ) {

  // load [[User:Cacycle/wikEd]] in-browser text editor
  // please do not use the importScript(), importScriptURI(), or mw.loader.load() functions as these interfere with the script's own installation mechanism and will delay the startup
  ( function () { var script = document.createElement( 'script' ); script.src = '//en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js&action=raw&ctype=text/javascript'; script.async = true; document.getElementsByTagName( 'head' )[ 0 ].appendChild( script ); } ) ();

}