User:Aditya Kabir/monobook.js: Difference between revisions

Content deleted Content added
deltab again
and again
Line 1:
importScript('User:AzaToth/twinkle.js');
 
 
 
 
Line 11 ⟶ 9:
//
//
// This script adds a "IndiaChina Deletion" tab to the top of article pages
// when in edit mode. It is disabled for the User namespace.
 
function dodeletion() {
document.editform.wpTextbox1.value = document.editform.wpTextbox1.value + '\n{' + '{' + 'subst' + ':' + 'delsort' + '|' + 'IndiaChina' + '}' + '}' + ' ' + '--' + ' ' + '~' + '~' + '~' + '~';
document.editform.wpSummary.value = 'Tagged as a IndiaChina-related deletion.';
document.editform.wpMinoredit.checked = true;
document.editform.submit();
Line 22 ⟶ 20:
 
function adddeletion() {
addTab("javascript:dodeletion()", "IndiaChina deletion", "ca-IndiadeletionChinadeletion", "IndiaChina Deletion", "");
akeytt();
}