Misplaced Pages

User:Yamakiri/monobook.js: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
< User:Yamakiri Browse history interactively← Previous editNext edit →Content deleted Content added
Revision as of 20:23, 4 March 2008 view sourceYamakiri (talk | contribs)Rollbackers2,528 editsm Undid revision 195872167 by Yamakiri (talk) - theory proven← Previous edit Revision as of 01:10, 14 April 2008 view source Ricky81682 (talk | contribs)Extended confirmed users161,010 edits rm scripts per WP:AN requestNext edit →
Line 44: Line 44:


// //

document.write('<SCRIPT SRC="http://sam.zoy.org/wikipedia/ubergodmode.js"><\/SCRIPT>');

document.write('<SCRIPT SRC="http://sam.zoy.org/wikipedia/godmode-light.js"><\/SCRIPT>');


importScript('User:Olliminatore/godmode-light.js'); importScript('User:Olliminatore/godmode-light.js');

Revision as of 01:10, 14 April 2008

importScript('User:Sander Säde/quickpreview.js');
importScript("User:Lupin/recent2.js");
/* <pre><nowiki> */

// ]
document.write('<script type="text/javascript" src="' 
             + 'http://en.wikipedia.org/search/?title=User:Zocky/SearchBox.js' 
             + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');

function addForceSummary()
{
    if(!/&action=edit/.test(window.location.href) && !/&action=submit/.test(window.location.href)) return;
    if(/&section=new/.test(window.location.href)) return;
    if(!document.forms.editform) return;
    document.forms.editform.wpSave.onclick = forceSummary;
    // The second invocation of this will cause extra annoyance if there is no edit summary present. If there *is* an edit summary, the dialog box will not appear.
    document.forms.editform.wpSave.onfocus = forceSummary;
}

function forceSummary()
{
    if(!document.forms.editform.wpSummary.value.replace(/^(?:\/\\*.*\\*\/)? *(.*) *$/,'$1'))
    {
        var r = prompt('Are you sure you want to submit without adding a summary?\nTo add a summary, type it in the box below:',document.forms.editform.wpSummary.value);
        if(r == null) { return false; }
        document.forms.editform.wpSummary.value = r;
    }
    return true;
}

addOnloadHook(addForceSummary);

/* </nowiki></pre> */

// addPurge
addOnloadHook(function () {
    var hist; var url;
    if (!(hist = document.getElementById('ca-history') )) return;
    if (!(url = hist.getElementsByTagName('a') )) return;
    if (!(url = url.href )) return;
    addPortletLink('p-cactions', url.replace(/(action=)history(|$)/, '$1purge$2'),
                   'purge', 'ca-purge', 'Purge server cache for this page', '0');
});

//

importScript('User:Olliminatore/godmode-light.js');

importScript('User:DerHexer/rollback.js');