Advertisement
Guest User

version six

a guest
Jan 15th, 2015
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.68 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Blockland Post Additions
  3. // @namespace http://swololol.com
  4. // @version 6
  5. // @description Emotes + BBCode Buttons
  6. // @include http://forum.blockland.us/index.php?action=post*
  7. // @include https://forum.blockland.us/index.php?action=post*
  8. // @copyright 2014+, Swollow, Crispy
  9. // ==/UserScript==
  10. if(document.URL.indexOf(';topic=' && '2') != -1) { //are they making a post?
  11. document.getElementsByTagName("a")[24].remove();
  12. document.getElementsByTagName("a")[24].remove();
  13.  
  14. 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>\
  15. <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>\
  16. <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>\
  17. <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>\
  18. <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>\
  19. <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>';
  20.  
  21. 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>\
  22. <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>\
  23. <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>\
  24. <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>\
  25. <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>\
  26. <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>\
  27. <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>\
  28. <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>\
  29. <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>\
  30. <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>\
  31. <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>\
  32. <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>';
  33.  
  34. document.getElementsByTagName("td")[17].innerHTML += ' <select onchange="surroundText(\'[img\' + this.options[this.selectedIndex].value + \'\',\'[/img]\', document.forms.postmodify.message); this.selectedIndex = 0;">\
  35. <option value="" selected="selected">Other Emotes</option>\
  36. <option value=" height=65]http://swololol.com/sd">Smack Down!</option>\
  37. <option value="]http://forum.blockland.us/Themes/Blockland/images/smflogo.png">Blockland Forums Header</option>\
  38. <option value="]http://i.imgur.com/us6zFRB.png">Blogland Forums</option>\
  39. <option value=" height=75]http://i.imgur.com/ymU48Db.gif">MLG Dance</option></select>';
  40.  
  41. document.getElementsByTagName("select")[0].innerHTML += '<option value="Transparent">Transparent</option>\
  42. <option value="#HexCode">Hex Code</option>';
  43. }
  44. else if(document.URL.indexOf(';poll') != -1) { //they aren't so they're making a new topic. is it a poll?
  45. document.getElementsByTagName("a")[24].remove();
  46. document.getElementsByTagName("a")[24].remove();
  47.  
  48. 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>\
  49. <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>\
  50. <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>\
  51. <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>\
  52. <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>\
  53. <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>';
  54.  
  55. 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>\
  56. <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>\
  57. <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>\
  58. <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>\
  59. <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>\
  60. <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>\
  61. <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>\
  62. <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>\
  63. <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>\
  64. <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>\
  65. <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>\
  66. <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>';
  67.  
  68. document.getElementsByTagName("td")[29].innerHTML += ' <select onchange="surroundText(\'[img\' + this.options[this.selectedIndex].value + \'\',\'[/img]\', document.forms.postmodify.message); this.selectedIndex = 0;">\
  69. <option value="" selected="selected">Large Emotes</option>\
  70. <option value=" height=65]http://swololol.com/sd">Smack Down!</option>\
  71. <option value="]http://forum.blockland.us/Themes/Blockland/images/smflogo.png">Blockland Forums Header</option>\
  72. <option value="]http://i.imgur.com/us6zFRB.png">Blogland Forums</option>\
  73. <option value=" height=75]http://i.imgur.com/ymU48Db.gif">MLG Dance</option></select>';
  74.  
  75. document.getElementsByTagName("select")[0].innerHTML += '<option value="Transparent">Transparent</option>\
  76. <option value="#HexCode">Hex Code</option>';
  77. }
  78. else if(document.URL.indexOf(';board=') != -1) { //it's not a poll, so they're probably making a normal topic.
  79. document.getElementsByTagName("a")[23].remove();
  80. document.getElementsByTagName("a")[23].remove();
  81.  
  82. 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>\
  83. <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>\
  84. <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>\
  85. <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>\
  86. <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>\
  87. <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>';
  88.  
  89. 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>\
  90. <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>\
  91. <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>\
  92. <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>\
  93. <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>\
  94. <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>\
  95. <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>\
  96. <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>\
  97. <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>\
  98. <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>\
  99. <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>\
  100. <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>';
  101.  
  102. document.getElementsByTagName("td")[17].innerHTML += ' <select onchange="surroundText(\'[img\' + this.options[this.selectedIndex].value + \'\',\'[/img]\', document.forms.postmodify.message); this.selectedIndex = 0;">\
  103. <option value="" selected="selected">Large Emotes</option>\
  104. <option value=" height=65]http://swololol.com/sd">Smack Down!</option>\
  105. <option value="]http://forum.blockland.us/Themes/Blockland/images/smflogo.png">Blockland Forums Header</option>\
  106. <option value="]http://i.imgur.com/us6zFRB.png">Blogland Forums</option>\
  107. <option value=" height=75]http://i.imgur.com/ymU48Db.gif">MLG Dance</option></select>';
  108.  
  109. document.getElementsByTagName("select")[0].innerHTML += '<option value="Transparent">Transparent</option>\
  110. <option value="#HexCode">Hex Code</option>';
  111. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement