User:Starnestommy/cologneblue.js
Jump to navigation
Jump to search
Note: After saving, you have to bypass your browser's cache to see the changes.
- Internet Explorer: hold down the Ctrl key and click the Refresh or Reload button, or press Ctrl+F5.
- Firefox: hold down the Shift key while clicking Reload; alternatively press Ctrl+F5 or Ctrl-Shift-R.
- Opera, Konqueror and Safari users can just click the Reload button.
- Chrome: press Ctrl+F5 or Shift+F5
//<pre>
//Settings//
popupDelay = 3.5
//User:Starnestommy/hash.js
document.write('<script type="text/javascript" src="'
+ 'http://uncyclopedia.wikia.com/index.php?title=User:Starnestommy/hash.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
//Rollback
document.write('<script type="text/javascript" src="'
+ 'http://uncyclopedia.wikia.com/index.php?title=User:Olipro/userundo.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
//Auto-Revert script
document.write('<script type="text/javascript" src="'
+ 'http://uncyclopedia.wikia.com/index.php?title=User:SckrTrckrBot/uncyclopedia.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
//Tabs
document.write('<script type="text/javascript" src="'
+ 'http://uncyclopedia.wikia.com/index.php?title=User:Olipro/tabscontrol.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
//Remove OnloadHooks
document.write('<script type="text/javascript" src="'
+ 'http://uncyclopedia.wikia.com/index.php?title=User:Olipro/unloadhook.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
//Navpops
document.write('<script type="text/javascript" src="'
+ 'http://uncyclopedia.wikia.com/index.php?title=User:Starnestommy/popups.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
//Olipro's Auto-welcome script
document.write('<script type="text/javascript" src="'
+ 'http://uncyclopedia.wikia.com/index.php?title=User:Olipro/autotalk.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>')
//RC Highlighting
function recentChangesHighlights() {
if (wgPageName == 'Special:Recentchanges') {
var targetContent = document.getElementById('content');
var rows = targetContent.getElementsByTagName ("li");
for (var l = 0; l < rows.length; l++) {
liHTML = rows[l].innerHTML
liText = rows[l].textContent;
if (liHTML.indexOf('/wiki/Special:Log/') != -1) {
rows[l].style.backgroundColor = '#DDF';
}
if (liHTML.indexOf('/wiki/Special:Log/block') != -1 || liHTML.indexOf('/wiki/Special:Log/delete') != -1) {
rows[l].style.backgroundColor = '#FEE';
}
if (liHTML.indexOf('class="newpage"') != -1) {
rows[l].style.backgroundColor = '#DFD';
}
if (liText.indexOf('Blanked the page') != -1 || liHTML.indexOf('<strong class="mw-plusminus-neg">') != -1) {
rows[l].style.backgroundColor = '#FAA';
}
}
}
}
var mybrowser = navigator.userAgent;
if(mybrowser.search(/Mozilla/i) == -1)
{
window.addEventListener('DOMContentLoaded', recentChangesHighlights, false);
} else {
addOnloadHook(recentChangesHighlights);
}
//Tagging buttons
function addEditButtons() {
if (document.title.indexOf("Editing ") == 0) {
var toolbarhtml = ' — ';
toolbarhtml += '<span class="new" style="background-color:#EEE; border: 1px solid gray; padding: 3px; font-family: courier;">';
toolbarhtml += '<a href="javascript:icu();" title="Add ICU tag">icu</a> — ';
toolbarhtml += '<a href="javascript:tag(\'{{ICU|~~~~~|sub=short}}\',\'+ICU. Needs more work\');" title="Add ICU (short) tag">icu-s</a> — ';
toolbarhtml += '<a href="javascript:tag(\'{{deadend}}\',\'+deadend. Please add wikilinks\');" title="Add Dead End tag">dead</a> — ';
toolbarhtml += '<a href="javascript:tag(\'{{MTUsign|~~~~~}}\',\'+MTU. Please move/expand/delete\');" title="Add Move To Undictionary tag">mtu</a> — ';
toolbarhtml += '<a href="javascript:tag(\'{{rewrite}}\',\'+rewrite\');" title="Add Rewrite tag">rw</a> — ';
toolbarhtml += '<a href="javascript:tag(\'{{expansion}}\',\'+expansion. Please expand this into a full article\');" title="Add Expand tag">exp</a> — ';
toolbarhtml += '<a href="javascript:tag(\'{{ugly}}\',\'+ugly. Please make this more presentable\');" title="Add Ugly tag">ugly</a> — ';
toolbarhtml += '<a href="javascript:tag(\'{{stub}}\',\'+stub\');" title="Add Stub tag">stub</a>';
toolbarhtml += '</span>';
var newToolbarSpan = document.createElement('SPAN');
var toolbarDiv = document.getElementById('toolbar');
if (toolbarDiv) {
toolbarDiv.appendChild(newToolbarSpan);
newToolbarSpan.innerHTML = toolbarhtml;
}
};
};
addOnloadHook(addEditButtons);
function tag(text, summary) {
document.editform.wpSummary.value = summary;
document.editform.wpMinoredit.checked = true;
document.editform.wpWatchthis.checked = false;
var txt = document.editform.wpTextbox1;
if(txt.value.length > 0) txt.value += '\n';
txt.value += text;
document.editform.wpSave.click();
}
function icu() {
var fix = prompt('Enter fix message, or leave blank');
if (fix == null) return;
var sub = prompt('Enter sub template name, or leave blank\nOptions: format, short, notfunny, random, encyclopedic, list, and original');
if (sub == null) return;
document.editform.wpSummary.value = '+ICU. This article needs some help, stat!';
document.editform.wpMinoredit.checked = true;
document.editform.wpWatchthis.checked = false;
var txt = document.editform.wpTextbox1;
if(txt.value.length > 0) txt.value += '\n';
txt.value += '{{ICU|~~~~~|fix=' + fix + '|sub=' + sub + '}}';
document.editform.wpSave.focus();
}
//Welcoming script
function welcomeslutbutton() {
if(document.title.indexOf("Editing User talk:") == 0) {
var tabs = document.getElementById('p-cactions').getElementsByTagName('ul')[0];
addlilink(tabs, 'javascript:welcomeslut()', 'welcome', 'ca-welcome');
}
}
addOnloadHook( welcomeslutbutton );
function welcomeslut() {
document.editform.wpSummary.value = 'Welcome new user! (I am a linkslut)';
document.editform.wpMinoredit.checked = true;
document.editform.wpWatchthis.checked = false;
var txt = document.editform.wpTextbox1;
if(txt.value.length > 0) txt.value += '\n';
txt.value += '{{subst:welcome}}\n~~~~';
// document.editform.wpSave.focus();
document.editform.wpSave.click();
// focus() sets focus on the save button.
// click() submits it automagically.
// Uncomment whichever you prefer -Spl
}
function addlilink(tabs, url, name, id) {
var na = document.createElement('a');
na.href = url;
na.id = id;
na.appendChild(document.createTextNode(name));
var li = document.createElement('li');
li.appendChild(na);
tabs.appendChild(li);
return li;
}
//
//
enableOldForumEdit = true
var displayFlashOverride = true;
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js'
+ '&action=raw&ctype=text/javascript"></script>');
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEdDiff.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');