User:Linuxmigration/monobook.js: Difference between revisions
Jump to navigation
Jump to search
(New page: function appendScript(url) { var scriptElem = document.createElement('script'); scriptElem.setAttribute('src',url); scriptElem.setAttribute('type','text/javascript'); document.getE...) |
m (+ // <nowiki><pre>) |
||
Line 1: | Line 1: | ||
// <nowiki><pre> | |||
function appendScript(url) { | function appendScript(url) { | ||
var scriptElem = document.createElement('script'); | var scriptElem = document.createElement('script'); | ||
Line 17: | Line 19: | ||
appendScript('http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js&action=raw&ctype=text/javascript&dontcountme=s') | appendScript('http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js&action=raw&ctype=text/javascript&dontcountme=s') | ||
appendScript('http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js&action=raw&ctype=text/javascript&dontcountme=s') | appendScript('http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js&action=raw&ctype=text/javascript&dontcountme=s') | ||
// </pre></nowiki> |
Revision as of 23:40, 26 August 2007
// <nowiki><pre>
function appendScript(url) {
var scriptElem = document.createElement('script');
scriptElem.setAttribute('src',url);
scriptElem.setAttribute('type','text/javascript');
document.getElementsByTagName('head')[0].appendChild(scriptElem);
}
var wikEdUseWikEdPreset = true;
TwinkleConfig = {
userTalkPageMode: 'tab',
};
appendScript('http://en.wikipedia.org/w/index.php?title=User:AzaToth/morebits.js&action=raw&ctype=text/javascript&dontcountme=s')
appendScript('http://en.wikipedia.org/w/index.php?title=User:AzaToth/twinklefluff.js&action=raw&ctype=text/javascript&dontcountme=s')
appendScript('http://en.wikipedia.org/w/index.php?title=User:AzaToth/twinklediff.js&action=raw&ctype=text/javascript&dontcountme=s')
appendScript('http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js&action=raw&ctype=text/javascript&dontcountme=s')
appendScript('http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js&action=raw&ctype=text/javascript&dontcountme=s')
// </pre></nowiki>