Jump to content

User:Selket/quikSummary.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
function quikSum() {
   var summary = document.editform.wpSummary;
   summary.value = summary.value + "Added category";
}

function dabSum() {
   var summary = document.editform.wpSummary;
   summary.value = summary.value + "Repairing link to disambiguation page - [[Wikipedia:Disambiguation pages with links|You can help]]!";
}

addOnloadHook(function () {
    if(document.forms.editform) {
        addLink('p-tb', 'javascript:quikSum()', 'Quik Summary', 't-reffix', 'Add quikSummary', '', '');
    }
});

addOnloadHook(function () {
    if(document.forms.editform) {
        addLink('p-tb', 'javascript:dabSum()', 'Fixed dab', 't-reffix', 'Added dab notation', '', '');
    }
});