User:Purodha/common.js
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
var editForm = document.getElementById('Standard');
if(editForm != null) {
editForm.setAttribute("style","display:none");
}
editForm = document.getElementById('mw-editTools');
if(editForm != null) {
editForm.setAttribute("style","display:block");
}
editForm = document.getElementById('specialcharss');
if(editForm != null) {
editForm.setAttribute("style","display:block");
}
/*
var element = document.createElement("input");
element.setAttribute("type","checkbox");
element.setAttribute("id","deedd");
editform.insertBefore(element);
insertBefore(txt,document.getElementById('myDiv').firstChild);
}
/*
editform.
/*
if ( window.mediaWiki ) {
var txt = document.createTextNode(" <a onclick="insertTags('á','','');return false" href="#">á</a>");
document.getElementById('Standard').appendChild(txt);
}
/*
if ( window.mediaWiki ) {
if ( ( mw.config.get( 'wgAction' ) == 'edit' ) ||
( mw.config.get( 'wgCanonicalSpecialPageName' ) == "Upload" ) ||
( mw.config.get( 'wgAction' ) == "submit" ) ) {
importScript('User:Purodha/edit.js');
}
}
*/