Jump to content

User:Eddideigel/cologneblue.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.
// [[:en:User:Lupin/popupsdev.js]] - please include this line 

document.write('<script type="text/javascript" src="' 
    + 'http://nn.wikipedia.org/w/index.php?title=User:Eddideigel/popupsdev.js' 
    + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');

popupStructure='original';       // show links plainly, not in menus
popupAdminLinks=false;           // admin links (block, protect, delete)
popupDelay=1.5;                  // hovering time before popups appear
popupEditCounterTool='interiot'; // interiot's tool instead of kate's
popupFixDabs=true;               // allow fixing of disambiguations
popupFixRedirs=true;             // allow fixing of redirects
popupRedirAutoClic='wpDiff';     // default action when fixing redirects
popupShortcutKeys=false;         // keyboard shortcuts; not be used with IE
popupRevertSummaryPrompt=true;   // prompt for a summary when auto-reverting
// popupRevertSummary="rv $ to version %s using [[:en:Wikipedia:Tools/Navigation popups|Popups]]";                // reversion edit summary; see also below

// certain actions will appear in new windows:
popupLinksNewWindow=new Object();
popupLinksNewWindow.watch=true;
popupLinksNewWindow.unwatch=true;
popupLinksNewWindow.edit=true;
popupLinksNewWindow.editTalk=true;
popupLinksNewWindow.editUserTalk=true;
popupLinksNewWindow.count=true;
popupLinksNewWindow.contribsTree=true;

//Force edit summary
//Adapted by [[:en:User:Mathwiz2020]]
//function addForceSummary(){
//    if(!/[&\?]action=edit/.test(window.location.href)) return;
//    if(!document.forms.editform) return;
//    document.forms.editform.onsubmit = forceSummary;
//}
//function forceSummary(){
//    var form = document.forms.editform;
//    if(form.wpSummary.value.substr(0,5)=="rv $ "){
//      var r = prompt('Please type the reason for your reversion in the box below:','');
//      if(r == null | r == "") { form.wpSummary.value = form.wpSummary.value.replace("$ ", ""); }
//      else { form.wpSummary.value = form.wpSummary.value.replace("$", r); }
//    }
//    return true;
//}
//window.onload = Main;
//function Main()
//{
// addForceSummary();
//}