Advertisement
Guest User

Untitled

a guest
Sep 14th, 2014
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.30 KB | None | 0 0
  1. // ==UserScript==
  2. // @name TagPro Homepage Customization
  3. // @namespace by defense_bot (aka scrub_bot sometimes)
  4. // @version 1.0
  5. // @description changes the text on the buttons
  6. // @include http://tagpro-*.koalabeast.com/
  7.  
  8. // ==/UserScript==
  9.  
  10. // Colors //
  11.  
  12. var redish = "#DA362D"
  13.  
  14. // ========== Settings ========== //
  15.  
  16. // Text stuff //
  17. textColor = "rgb(0, 157, 0)"
  18. buttonFont = "Arial Rounded MT Bold"
  19. textFont = "Calibri"
  20.  
  21. // Whether change server link is a button (true/false) //
  22. var serverLinkButton = false;
  23.  
  24. // Controls tips on/off //
  25. var controlTips = "off";
  26.  
  27. // Button Stuff //
  28.  
  29. // default background color: #ACE600 //
  30. // default border color: #608100 //
  31. // default text color: black
  32.  
  33. // What you want the buttons to say //
  34.  
  35. startButtonText = ""
  36. // no ceremony, jump in
  37. startButtonColor = "gold"
  38. startButtonBorderColor = "transparent" //blue
  39. startButtonBackgroundColor = "transparent" //red
  40.  
  41. profileButtonText = ""
  42. // all about you
  43. profileButtonColor = "rgb(255,252,119)"
  44. profileButtonBorderColor = "transparent" //blue
  45. profileButtonBackgroundColor = "transparent" //red
  46.  
  47. groupButtonText = ""
  48. // play with friends
  49. groupButtonColor = "rgb(255,252,119)"
  50. groupButtonBorderColor = "transparent" //blue
  51. groupButtonBackgroundColor = "transparent" //red
  52.  
  53. leaderButtonText = ""
  54. // who's the best
  55. leaderButtonColor = "rgb(255,252,119)"
  56. leaderButtonBorderColor = "transparent" //blue
  57. leaderButtonBackgroundColor = "transparent" //red
  58.  
  59. replayButtonText = ""
  60. // watch yourself
  61. replayButtonColor = "rgb(255,252,119)"
  62. replayButtonBorderColor = "transparent" //blue
  63. replayButtonBackgroundColor = "transparent" //red
  64.  
  65. changeServerButtonText = "(change server)"
  66. // change server
  67. changeServerButtonColor = 'green'
  68. changeServerButtonBorderColor = "transparent"
  69. changeServerButtonBackgroundColor = "transparent"
  70.  
  71.  
  72. // ========== End Settings ========== //
  73.  
  74.  
  75.  
  76. // Gets a list of all the links on the page //
  77. anchor = document.getElementsByTagName("a");
  78.  
  79. // Weekly Donation Goal //
  80. anchor[6].style.color = textColor
  81. anchor[6].style.fontFamily = textFont
  82.  
  83. // Change Server Link //
  84. anchor[8].style.color = textColor
  85. anchor[8].style.fontFamily = textFont
  86.  
  87. if (serverLinkButton === true) {
  88. anchor[8].className = "button"
  89. anchor[8].style.borderColor=changeServerButtonBorderColor
  90. anchor[8].style.color=changeServerButtonColor
  91. anchor[8].style.fontFamily=buttonFont
  92. anchor[8].style.backgroundColor=changeServerButtonBackgroundColor
  93. anchor[8].innerHTML = changeServerButtonText
  94. }
  95.  
  96.  
  97. // reddit link //
  98. anchor[9].style.color = textColor
  99. anchor[9].style.fontFamily = textFont
  100.  
  101. // facebook link //
  102. anchor[10].style.color = textColor
  103. anchor[10].style.fontFamily = textFont
  104.  
  105. // twitter link //
  106. anchor[11].style.color = textColor
  107. anchor[11].style.fontFamily = textFont
  108.  
  109.  
  110. anchor[1].innerHTML="Play Now<span>" + startButtonText + "</span>";
  111. anchor[1].style.backgroundColor = startButtonBackgroundColor;
  112. anchor[1].style.borderColor = startButtonBorderColor;
  113. anchor[1].style.color = startButtonColor;
  114. anchor[1].style.fontFamily = buttonFont
  115.  
  116. anchor[2].innerHTML="Profile<span>" + profileButtonText + "</span>";
  117. anchor[2].style.backgroundColor = profileButtonBackgroundColor;
  118. anchor[2].style.borderColor = startButtonBorderColor;
  119. anchor[2].style.color = profileButtonColor;
  120. anchor[2].style.fontFamily = buttonFont
  121.  
  122. anchor[3].innerHTML = anchor[3].innerHTML.replace("play with friends",groupButtonText)
  123. anchor[3].style.backgroundColor = groupButtonBackgroundColor;
  124. anchor[3].style.borderColor = startButtonBorderColor;
  125. anchor[3].style.color = groupButtonColor;
  126. anchor[3].style.fontFamily = buttonFont
  127.  
  128. anchor[4].innerHTML="Leaders <span>" + leaderButtonText + "</span>";
  129. anchor[4].style.backgroundColor = leaderButtonBackgroundColor;
  130. anchor[4].style.borderColor = startButtonBorderColor;
  131. anchor[4].style.color = leaderButtonColor;
  132. anchor[4].style.fontFamily = buttonFont
  133.  
  134. if (anchor[5].id === "ReplayMenuButton")
  135. {
  136. anchor[5].innerHTML="Replays<span>" + replayButtonText + "</span>";
  137. anchor[5].style.backgroundColor = replayButtonBackgroundColor;
  138. anchor[5].style.borderColor = startButtonBorderColor;
  139. anchor[5].style.color = replayButtonColor;
  140. anchor[5].style.fontFamily = buttonFont
  141. }
  142.  
  143. if (controlTips === 'off') {
  144.  
  145. $('.controls').remove();
  146.  
  147. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement