小白游戏网优化

小白游戏网界面优化

  1. // ==UserScript==
  2. // @name 小白游戏网优化
  3. // @namespace https://gf.qytechs.cn/zh-CN/users/314234-yong-hu-ming
  4. // @version 1.0.0
  5. // @description 小白游戏网界面优化
  6. // @author Yong_Hu_Ming
  7. // @license MIT License
  8. // @match *://www.xbgame.net/*
  9. // @match *://www.xbgame.net
  10. // @run-at document-start
  11. // @grant GM_addStyle
  12. // ==/UserScript==
  13.  
  14. (function () {
  15. 'use strict';
  16. const css = `.video-wrapper {
  17. display: none !important;
  18. }
  19.  
  20. .section {
  21. max-height: 80vh !important;
  22. background-color: midnightblue !important;
  23. }
  24.  
  25. .wrapper.poa {
  26. margin-top: -60vh !important;
  27. }
  28.  
  29. .search-types-cycles.poa {
  30. display: none !important;
  31. }
  32.  
  33. #jitheme_header_top02 .sup {
  34. display: none !important;
  35. }
  36.  
  37. .b2small.shop-tips {
  38. display: none !important;
  39. }
  40.  
  41. .sort-blocks {
  42. display: none !important;
  43. }
  44.  
  45. .jitheme_home_2_tpqh1 {
  46. display: none !important;
  47. }
  48.  
  49. #jitheme_home_12_cosplay {
  50. display: none !important;
  51. }
  52.  
  53. #jitheme_home_13_photo {
  54. display: none !important;
  55. }
  56.  
  57. .dplayer-logo {
  58. display: none !important;
  59. }
  60.  
  61. .jitheme_logo {
  62. background-image: url("https://www.xbgame.net/wp-content/uploads/2022/06/1656411250-logo.png") !important;
  63. }
  64.  
  65. .wrapper.wrapper-bq {
  66. display: none !important;
  67. }
  68.  
  69. .dplayer-video.dplayer-video-current {
  70. display: var(--video-display) !important;
  71. }
  72.  
  73. video[style="object-fit: contain;"]{
  74. --video-display: block;
  75. }
  76.  
  77. :root{
  78. --video-display: none;
  79. }
  80. `
  81. GM_addStyle(css);
  82. })();
  83.  
  84. document.addEventListener('DOMContentLoaded', function () {
  85. setTimeout(function () {
  86. const videos = document.getElementsByTagName('video');
  87. for (let i = 0; i < videos.length; i++) {
  88. videos[i].removeAttribute('poster');
  89. }
  90. document.querySelector('.dplayer-video.dplayer-video-current').style.setProperty('--video-display', 'block');
  91. }, 1000);
  92. });

QingJ © 2025

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