Advertisement
RudaGabriel

Starve.io Always Skin

Sep 19th, 2017
3,570
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Starve.io Always Skin
  3. // @namespace    https://pastebin.com/cyWp1cpw
  4. // @version      1.0.9
  5. // @homepage     http://bit.ly/YxuRd
  6. // @supportURL   https://greasyfork.org/pt-BR/scripts/33345-starve-io-always-skin/feedback
  7. // @updateURL    https://pastebin.com/raw/cyWp1cpw
  8. // @description  Always Show Skin, Without Share
  9. // @author       Ruda Gabriel
  10. // @run-at       document-end
  11. // @match        *://starve.io/*
  12. // @icon         http://starve.io/img/favicon.png
  13. // @require      http://code.jquery.com/jquery-1.12.4.min.js
  14. // ==/UserScript==
  15.  
  16. //If you are Redistributing, please give credits to the author: Ruda Gabriel
  17.  
  18. setInterval(function(){
  19.     if (document.getElementById("bbback")!==null) {
  20.         document.getElementById("bbback").setAttribute("id","back");
  21.         document.getElementById("back").style="box-shadow: 0px; 5px; #593109; color: #FFFFFF; font-family: 'Baloo Paaji'; margin-bottom: 17px; margin-top: 5px; margin-right: 15px; margin-left: 15px; padding-right: 35px; padding-left: 35px; font-size: 20px; text-align: center; border-radius: 8px; background-color: #854b10; cursor: pointer; display: inline-block;";
  22.     }
  23.     if (document.getElementById("tttwitter")!==null) {
  24.         document.getElementById("tttwitter").setAttribute("id","twitter");
  25.         document.getElementById("twitter").style="border-radius: 7px; background-color: rgb(27, 149, 224); cursor: pointer;";
  26.     }
  27.     if (document.getElementById("fffacebook")!==null) {
  28.         document.getElementById("fffacebook").setAttribute("id","facebook");
  29.         document.getElementById("facebook").style="border-radius: 7px; background-color: rgb(66, 103, 178); cursor: pointer;";
  30.     }
  31.     if (document.getElementById('back')!==null){
  32.         document.getElementById('back').onclick = function(){
  33.             document.getElementById("choose_skin").style.display="inline-block";
  34.         };
  35.     }
  36.     function disp(){
  37.         if(document.getElementById('loading').style.display=="none"===false){
  38.             window.setTimeout(disp, 10);
  39.         }else{
  40.             if($('#share_skins').length>0){
  41.                 document.getElementById('share_skins').remove();
  42.                 document.getElementById("choose_skin").style.display="inline-block";
  43.             }
  44.         }
  45.     }
  46.     disp();
  47. },100);
  48. return (setInterval);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement