User:Methamphetamine/uncyclopedia.js

From Uncyclopedia, the content-free encyclopedia
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
//

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 += '==Welcome!==

Hello, Methamphetamine, and [[Uncyclopedia:Beginner's Guide to Being an Uncyclopedian|welcome]] to Uncyclopedia! Thank you for your [[Special:Contributions/Methamphetamine|contributions]]. I hope you like the place and decide to stay. If not, the door's right over there... no, a little more to your left... yeah. Anyway, here are a few good links for [[n00b|people like ''you'':]]
*[[Uncyclopedia:Beginner's Guide to Being an Uncyclopedian|Beginner's Guide]]
*'''[[Uncyclopedia:Vanity Policies|Our Vanity Policies]]''' - why we [[Nobody cares|don't care]] about your friends 
*'''''[[Uncyclopedia:How To Be Funny And Not Just Stupid|How to be funny and not just stupid]]'''''
If you read anything at all, make it the above three links. If you want to find out more about Uncyclopedia or need more help with something, try these:
*[[Uncyclopedia:About|About Uncyclopedia]] and [[Uncyclopedia:Five pliers|The five pliers of Uncyclopedia]]
*[[Uncyclopedia:How To Get Started Editing|How to get started editing on uncyclopedia]]
*[[Help:Contents|Help Pages]] - if you need help with a specific issue
I hope you enjoy editing here and being an Uncyclopedian! Please [[:Wikipedia:Wikipedia:Sign your posts on talk pages|sign your name]] on talk pages using four tildes (~~~~) or use the "sign" button ([[Image:Button sig.png]]) above the edit box.  This will automatically produce your name and the date.
 
At Uncyclopedia, writing articles is not a requirement, but it certainly is a fun and easy way to express your creativity.  To write an article, it's recommended that you start it in your userspace (for example, [[User:Methamphetamine/Article about stuff]]) so you can edit it at your leisure.  If you decide to create it in the cold world of mainspace, make sure it is in accordance with the policies laid out above, and if you're not done put the "Work-In-Progress" template - {{tl|construction}} - onto it as well.

If you want to write and don't know where to begin, browse our [[:Category:Rewrite|rewrite]] and [[UN:IDEA|idea]] categories. We have lots of articles just sitting around for someone to improve, so don't be afraid - dive right in!

If you need help, ask me on my talk page, ask at the [[Forum:Village Dump|Dump]], or ask an [[special:listadmins|administrator]] on their talk page.  Additionally, the Uncyclopedian [[UN:AAN|Adopt-a-Noob program]] is there to bring experienced editors straight to you.  Simply leave a message on an adopter's talkpage to join.  Again, welcome!&nbsp;\n{{User:Methamphetamine/sig3.5}} <font color={{random colour}}>'''(23:35   09-18-2008)'''</font> 23:35, 18 September 2008 (UTC)';
    // 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;
}

 //