User:Olipro/Javascript

From Uncyclopedia, the content-free encyclopedia

Jump to: navigation, search

Well, I figured it'd be a good idea to catalogue the javascript crap that I've developed so people can do crap with it, so here it is. and remember, paste ALL code into your uncyclopedia.js

Admin-Only Javascript

Auto-Delete

This is a fork of Spang's Autodelete; this has more delete options by default and will auto-delete the talkpage for you. (except for TPDNE since you don't want to be deleting that)

to add it, insert the following code:
  document.write('<script type="text/javascript" src="'
  + 'http://uncyclopedia.wikia.com/index.php?title=User:Olipro/autodelete.js' 
  + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');

Recent Changes Rollback

This adds a Rollback link to Recent Changes so that you can insta-revert an article.

to add it, insert the following code:
  document.write('<script type="text/javascript" src="'
  + 'http://uncyclopedia.wikia.com/index.php?title=User:Olipro/rollback.js' 
  + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');

Unused Files AutoDelete Link

This will add a del link to the unused files Special Page; definitely a bleeding edge bit of code currently, but nonetheless working.

to add it, insert the following code:
  document.write('<script type="text/javascript" src="'
  + 'http://uncyclopedia.wikia.com/index.php?title=User:Olipro/orphandel.js' 
  + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');

Huff for Recent Changes

You know that rather pointless (diff) that shows up on new articles? well with this code, it replaces it with a (huff) link so if you can see it's clearly crap and just want to kill it; click the link and you're away. oh and please note; you *must* have my autodelete fork for this feature to work.

to add it, insert the following code:
  document.write('<script type="text/javascript" src="'
  + 'http://uncyclopedia.wikia.com/index.php?title=User:Olipro/recentdelete.js' 
  + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');

Huff for New Pages

Ok, this will convert the (hist) link into a (hist | del) selection to allow you to autodelete all that crap that filled the page up while you slept. This also relies on the Autodelete feature, but of course it'll work without it nonetheless.

to add it, insert the following code:
  document.write('<script type="text/javascript" src="'
  + 'http://uncyclopedia.wikia.com/index.php?title=User:Olipro/newpagesdel.js' 
  + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');

Users-Only Javascript

Rollback

Gives you the ability to perform rollbacks in the same way as admins although slightly slower than we can, but it works nonetheless and is much faster than an undo.

to add it, insert the following code:
  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>');

General-Javascript

Add & Edit Tabs

Allows you to add tabs and links to your pages; provides an interface for editing stuff; does not work across browsers since the data is stored using cookies, but I find it quite a bit of fun; the control links are next to the Log Out button in the top right.

to add it, insert the following code:
  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 Onload Hook

Yup... this will allow you to kill any OnLoad functions defined anywhere on the site; that includes the {{USERNAME}} template and anything else you discover that you don't want running; I decided to release this code since people can probably just use GreaseMonkey anyway. After you include it, just call the function from your Main() function (if you have one) like so: removeOnLoadHook('functionName'); where functionName is the function you want removed.

to add it, insert the following code:
  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>');

Auto-Add Welcome Message

Detects Usernames and will allow you to instantaneously add a welcome message to their talk page at the click of the lime-green talk link.

to add it, insert the following code:
  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>');

Remove Wanky Wikia Spotlight

Removes that sodding twatty wikia spotlight image that Nobody cares about.

to add it, insert the following code:
  document.write('<script type="text/javascript" src="'
  + 'http://uncyclopedia.wikia.com/index.php?title=User:Olipro/RemoveSpotlight.js' 
  + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');

Retarded Shit

This is just so fucking dumb I can't actually put it into words, but it is hilarious... for a few minutes.

to add it, insert the following code:
document.write('<script type="text/javascript" src="'
  + 'http://uncyclopedia.wikia.com/index.php?title=User:Olipro/retardedshit.js' 
  + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
Personal tools
projects