Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Blockland Post Additions
- // @namespace http://swololol.com
- // @version 6
- // @description Emotes + BBCode Buttons
- // @include http://forum.blockland.us/index.php?action=post*
- // @include https://forum.blockland.us/index.php?action=post*
- // @copyright 2014+, Swollow, Crispy
- // ==/UserScript==
- if(document.URL.indexOf(';topic=' && '2') != -1) { //are they making a post?
- document.getElementsByTagName("a")[24].remove();
- document.getElementsByTagName("a")[24].remove();
- document.getElementsByTagName("a")[21].innerHTML += '<a href="javascript:surroundText(\'[abbr=Text]\', \'[/abbr]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/sQ7yZMu.png" align="bottom" width="23" height="22" alt="Abbreviate" border="0"></a>\
- <a href="javascript:replaceText(\'[*]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/XhNI3fi.png" align="bottom" width="23" height="22" alt="Bullet" border="0"></a>\
- <a href="javascript:surroundText(\'[iurl=#Link]\', \'[/iurl] [anchor=Link]Anchor[/anchor]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/4YqzrUT.png" align="bottom" width="23" height="22" alt="Lower Anchor" border="0"></a>\
- <a href="javascript:surroundText(\'[nobbc]\', \'[/nobbc]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/JptakOz.png" align="bottom" width="23" height="22" alt="No BBCode" border="0"></a>\
- <a href="javascript:replaceText(\'[time]now[/time]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/0314A3r.png" align="bottom" width="23" height="22" alt="Current Time" border="0"></a>\
- <a href="javascript:surroundText(\'[me=]\', \'[/me]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/m5PgMd8.png" align="bottom" width="23" height="22" alt="Me" border="0"></a>';
- document.getElementsByTagName("td")[17].innerHTML += '<a href="javascript:replaceText(\'[img]http://i.imgur.com/pBOUlka.png[/img]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/pBOUlka.png" width="43" height="41" align="bottom" alt="" title="Warren" border="0"></a>\
- <a href="javascript:replaceText(\'[img]http://i.imgur.com/neDBxy4.png[/img]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/neDBxy4.png" width="33" height="50" align="bottom" alt="" title="Mack" border="0"></a>\
- <a href="javascript:replaceText(\'[img]http://i.imgur.com/EpY90Mj.png[/img]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/EpY90Mj.png" width="50" height="41" align="bottom" alt="" title="Hugums" border="0"></a>\
- <a href="javascript:replaceText(\'[img]http://i.imgur.com/gYn3tv7.png[/img]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/gYn3tv7.png" width="30" height="42" align="bottom" alt="" title="Queeba" border="0"></a>\
- <a href="javascript:replaceText(\'[img height=25]http://i.imgur.com/q4Bln8R.png[/img]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/q4Bln8R.png" width="25" height="25" align="bottom" alt="" title="Creepy" border="0"></a>\
- <a href="javascript:replaceText(\'[img height=25]http://i.imgur.com/tAsKSbG.png[/img]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/tAsKSbG.png" width="25" height="25" align="bottom" alt="" title="Caveman" border="0"></a>\
- <a href="javascript:replaceText(\'[img height=25]http://i.imgur.com/Il7K0M3.png[/img]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/Il7K0M3.png" width="25" height="25" align="bottom" alt="" title="Ascii Terror" border="0"></a>\
- <a href="javascript:replaceText(\'[img height=25]http://i.imgur.com/KmAt3mH.png[/img]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/KmAt3mH.png" width="25" height="25" align="bottom" alt="" title="Girl" border="0"></a>\
- <a href="javascript:replaceText(\'[img height=25]http://i.imgur.com/j83HDS7.png[/img]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/j83HDS7.png" width="25" height="25" align="bottom" alt="" title="Blockhead" border="0"></a>\
- <a href="javascript:replaceText(\'[img height=25]http://i.imgur.com/3TgNIAI.png[/img]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/3TgNIAI.png" width="25" height="25" align="bottom" alt="" title="Cats" border="0"></a>\
- <a href="javascript:replaceText(\'[img height=25]http://i.imgur.com/FMuJWIk.png[/img]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/FMuJWIk.png" width="25" height="25" align="bottom" alt="" title="Yaranaika" border="0"></a>\
- <a href="javascript:replaceText(\'[img height=25]http://i.imgur.com/rxo3K0x.png[/img]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/rxo3K0x.png" width="25" height="25" align="bottom" alt="" title="Block Mongler" border="0"></a>';
- document.getElementsByTagName("td")[17].innerHTML += ' <select onchange="surroundText(\'[img\' + this.options[this.selectedIndex].value + \'\',\'[/img]\', document.forms.postmodify.message); this.selectedIndex = 0;">\
- <option value="" selected="selected">Other Emotes</option>\
- <option value=" height=65]http://swololol.com/sd">Smack Down!</option>\
- <option value="]http://forum.blockland.us/Themes/Blockland/images/smflogo.png">Blockland Forums Header</option>\
- <option value="]http://i.imgur.com/us6zFRB.png">Blogland Forums</option>\
- <option value=" height=75]http://i.imgur.com/ymU48Db.gif">MLG Dance</option></select>';
- document.getElementsByTagName("select")[0].innerHTML += '<option value="Transparent">Transparent</option>\
- <option value="#HexCode">Hex Code</option>';
- }
- else if(document.URL.indexOf(';poll') != -1) { //they aren't so they're making a new topic. is it a poll?
- document.getElementsByTagName("a")[24].remove();
- document.getElementsByTagName("a")[24].remove();
- document.getElementsByTagName("a")[20].innerHTML += '<a href="javascript:surroundText(\'[abbr=Text]\', \'[/abbr]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/sQ7yZMu.png" align="bottom" width="23" height="22" alt="Abbreviate" border="0"></a>\
- <a href="javascript:replaceText(\'[*]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/XhNI3fi.png" align="bottom" width="23" height="22" alt="Bullet" border="0"></a>\
- <a href="javascript:surroundText(\'[iurl=#Link]\', \'[/iurl] [anchor=Link]Anchor[/anchor]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/4YqzrUT.png" align="bottom" width="23" height="22" alt="Lower Anchor" border="0"></a>\
- <a href="javascript:surroundText(\'[nobbc]\', \'[/nobbc]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/JptakOz.png" align="bottom" width="23" height="22" alt="No BBCode" border="0"></a>\
- <a href="javascript:replaceText(\'[time]now[/time]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/0314A3r.png" align="bottom" width="23" height="22" alt="Current Time" border="0"></a>\
- <a href="javascript:surroundText(\'[me=]\', \'[/me]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/m5PgMd8.png" align="bottom" width="23" height="22" alt="Me" border="0"></a>';
- document.getElementsByTagName("td")[29].innerHTML += '<a href="javascript:replaceText(\'[img]http://i.imgur.com/pBOUlka.png[/img]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/pBOUlka.png" width="43" height="41" align="bottom" alt="" title="Warren" border="0"></a>\
- <a href="javascript:replaceText(\'[img]http://i.imgur.com/neDBxy4.png[/img]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/neDBxy4.png" width="33" height="50" align="bottom" alt="" title="Mack" border="0"></a>\
- <a href="javascript:replaceText(\'[img]http://i.imgur.com/EpY90Mj.png[/img]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/EpY90Mj.png" width="50" height="41" align="bottom" alt="" title="Hugums" border="0"></a>\
- <a href="javascript:replaceText(\'[img]http://i.imgur.com/gYn3tv7.png[/img]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/gYn3tv7.png" width="30" height="42" align="bottom" alt="" title="Queeba" border="0"></a>\
- <a href="javascript:replaceText(\'[img height=25]http://i.imgur.com/q4Bln8R.png[/img]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/q4Bln8R.png" width="25" height="25" align="bottom" alt="" title="Creepy" border="0"></a>\
- <a href="javascript:replaceText(\'[img height=25]http://i.imgur.com/tAsKSbG.png[/img]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/tAsKSbG.png" width="25" height="25" align="bottom" alt="" title="Caveman" border="0"></a>\
- <a href="javascript:replaceText(\'[img height=25]http://i.imgur.com/Il7K0M3.png[/img]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/Il7K0M3.png" width="25" height="25" align="bottom" alt="" title="Ascii Terror" border="0"></a>\
- <a href="javascript:replaceText(\'[img height=25]http://i.imgur.com/KmAt3mH.png[/img]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/KmAt3mH.png" width="25" height="25" align="bottom" alt="" title="Girl" border="0"></a>\
- <a href="javascript:replaceText(\'[img height=25]http://i.imgur.com/j83HDS7.png[/img]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/j83HDS7.png" width="25" height="25" align="bottom" alt="" title="Blockhead" border="0"></a>\
- <a href="javascript:replaceText(\'[img height=25]http://i.imgur.com/3TgNIAI.png[/img]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/3TgNIAI.png" width="25" height="25" align="bottom" alt="" title="Cats" border="0"></a>\
- <a href="javascript:replaceText(\'[img height=25]http://i.imgur.com/FMuJWIk.png[/img]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/FMuJWIk.png" width="25" height="25" align="bottom" alt="" title="Yaranaika" border="0"></a>\
- <a href="javascript:replaceText(\'[img height=25]http://i.imgur.com/rxo3K0x.png[/img]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/rxo3K0x.png" width="25" height="25" align="bottom" alt="" title="Block Mongler" border="0"></a>';
- document.getElementsByTagName("td")[29].innerHTML += ' <select onchange="surroundText(\'[img\' + this.options[this.selectedIndex].value + \'\',\'[/img]\', document.forms.postmodify.message); this.selectedIndex = 0;">\
- <option value="" selected="selected">Large Emotes</option>\
- <option value=" height=65]http://swololol.com/sd">Smack Down!</option>\
- <option value="]http://forum.blockland.us/Themes/Blockland/images/smflogo.png">Blockland Forums Header</option>\
- <option value="]http://i.imgur.com/us6zFRB.png">Blogland Forums</option>\
- <option value=" height=75]http://i.imgur.com/ymU48Db.gif">MLG Dance</option></select>';
- document.getElementsByTagName("select")[0].innerHTML += '<option value="Transparent">Transparent</option>\
- <option value="#HexCode">Hex Code</option>';
- }
- else if(document.URL.indexOf(';board=') != -1) { //it's not a poll, so they're probably making a normal topic.
- document.getElementsByTagName("a")[23].remove();
- document.getElementsByTagName("a")[23].remove();
- document.getElementsByTagName("a")[20].innerHTML += '<a href="javascript:surroundText(\'[abbr=Text]\', \'[/abbr]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/sQ7yZMu.png" align="bottom" width="23" height="22" alt="Abbreviate" border="0"></a>\
- <a href="javascript:replaceText(\'[*]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/XhNI3fi.png" align="bottom" width="23" height="22" alt="Bullet" border="0"></a>\
- <a href="javascript:surroundText(\'[iurl=#Link]\', \'[/iurl] [anchor=Link]Anchor[/anchor]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/4YqzrUT.png" align="bottom" width="23" height="22" alt="Lower Anchor" border="0"></a>\
- <a href="javascript:surroundText(\'[nobbc]\', \'[/nobbc]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/JptakOz.png" align="bottom" width="23" height="22" alt="No BBCode" border="0"></a>\
- <a href="javascript:replaceText(\'[time]now[/time]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/0314A3r.png" align="bottom" width="23" height="22" alt="Current Time" border="0"></a>\
- <a href="javascript:surroundText(\'[me=]\', \'[/me]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/m5PgMd8.png" align="bottom" width="23" height="22" alt="Me" border="0"></a>';
- document.getElementsByTagName("td")[17].innerHTML += '<a href="javascript:replaceText(\'[img]http://i.imgur.com/pBOUlka.png[/img]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/pBOUlka.png" width="43" height="41" align="bottom" alt="" title="Warren" border="0"></a>\
- <a href="javascript:replaceText(\'[img]http://i.imgur.com/neDBxy4.png[/img]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/neDBxy4.png" width="33" height="50" align="bottom" alt="" title="Mack" border="0"></a>\
- <a href="javascript:replaceText(\'[img]http://i.imgur.com/EpY90Mj.png[/img]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/EpY90Mj.png" width="50" height="41" align="bottom" alt="" title="Hugums" border="0"></a>\
- <a href="javascript:replaceText(\'[img]http://i.imgur.com/gYn3tv7.png[/img]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/gYn3tv7.png" width="30" height="42" align="bottom" alt="" title="Queeba" border="0"></a>\
- <a href="javascript:replaceText(\'[img height=25]http://i.imgur.com/q4Bln8R.png[/img]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/q4Bln8R.png" width="25" height="25" align="bottom" alt="" title="Creepy" border="0"></a>\
- <a href="javascript:replaceText(\'[img height=25]http://i.imgur.com/tAsKSbG.png[/img]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/tAsKSbG.png" width="25" height="25" align="bottom" alt="" title="Caveman" border="0"></a>\
- <a href="javascript:replaceText(\'[img height=25]http://i.imgur.com/Il7K0M3.png[/img]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/Il7K0M3.png" width="25" height="25" align="bottom" alt="" title="Ascii Terror" border="0"></a>\
- <a href="javascript:replaceText(\'[img height=25]http://i.imgur.com/KmAt3mH.png[/img]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/KmAt3mH.png" width="25" height="25" align="bottom" alt="" title="Girl" border="0"></a>\
- <a href="javascript:replaceText(\'[img height=25]http://i.imgur.com/j83HDS7.png[/img]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/j83HDS7.png" width="25" height="25" align="bottom" alt="" title="Blockhead" border="0"></a>\
- <a href="javascript:replaceText(\'[img height=25]http://i.imgur.com/3TgNIAI.png[/img]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/3TgNIAI.png" width="25" height="25" align="bottom" alt="" title="Cats" border="0"></a>\
- <a href="javascript:replaceText(\'[img height=25]http://i.imgur.com/FMuJWIk.png[/img]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/FMuJWIk.png" width="25" height="25" align="bottom" alt="" title="Yaranaika" border="0"></a>\
- <a href="javascript:replaceText(\'[img height=25]http://i.imgur.com/rxo3K0x.png[/img]\', document.forms.postmodify.message);"><img src="http://i.imgur.com/rxo3K0x.png" width="25" height="25" align="bottom" alt="" title="Block Mongler" border="0"></a>';
- document.getElementsByTagName("td")[17].innerHTML += ' <select onchange="surroundText(\'[img\' + this.options[this.selectedIndex].value + \'\',\'[/img]\', document.forms.postmodify.message); this.selectedIndex = 0;">\
- <option value="" selected="selected">Large Emotes</option>\
- <option value=" height=65]http://swololol.com/sd">Smack Down!</option>\
- <option value="]http://forum.blockland.us/Themes/Blockland/images/smflogo.png">Blockland Forums Header</option>\
- <option value="]http://i.imgur.com/us6zFRB.png">Blogland Forums</option>\
- <option value=" height=75]http://i.imgur.com/ymU48Db.gif">MLG Dance</option></select>';
- document.getElementsByTagName("select")[0].innerHTML += '<option value="Transparent">Transparent</option>\
- <option value="#HexCode">Hex Code</option>';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement