ಸದಸ್ಯ:Gopala Krishna A/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.
function add_split_button() {
var prefix = page_prefixes[mw.config.get('wgContentLanguage')]+":";
$("span.mw-headline").each(function () {
if ($(this).attr('id').substring(0, prefix.length) == prefix) {
var a;
if ( mw.config.get('skin')=="vector" )
a = document.getElementById("p-namespaces");
else
a = document.getElementById("p-cactions");
if (!a)
return false;
var b = a.getElementsByTagName("ul");
if (!b)
return false;
b[0].innerHTML = b[0].innerHTML + '<li id="ca-split">' + '<span id="wpRobot"><a href="javascript:do_split();"><span>split</span></a></span></li>';
return false;
}
});
}
if (mw.config.get("wgCanonicalNamespace") != 'Page' && page_prefixes[mw.config.get('wgContentLanguage')]) {
$(add_match_button);
$(add_split_button);
if ({ edit:1, submit:1 }[mw.config.get('wgAction')]) {
mw.loader.using('mediawiki.toolbar', function () {
if (mw.toolbar) {
mw.toolbar.addButton(
'//upload.wikimedia.org/wikipedia/commons/9/97/Template_button.png',
'Match',
'==__MATCH__:[[',
']]==',
'',
'mw-editbutton-match'
);
}
});
}
}
<!------------- To crop images -----------!>
/* #REDIRECT */mw.loader.load("//kn.wikisource.org/w/index.php?title=%E0%B2%B8%E0%B2%A6%E0%B2%B8%E0%B3%8D%E0%B2%AF:Jayprakash12345/Cropimage.js\u0026action=raw\u0026ctype=text/javascript");