清爽直播

去除直播页下方礼物面板等

  1. // ==UserScript==
  2. // @name 清爽直播
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.4
  5. // @description 去除直播页下方礼物面板等
  6. // @author greasyblade
  7. // @match *://live.bilibili.com/*
  8. // @match *://www.douyu.com/*
  9. // @match *://www.quanmin.tv/*
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. // live.bilibili.com/*
  17. if (location.hostname === 'live.bilibili.com') {
  18. window.onload = () => {
  19. if (document.getElementById("gift-control-vm")) {
  20. document.getElementById("gift-control-vm").remove();
  21. }
  22. if (document.getElementById("rank-list-vm")) {
  23. document.getElementById("rank-list-vm").remove();
  24. }
  25. };
  26. }
  27.  
  28. // douyu.com/*
  29. if (location.hostname === 'www.douyu.com') {
  30. window.onload = () => {
  31. if (document.getElementById("js-player-toolbar")) {
  32. document.getElementById("js-player-toolbar").remove();
  33. }
  34. if (document.getElementsByClassName("layout-Player-video")[0]) {
  35. document.getElementsByClassName("layout-Player-video")[0].setAttribute("style","bottom: 0px;");
  36. }
  37. };
  38. let auto1 = setInterval(() => {
  39. if (document.getElementsByClassName("layout-Player-rankAll").length > 0) {
  40. document.getElementsByClassName("layout-Player-rankAll")[0].remove();
  41. }
  42. }, 500);
  43.  
  44. let auto2 = setInterval(() => {
  45. if (document.getElementsByClassName("layout-Player-rank").length > 0) {
  46. document.getElementsByClassName("layout-Player-rank")[0].remove();
  47. }
  48. }, 500);
  49. let auto3 = setInterval(() => {
  50. if (document.getElementsByClassName("Bottom-ad")[0]) {
  51. document.getElementsByClassName("Bottom-ad")[0].remove();
  52. clearInterval(auto3);
  53. }
  54. }, 50);
  55. let auto4 = setInterval(() => {
  56. if (document.getElementById("js-player-barrage")) {
  57. document.getElementById("js-player-barrage").setAttribute("style","top: 0px;");
  58. }
  59. }, 500);
  60. }
  61.  
  62. // quanmin.tv/*
  63. if (location.hostname === 'www.quanmin.tv') {
  64. window.onload = () => {
  65. if (document.getElementsByClassName("room_w-giftbar").length > 0) {
  66. document.getElementsByClassName("room_w-giftbar")[0].remove();
  67. }
  68. if (document.getElementsByClassName("guide-login-wrap").length > 0) {
  69. document.getElementsByClassName("guide-login-wrap")[0].remove();
  70. }
  71. //热门推广
  72. if (document.getElementsByClassName('room_w-tabs_header-item').length > 1) {
  73. document.getElementsByClassName('room_w-tabs_header-item')[1].remove();
  74. }
  75. if (document.getElementsByClassName('room_p-room_rank').length > 0) {
  76. document.getElementsByClassName('room_p-room_rank')[0].remove();
  77. }
  78. };
  79. }
  80. })();

QingJ © 2025

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