Douyu_Monkey

douyu beautify css injection script

  1. // ==UserScript==
  2. // @name Douyu_Monkey
  3. // @name:cn 斗鱼猴
  4. // @namespace http://tampermonkey.net/
  5. // @version 0.0.17
  6. // @description douyu beautify css injection script
  7. // @author Sherlock-V
  8. // @match https://douyu.com
  9. // @match https://*.douyu.com/*
  10. // @icon https://www.douyu.com/favicon.ico
  11. // @grant GM_addStyle
  12. // @supportURL https://github.com/Ziyueqi-V/douyu_Monkey/issues
  13. // @license MIT
  14. // ==/UserScript==
  15. (function () {
  16. 'use strict';
  17.  
  18. // Your code here...
  19. const cssText = `
  20. .layout-Player-barrage.layout-Player-barrage {
  21. top: 0;
  22. }
  23.  
  24. div[class^=index-listTitle] a {
  25. border-bottom: 2px solid rgba(86, 86, 87, 0.8);
  26. border-left: 2px solid rgba(86, 86, 87, 0.8);
  27. border-right: 2px solid rgba(86, 86, 87, 0.8);
  28. border-radius: 3px;
  29. }
  30.  
  31. .layout-Main.layout-Main {
  32. position: fixed;
  33. top: 60px;
  34. }
  35. `;
  36. GM_addStyle(cssText);
  37.  
  38. const style = document.createElement('style')
  39. const hides = [
  40. // 导航栏 - 分类 - 视频 - 游戏
  41. '.public-DropMenu.Category',
  42. '.public-DropMenu.Video',
  43. '.public-DropMenu.Game',
  44. // 鱼乐盛典
  45. '.HeaderNav',
  46. // 付费礼物区
  47. // 'div.PlayerToolbar:first-child',
  48. // 房间活动
  49. '#js-room-activity',
  50. // 粉丝榜
  51. '.layout-Player-rank',
  52. // 友邻动态
  53. '.AnchorLike-ItemBox',
  54. // 底部
  55. '.layout-Bottom',
  56. // 房间信息, 活动
  57. '#js-player-title > div.Title > div.Title-roomInfo > div:nth-child(3)',
  58. // 房间信息, 热度
  59. '.Title-anchorHot',
  60. // 房间信息, 友邻
  61. '.Title-anchorFriendWrapper',
  62. // 房间信息, 商品橱窗
  63. '.Title-anchorLocation',
  64. // 房间信息, 成就点
  65. '.Title-sharkWeight',
  66. // 房间信息, 工会
  67. '.SociatyLabel',
  68. // 礼物栏
  69. '#js-player-toolbar .ToolbarActivityArea',
  70. '#js-player-toolbar .PlayerToolbar-GiftWrap',
  71. // '#js-player-toolbar .',
  72. // '#js-player-toolbar .',
  73. '#js-player-toolbar div:nth-child(2) div.PlayerToolbar-ContentCell.is-full div.PlayerToolbar-couponInfo',
  74. '#js-player-toolbar div:nth-child(2) div.PlayerToolbar-ContentCell.is-full div.PlayerToolbar-ywInfo',
  75. '#js-player-toolbar div:nth-child(2) div.PlayerToolbar-ContentCell.is-full div.PlayerToolbar-ycInfo',
  76. '#js-player-toolbar div:nth-child(2) div.PlayerToolbar-ContentCell.is-full div.PlayerToolbar-getYCArea',
  77.  
  78.  
  79. ].filter(Boolean)
  80.  
  81. style.innerHTML = [
  82. `${hides.join(',')}{ display: none !important; }`,
  83. ].join('')
  84.  
  85. document.body.appendChild(style)
  86. })();

QingJ © 2025

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