User:OrenBochman/vector.js

//Import local script asyncronously (to avoid slowing page load too much) //mw.loader.load('http://localhost/0/wt/javascript/creation.js'); //mw.loader.load('http://localhost/0/wt/javascript/editor.js'); //mw.loader.load('http://localhost/0/wt/javascript/api.js'); //importScript('User:Lupin/popups.js','en.wikipedia.org'); //importScript('User:Connel MacKenzie/mess-with-popups.js'); //importScript('MediaWiki:SectionWatchLinks.js‎'); //importScript('MediaWiki:SpecialSearch.js') //importScript('User:Conrad.Irwin/parser.js'); //importScript('User:Conrad.Irwin/iwiki.js'); //importScript('MediaWiki:langcode2name.js'); importScript('User:Conrad.Irwin/edittools.js'); //importScript('User:Connel MacKenzie/ajaxtranslinks.js'); //importScript('User:Conrad.Irwin/ipa2sampa.js'); //importScript('User:Conrad.Irwin/feedback.js'); //importScript('User:Conrad.Irwin/isblocked.js'); //importScript('User:Conrad.Irwin/aspell.js'); // importScript('User:Conrad.Irwin/citationstab.js'); in Common.js //importScript('User:TheDaveRoss/CIDR.js'); //if(wgPageName=='Special:Search'){ // importScript('User:Conrad.Irwin/searchtoggles.js'); //} /* importScript('User:Conrad.Irwin/navframes.js');

/* user script by oren bochman*/

//Define our main function function myScript21{ //... code ...

if (document.URL.indexOf('action=history') != -1) { //continue only on history pages }

if (wgCanonicalNamespace == 'User_talk') { //continue only on User_talk pages };

addPortletLink ('p-tb', wgArticlePath.replace('$1', 'Special:MyPage/vector.js'), 'My vector.js', 'pt-myvector', 'Visit your vector.js file'); addPortletLink ('p-personal', wgScript + '?title=User:' + encodeURIComponent(wgUserName) + '/Notes&action=edit', 'My notes', 'pt-mynotes', 'Edit your personal notes'); addPortletLink ('p-tb', wgArticlePath.replace('$1', 'Special:Prefixindex/'+wgPageName), 'Prefixindex', 'tb-prefixindex'); addPortletLink ('p-personal', '/wiki/Special:Log/' + encodeURIComponent(wgUserName), 'My logs', 'pt-mylogs');

//Example: using innerHTML to create a new portlet document.getElementById('p-tb').innerHTML += ' '+ ' '+  ' mine '+ ' '+ 'My vector.js'+ ' '+ ' ';

//Example: remove copyright warning from edit page var el = document.getElementById('editpage-copywarn'); if (el) el.style.display = 'none';

var txt = document.editform.wpTextbox1 // or //var txt = document.getElementById('wpTextbox1')

txt = "stater phrase" + txt; txt += "ender phrase";

} //Schedule it to run after the HTML page is rendered $(myScript21);

var load_edittools = true; // extra drop down menu on editing for adding special characters importScript( 'User:OrenBochman/edittools.js' ); // Editpage scripts if( wgAction == 'edit' || wgAction == 'submit' ) { importScript( 'User:OrenBochman/editpage.js' ); } importScript( 'User:OrenBochman/mytools.js' );