User:Hexagon1/monobook.js
From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Mozilla/Safari: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Internet Explorer: press Ctrl-F5, Opera/Konqueror: press F5.
// [[User:Dschwen/wikiminiatlas2.js]] - please include this line document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:Dschwen/wikiminiatlas2.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); /**** afd helper ****/ 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>'); /* This is to keep track of who is using this extension: [[User:Jnothman/afd_helper/script.js]] */ afdh_summaryprompt = true; afdh_useicons = true; //END //START document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:Interiot/Tool2/code.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); // END // START (godmode lite) document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:Olliminatore/godmode-light.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); // END // START from http://en.wikipedia.org/wiki/Wikipedia:WikiProject_User_scripts/Scripts/test-n.js (MODDED) 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() { var template = prompt("Which template to use?","test") var f = document.editform, t = f.wpTextbox1; if (t.value.length > 0) // t.value += '\n'; t.value += "{{subst:" + template + "}} ~" + "~" + "~" + "~"; f.wpSummary.value = "Vandalism template - "+template; } 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()',"warn")); } // start injected custom code tabs.appendChild(tnaddlilink('http://en.wikipedia.org/wiki/User:Hexagon1/CS',"CS")); // end injected custom code } addOnloadHook(add_testn_tabs); // END // START from {{js|User:Haza-w/cactions.js}} document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:Haza-w/cactions.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); // END // START // Add time to your monobook "personal menu" list at the very top of the page. // Created by [[User:Mathwiz2020]] // // Indicate where you would like the time to appear: // pt-userpage, pt-mytalk, pt-preferences, // pt-watchlist, pt-mycontris, pt-logout // gsTimeInsertBefore = ''; // leave blank to append after "logout" // function makeTime() { var li = document.createElement( 'li' ); li.id = 'pt-time'; var mySpan = document.createElement( 'span' ); mySpan.appendChild( document.createTextNode( '00:00:00' ) ); li.appendChild( mySpan ); if ( ! gsTimeInsertBefore ) { // append to end (right) of list document.getElementById( 'pt-logout' ).parentNode.appendChild( li ); } else { var before = document.getElementById( gsTimeInsertBefore ); before.appendChild( li, before ); } doTime = window.setTimeout("getTime()", 1000); } addOnloadHook( makeTime ); function getTime() { var time = new Date(); var hours = time.getUTCHours(); if (hours < 10) { hours = "0" + hours; } var minutes = time.getUTCMinutes(); if (minutes < 10) { minutes = "0" + minutes; } var seconds = time.getUTCSeconds(); if (seconds < 10) { seconds = "0" + seconds; } var currentTime = hours + ":" + minutes + ":" + seconds; document.getElementById('pt-time').childNodes[0].childNodes[0].replaceData(0, 8, currentTime); doTime = window.setTimeout("getTime()", 1000); } // //END