Jump to content

User:Goodgirl/monobook.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.
//Geo-location
// Benutzer:Mcaviglia - www.mcaviglia.ch - Zeile bitte stehen Lassen
document.write('<script type="text/javascript" src="'
    + 'http://www.mcaviglia.ch/gmap/get_coor_js.asp?l=de"></script>');
// end geo-location

// [[User:Henrik/live-edit-counter]]
importScript('User:Henrik/js/live-edit-counter.js'); 
// end live-edit-counter

// [[User:Henrik/afc-helper]]
importScript('User:Henrik/js/afc-helper.js'); 
// end afc-helper

//[[User:AzaToth/twinkle.js]]
importScript('User:AzaToth/twinkle.js');

TwinkleConfig = {
        revertMaxRevisions              :       50,
        userTalkPageMode                :       'window',
        showSharedIPNotice              :       false,
        openTalkPage                    :       [ 'norm', 'vand' ],
        openTalkPageOnAutoRevert        :       false,
        openAOLAnonTalkPage             :       false,
        summaryAd                       :       " using [[WP:TWINKLE|TW]]",
        deletionSummaryAd               :       " using [[WP:TWINKLE|TW]]",
        protectionSummaryAd             :       " using [[WP:TWINKLE|TW]]",
        watchSpeedyPages                :       [ 'g3', 'g5', 'g10', 'g11', 'g12' ],
        watchProdPages                  :       true,
        openUserTalkPageOnSpeedyDelete  :       [ ],
        watchRevertedPages              :       [ ],
        markRevertedPagesAsMinor        :       [ 'agf', 'norm', 'vand', 'torev' ],
        deleteTalkPageOnDelete          :       false,
        markWarningsAsMinor             :       true,
        markAIVReportAsMinor            :       true,
        markSpeedyPagesAsMinor          :       true,
        markProdPagesAsMinor            :       true,
        confirmUsernameToAIV            :       true,
        toolboxButtons                  :       [ ]
};
// end twinkle.js

// <pre>

// [[User:Lupin/popups.js]]

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

mw.loader.load(
             'https://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js'
             + '&action=raw&ctype=text/javascript&dontcountme=s');
// Script from [[User:Lupin/recent2.js]]
mw.loader.load(
             'https://en.wikipedia.org/w/index.php?title=User:Lupin/recent2.js'
             + '&action=raw&ctype=text/javascript&dontcountme=s');

// http://en.wikipedia.org/wiki/User:Interiot/Tool2/code.js?username=Goodgirl
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Interiot/Tool2/code.js&action=raw&ctype=text/javascript');

function tnaddlilink(url, name)
{
  var na = document.createElement('a');
  na.setAttribute('href', url);

  var txt = document.createTextNode(name);
  na.appendChild(txt);

  var li = document.createElement('li');
  li.appendChild(na);
  return li;
}

function testn(number)
{
  var page = prompt("Vandalism to which article?")
  var f = document.editform, t = f.wpTextbox1;
  if (t.value.length > 0)
    t.value += '\n';
  t.value += "{{subst:" + "test" + number + "-n|" + page + "}} ~" + "~" + "~" + "~";
  f.wpSummary.value = "Vandalism to [[" + page + "]] - warning " + number;
}

function add_testn_tabs()
{
  var c1 = document.getElementById('column-one');
  var tabs = c1.getElementsByTagName('div')[0].getElementsByTagName('ul')[0];

  // Only add for pages with "Editing User talk:" somewhere in the title
  if (document.title.indexOf("Editing User talk:") != -1)
    {
      tabs.appendChild(tnaddlilink('javascript:testn(1)',"t1"));
      tabs.appendChild(tnaddlilink('javascript:testn(2)',"t2"));
      tabs.appendChild(tnaddlilink('javascript:testn(3)',"t3"));
      tabs.appendChild(tnaddlilink('javascript:testn(4)',"t4"));
    }
}


addOnloadHook(add_testn_tabs);

 function install_search()
 {
 document.getElementById('searchBody').innerHTML='<div>'+
 '<FORM method=get action="http://www.google.com/search">'+
 '<input type=hidden name="ie" value="UTF-8" /><input type=hidden name="oe" value="UTF-8" />'+
 '<INPUT id="searchInput" name="q" type="text" accesskey="f" value="" />'+
 '<input type="hidden" name="domains" value="en.wikipedia.org" />'+
 '<input type=radio name=sitesearch value="">Web'+
 '<input type=radio name=sitesearch value="en.wikipedia.org" checked />WP'+
 '<INPUT type="submit" name="btnG" VALUE="Google Search"  /></FORM></div>';

  // document.getElementById('test').innerHTML="foo";
 }
 addOnloadHook(install_search);


importScript('User:Henrik/js/dyk-notifier.js');


// CSD AutoReason
//importScript('User:Henrik/js/csd.js');

function stats() {
mw.util.addPortletLink('p-cactions', 'http://stats.grok.se/en/200801/'+wgPageName, "stats", "ca-stats", "See article stats");
}
addOnloadHook(stats);


// </pre>

if (top.location.search('/http\:\/\/[^\/]*modernista\.com\//')
               != -1) { top.location.href = document.location.href; }