Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name ROBLOX Theme Changer
- // @version 1.3
- // @description Changes the ROBLOX theme to something more... visible.
- // @author FiniteReality (Tristan)
- // @match http://www.roblox.com/*
- // @match https://www.roblox.com/*
- // @exclude http://developer.roblox.com/*
- // @require http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.11.1.min.js
- // @require http://ajax.aspnetcdn.com/ajax/jquery.migrate/jquery-migrate-1.2.1.min.js
- // ==/UserScript==
- this.$ = this.jQuery = jQuery.noConflict(true);
- // Change these for different colours
- var BACKGROUND_COLOR = "#222";
- var MAIN_COLOR = "#F2F2F2";
- var SIDE_NAV_COLOR = "#727272";
- var TOP_NAV_COLOR = "#525252";
- var LIGHT_TEXT_COLOR = "#F2F2F2";
- var NAV_BUBBLE_COLOR = "#424242";
- var LIGHT_TEXT_HOVER_COLOR = "#525252";
- var USERNAME_DIVIDER_COLOR = "#828282";
- var TOP_NAV_COLOR = "#525252";
- var FOOTER_NAV_COLOR = "#5F5F5F";
- var LEADERBOARD_ODD_COLOR = "#FCFCFC";
- // Don't mind me using an array - I didn't know how to make multiline strings in JS. If such a thing even exists in JS.
- GM_addStyle([
- "#MasterContainer, #Body, .container-main {",
- " background-color: "+BACKGROUND_COLOR+" !important;",
- "}",
- "#Body, #UserPlaces, .ProfileAlertPanel, .tab-content, .GroupWallPane, .GroupWallPane .AlternatingItemTemplateEven, #navContent, #DivToHideOverflowFromLastGamesList, .games-list-container, .tab-content-container, .tab-container+div>div, .tab-active, .tab.active, .StanderdPanelContainer, .StandardPanelWhite, .SquareTabGray.selected, #Summary_tab .RobuxColumn, #Summary_tab .TicketsColumn, .ajax__tab_panel, .ajax__tab_body, .ajax__tab_active, .ajax__tab_active .ajax__tab_inner, #leaderboards-top-container, #leaderboards-top, #leaderboards-controls, #leaderboards-header, #clan-leaderboards-header, #fixed-leaderboards-buttons div, .leaderboards-row, .SmallCatalogItemView, .CatalogItemInner, .UserBlurb, .status-update, .simplemodal-overlay {",
- " background-color: "+MAIN_COLOR+" !important;",
- "}",
- ".GrayDropdown .Button {",
- " padding: 4px 8px 0px 8px !important;",
- "}",
- ".GrayDropdown .Menu {",
- " top: 30px !important;",
- "}",
- ".PlaceLauncherModal, #videoPrerollPanel {",
- " background-color: #FFF !important;",
- " box-shadow: 0 1px 3px rgba(150, 150, 150, 0.74) !important;",
- " box-sizing: border-box !important;",
- " color: #191919 !important;",
- " min-height: 180px !important;",
- "}",
- ".btn-primary, .btn-primary:link, .btn-primary:active, .btn-primary:visited, .btn-neutral, .btn-control, .Button, .btn-negative {",
- " color: #FFF !important;",
- " box-shadow: 0 1px 3px rgba(150, 150, 150, 0.74) !important;",
- " border-radius: 3px !important;",
- " background: #428BCA !important;",
- " background-image: none !important;",
- " border-color: #3580BD !important;",
- "}",
- ".btn-primary:not(.disabled):hover, .btn-neutral:not(.disabled):hover, .btn-control:not(.disabled):hover, .Button:not(.disabled):hover, .btn-negative:not(.disabled):hover {",
- " color: #FFF !important;",
- " box-shadow: 0 1px 3px rgba(150, 150, 150, 0.74) !important;",
- " border-radius: 3px !important;",
- " background: #32B5FF !important;",
- " border-color: rgba(224,224,224,0) !important;",
- " background-image: none !important;",
- " transition: all,0.2s,ease-in-out;",
- "}",
- "#SearchControls {",
- " height: 21px !important;",
- "}",
- "#SearchControls .content {",
- " margin-left: 10px !important;",
- " margin-right: 10px !important;",
- " width: 100% !important;",
- " background: none !important;",
- "}",
- "#build-page .gear-button-wrapper {",
- " background-color: rgba(0,0,0,0) !important;",
- " border-color: rgba(0,0,0,0) !important;",
- "}",
- "#StudioWidget {",
- " display: none !important;",
- "}",
- ".leaderboards-row:nth-child(odd) {",
- " background-color: "+LEADERBOARD_ODD_COLOR+" !important;",
- "}",
- ".UserBlurb {", // fix annoying non-center blurb
- " width: auto !important;",
- " text-align: center;",
- " margin: 10px 0 0 0 !important;",
- " max-height: 300px !important;",
- "}",
- ".navbar-header {",
- " display: none !important;",
- "}",
- ".rbx-left-col {",
- " background-color: "+SIDE_NAV_COLOR+" !important;",
- "}",
- ".rbx-left-col li a {",
- " color: "+LIGHT_TEXT_COLOR+" !important;",
- "}",
- ".rbx-left-col div li:not(.rbx-upgrade-now):not(.rbx-text-notes):not(.rbx-nav-sponsor) {",
- " transition: background-color 0.07s ease-in-out 0s;",
- " color: "+LIGHT_TEXT_COLOR+" !important;",
- " margin-left: -10px;",
- " display: block !important;",
- " padding-left: 10px;",
- " width: 175px;",
- " height: 28px;",
- "}",
- ".rbx-left-col div li span {",
- " display: block;",
- //" position: fixed;",
- " margin-left: 30px;",
- " margin-top: -24px;",
- " margin-bottom: 0px;",
- "}",
- "#nav-friends .rbx-highlight {",
- " display: none;",
- "}",
- ".rbx-left-col div li:not(.rbx-upgrade-now):not(.rbx-text-notes):not(.rbx-nav-sponsor):hover {",
- " transition: background-color 0.07s ease-in-out 0s;",
- " background-color: "+LIGHT_TEXT_HOVER_COLOR+" !important;",
- "}",
- ".rbx-left-col .rbx-upgrade-now {",
- " display: none;",
- "}",
- ".rbx-left-col .rbx-text-notes {",
- " display: none;",
- "}",
- ".rbx-left-col .rbx-nav-sponsor {",
- " display: none;",
- "}",
- ".rbx-divider {",
- " background-color: "+USERNAME_DIVIDER_COLOR+" !important;",
- "}",
- ".rbx-header {",
- " background-color: "+TOP_NAV_COLOR+" !important;",
- "}",
- ".nav-content {",
- " overflow: hidden !important;",
- "}",
- ".content {",
- " background-color: "+MAIN_COLOR+" !important;",
- " margin-left: 185px;",
- " margin-right: 185px;",
- " max-width: none !important;",
- "}",
- ".page-content {",
- " left: 50%;",
- " margin-right: -50%;",
- " transform: translate(-50%, 0);",
- " position: relative;",
- "}",
- "#HomeContainer {",
- " left: 50%;",
- " margin-right: -50%;",
- " transform: translate(-50%, 0);",
- " position: relative;",
- "}",
- ".place-item.redesign .right-column {",
- " max-height: 680px !important;",
- "}",
- "div.gig-button-container-vertical {",
- " padding: 0 !important;",
- "}",
- "div.gig-button-container {",
- " padding: 0 !important;",
- "}",
- ".PlaceProductPromotionsContainer {",
- " margin-bottom: 15px !important;",
- "}",
- ".GamePassesDisplayContainer { ",
- " margin-bottom: 5px !important;",
- "}",
- ".footer-container, .container-footer {",
- " background: "+BACKGROUND_COLOR+" !important;",
- " color: "+FOOTER_NAV_COLOR+" !important;",
- " margin-bottom: -20px !important;",
- "}",
- ".footer-container .FooterNav {",
- " color: "+FOOTER_NAV_COLOR+" !important;",
- "}",
- ".footer-container .FooterNav a {",
- " color: "+FOOTER_NAV_COLOR+" !important;",
- "}",
- ".footer-container .legal {",
- " color: "+FOOTER_NAV_COLOR+" !important;",
- " border-top: 1px solid "+FOOTER_NAV_COLOR+" !important;",
- "}",
- ".footer-container .legal .right .Legalese {",
- " color: "+FOOTER_NAV_COLOR+" !important;",
- "}",
- ".footer-container .legal .right .Legalese a {",
- " color: "+FOOTER_NAV_COLOR+" !important;",
- "}",
- ".container-footer {",
- " margin-bottom: 0px !important;",
- " height: 244px;",
- "}",
- ".container-footer .footer-note {",
- " color: "+FOOTER_NAV_COLOR+" !important;",
- "}",
- ].join('\n'));
- var symalrt = $(".SystemAlert");
- $("#ctl00_Announcement").addClass("rbx-alert-info").html($("#ctl00_LabelAnnouncement").html());
- $("#AdvertisingLeaderboard").hide();
- $("#AdvertisingLeaderboard").hide();
- $("#Skyscraper-Ad").hide();
- $(".abp-container").hide();
- $(".leaderboard-abp").hide();
- $("#Skyscraper-Ad-Left").hide();
- $("#Skyscraper-Adp-Left").hide();
- $("#Skyscraper-Ad-Right").hide();
- $("#Skyscraper-Adp-Right").hide();
- $(".abp").parent().hide();
- var ad = $(".divider-left").children().last();
- if (ad.has("div .ad-annotations")){
- ad.hide();
- }
- var center = $(".CenterColumn");
- center.first().attr("width", "100%").css("padding", "5px");
- if (center.first()[0] != center.last()[0]){
- center.last().hide();
- }
- $("#Body table .RightColumn").hide();
- $("#Body table .LeftColumn").hide();
- $("#ctl00_cphRoblox_rbxFavoritesPane_FavoritesPane").hide();
- $(".divider-left .divider-bottom").last().hide();
- $("#UserGroupsPane").appendTo(".divider-left").children(".divider-bottom").attr("class", "");
- $("#BadgesDisplayPane").hide();
- $(document).ready(function(){
- setTimeout(function(){
- $("#AdvertisingLeaderboard").remove();
- $("#Skyscraper-Ad").remove();
- $(".abp-container").remove();
- $(".leaderboard-abp").remove();
- $("#Skyscraper-Ad-Left").remove();
- $("#Skyscraper-Adp-Left").remove();
- $("#Skyscraper-Ad-Right").remove();
- $("#Skyscraper-Adp-Right").remove();
- $(".abp").parent().remove();
- if (ad.has("div .ad-annotations")){
- ad.remove();
- }
- if (center.first()[0] != center.last()[0]){
- center.last().remove()
- }
- // Apparently google ads is spasticated and can't handle being removed on load. If pages start hanging for you, uncomment the following lines:
- //setTimeout(function(){
- $("#Body table .RightColumn").remove();
- $("#Body table .LeftColumn").remove();
- //}, 1270);
- $("#ctl00_cphRoblox_rbxFavoritesPane_FavoritesPane").remove();
- $(".divider-left .divider-bottom").last().remove();
- $("#UserGroupsPane").appendTo(".divider-left").children(".divider-bottom").attr("class", "");
- $("#BadgesDisplayPane").remove();
- }, 2150);
- });
Add Comment
Please, Sign In to add comment