Surviv.io CustomCSS & BugFix

A script meant for streamers, adding a nice little "Streamer Mode" effect to the game.

当前为 2019-07-16 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Surviv.io CustomCSS & BugFix
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1b
  5. // @description A script meant for streamers, adding a nice little "Streamer Mode" effect to the game.
  6. // @author DamienVesper
  7. // @match *://surviv.io/*
  8. // @match *://surviv2.io/*
  9. // @match *://2dbattleroyale.com/*
  10. // @match *://2dbattleroyale.org/*
  11. // @match *://piearesquared.info/*
  12. // @match *://thecircleisclosing.com/*
  13. // @match *://parmainitiative.com/*
  14. // @match *://ot38.club/*
  15. // @grant none
  16. // ==/UserScript==
  17.  
  18. (function() {
  19. /*
  20. LEGAL
  21. - All code licensed under the Apache 2.0 License. Code copyright 2019 by DamienVesper. All rights reserved.
  22. - All code reproductions must include the below insigna.
  23. - Any reproductions of this and other related works that are found to be in violence of this code will be reported and removed.
  24. ____ _
  25. |\ \ / | | |_|
  26. | \ \ / |____| __ __ __ __ __ __ __ __ __ __ __
  27. | / \ / | | | | | | | | | | | | | | | | | | | | | |
  28. |/ \/ | | |__| |__| | |__|_ | | | | | | | | | |__|
  29. | |
  30. __| __|
  31. */
  32.  
  33. 'use strict';
  34.  
  35. setInterval(function() {
  36. //Squad BugFix
  37. if(document.querySelector(`#btn-start-team`)) document.querySelector(`#btn-start-team`).style.display = `block`;
  38.  
  39. //Streamer Mode / Blur Effect
  40. if(document.querySelector(`#ad-block-left > #news`)) document.querySelector(`#ad-block-left > #news`).remove();
  41. if(document.querySelector(`#news-block > #news`)) document.querySelector(`#news-block > #news`).remove();
  42.  
  43. document.querySelector(`#ad-block-left`).style.height = `325px`;
  44. document.querySelector(`#ad-block-left`).style.overflowY = `hidden`;
  45.  
  46. let blurElements = document.querySelectorAll(`.account-player-name, .featured-streamer > a, #featured-youtuber a`)
  47. for(let i = 0; i < blurElements.length; i++) blurElements[i].style.filter = `blur(5px)`;
  48.  
  49. let removeShadowElements = document.querySelectorAll(`#news-block, #social-share-block, #start-menu, #team-menu`);
  50. for(let i = 0; i < removeShadowElements.length; i++) removeShadowElements[i].style.boxShadow = ``;
  51.  
  52. document.querySelector(`#background`).style.filter = `blur(2.5px)`;
  53. });
  54. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址