// ==UserScript== // @name TagPro Homepage Customization // @namespace by defense_bot (aka scrub_bot sometimes) // @version 1.0 // @description changes the text on the buttons // @include http://tagpro-*.koalabeast.com/ // ==/UserScript== // Colors // var redish = "#DA362D" var brightGreen = "#50F600" var darkGreen = "#103500" // ========== Settings ========== // // Text stuff // textColor = "white" buttonFont = "Nova Round" textFont = "Gotham" // Whether change server link is a button (true/false) // var serverLinkButton = true; // Controls tips on/off // var controlTips = "off"; // Button Stuff // // default background color: #ACE600 // // default border color: #608100 // // default text color: black // What you want the buttons to say // startButtonText = "Go Play" // no ceremony, jump in startButtonColor = "white" startButtonBorderColor = "transparent" startButtonBackgroundColor = "transparent" profileButtonText = "Your Stats" // all about you profileButtonColor = "white" profileButtonBorderColor = "transparent" profileButtonBackgroundColor = "transparent" groupButtonText = "Groups" // play with friends groupButtonColor = "white" groupButtonBorderColor = "transparent" groupButtonBackgroundColor = "transparent" leaderButtonText = "Leaderboards" // who's the best leaderButtonColor = "white" leaderButtonBorderColor = "transparent" leaderButtonBackgroundColor = "transparent" replayButtonText = "Check Yourself" // watch yourself replayButtonColor = "white" replayButtonBorderColor = "transparent" replayButtonBackgroundColor = "transparent" changeServerButtonText = "Change Server" // change server changeServerButtonColor = 'white' changeServerButtonBorderColor = "transparent" changeServerButtonBackgroundColor = "transparent" // ========== End Settings ========== // // Gets a list of all the links on the page // anchor = document.getElementsByTagName("a"); // Weekly Donation Goal // anchor[6].style.color = textColor anchor[6].style.fontFamily = textFont // Change Server Link // anchor[8].style.color = textColor anchor[8].style.fontFamily = textFont if (serverLinkButton === true) { anchor[8].className = "button" anchor[8].style.borderColor=changeServerButtonBorderColor anchor[8].style.color=changeServerButtonColor anchor[8].style.fontFamily=buttonFont anchor[8].style.backgroundColor=changeServerButtonBackgroundColor anchor[8].innerHTML = changeServerButtonText } // reddit link // anchor[9].style.color = textColor anchor[9].style.fontFamily = textFont // facebook link // anchor[10].style.color = textColor anchor[10].style.fontFamily = textFont // twitter link // anchor[11].style.color = textColor anchor[11].style.fontFamily = textFont anchor[1].innerHTML="Play Now" + startButtonText + ""; anchor[1].style.backgroundColor = startButtonBackgroundColor; anchor[1].style.borderColor = startButtonBorderColor; anchor[1].style.color = startButtonColor; anchor[1].style.fontFamily = buttonFont anchor[2].innerHTML="Profile" + profileButtonText + ""; anchor[2].style.backgroundColor = profileButtonBackgroundColor; anchor[2].style.borderColor = startButtonBorderColor; anchor[2].style.color = profileButtonColor; anchor[2].style.fontFamily = buttonFont anchor[3].innerHTML = anchor[3].innerHTML.replace("play with friends",groupButtonText) anchor[3].style.backgroundColor = groupButtonBackgroundColor; anchor[3].style.borderColor = startButtonBorderColor; anchor[3].style.color = groupButtonColor; anchor[3].style.fontFamily = buttonFont anchor[4].innerHTML="Leaders " + leaderButtonText + ""; anchor[4].style.backgroundColor = leaderButtonBackgroundColor; anchor[4].style.borderColor = startButtonBorderColor; anchor[4].style.color = leaderButtonColor; anchor[4].style.fontFamily = buttonFont if (anchor[5].id === "ReplayMenuButton") { anchor[5].innerHTML="Replays" + replayButtonText + ""; anchor[5].style.backgroundColor = replayButtonBackgroundColor; anchor[5].style.borderColor = startButtonBorderColor; anchor[5].style.color = replayButtonColor; anchor[5].style.fontFamily = buttonFont } if (controlTips === 'off') { $('.controls').remove(); }