Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==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"
- // ========== Settings ========== //
- // Text stuff //
- textColor = "rgb(0, 157, 0)"
- buttonFont = "Arial Rounded MT Bold"
- textFont = "Calibri"
- // Whether change server link is a button (true/false) //
- var serverLinkButton = false;
- // 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 = ""
- // no ceremony, jump in
- startButtonColor = "gold"
- startButtonBorderColor = "transparent" //blue
- startButtonBackgroundColor = "transparent" //red
- profileButtonText = ""
- // all about you
- profileButtonColor = "rgb(255,252,119)"
- profileButtonBorderColor = "transparent" //blue
- profileButtonBackgroundColor = "transparent" //red
- groupButtonText = ""
- // play with friends
- groupButtonColor = "rgb(255,252,119)"
- groupButtonBorderColor = "transparent" //blue
- groupButtonBackgroundColor = "transparent" //red
- leaderButtonText = ""
- // who's the best
- leaderButtonColor = "rgb(255,252,119)"
- leaderButtonBorderColor = "transparent" //blue
- leaderButtonBackgroundColor = "transparent" //red
- replayButtonText = ""
- // watch yourself
- replayButtonColor = "rgb(255,252,119)"
- replayButtonBorderColor = "transparent" //blue
- replayButtonBackgroundColor = "transparent" //red
- changeServerButtonText = "(change server)"
- // change server
- changeServerButtonColor = 'green'
- 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<span>" + startButtonText + "</span>";
- anchor[1].style.backgroundColor = startButtonBackgroundColor;
- anchor[1].style.borderColor = startButtonBorderColor;
- anchor[1].style.color = startButtonColor;
- anchor[1].style.fontFamily = buttonFont
- anchor[2].innerHTML="Profile<span>" + profileButtonText + "</span>";
- 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 <span>" + leaderButtonText + "</span>";
- 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<span>" + replayButtonText + "</span>";
- 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();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement