CAZypedia needs your help!
We have many unassigned pages in need of Authors and Responsible Curators. See a page that's out-of-date and just needs a touch-up? - You are also welcome to become a CAZypedian. Here's how.
Scientists at all career stages, including students, are welcome to contribute.
Learn more about CAZypedia's misson here and in this article.
Totally new to the CAZy classification? Read this first.
Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
Harry Brumer (talk | contribs) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
// install [[User:Cacycle/wikEd]] in-browser text editor | // install [[User:Cacycle/wikEd]] in-browser text editor | ||
− | document.write('<script type="text/javascript" src="' | + | //document.write('<script type="text/javascript" src="' |
− | + ' | + | //+ '//en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js' |
− | + '&action=raw&ctype=text/javascript"></' + 'script>'); | + | //+ '&action=raw&ctype=text/javascript"></' + 'script>'); |
+ | |||
+ | // 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); | ||
+ | } | ||
+ | ) (); |
Latest revision as of 08:54, 28 May 2018
/* Any JavaScript here will be loaded for all users on every page load. */ // install [[User:Cacycle/wikEd]] in-browser text editor //document.write('<script type="text/javascript" src="' //+ '//en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js' //+ '&action=raw&ctype=text/javascript"></' + 'script>'); // 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); } ) ();