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

Content deleted Content added
and again
once more
Line 1:
importScript('User:AzaToth/twinkle.js');
 
 
 
Line 9 ⟶ 8:
//
//
// This script adds a "Chinasexuality and gender 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' + '|' + 'Chinasexuality and gender' + '}' + '}' + ' ' + '--' + ' ' + '~' + '~' + '~' + '~';
document.editform.wpSummary.value = 'Tagged as a Chinasexuality and gender-related deletion.';
document.editform.wpMinoredit.checked = true;
document.editform.submit();
Line 20 ⟶ 19:
 
function adddeletion() {
addTab("javascript:dodeletion()", "Chinasexuality and gender deletion", "ca-Chinadeletionsexuality and genderdeletion", "Chinasexuality and gender Deletion", "");
akeytt();
}