Fix header of mo.fish

7/18/2020, 10:13:17 PM

// ==UserScript==
// @name        Fix header of mo.fish
// @namespace   daimon2k
// @match       *://mo.fish/*
// @grant       none
// @version     0.6
// @author      daimon2k
// @description 7/18/2020, 10:13:17 PM
// ==/UserScript==

(function() {
  var css = '.list-class {position: relative !important}';
  css += '.hot-box {position: relative !important;}'; 

  loadStyle(css)
  function loadStyle(css) {
    var style = document.createElement('style');
    style.type = 'text/css';
    style.rel = 'stylesheet';
    style.appendChild(document.createTextNode(css));
    var head = document.getElementsByTagName('head')[0];
    head.appendChild(style);
  }
  
  const timer = window.setInterval(()=>{for (let item of document.querySelectorAll('#moveBoxItem')) {
    if (/淘宝|京东|聚划算/.test(item.innerText)) {
      item.remove()
    }
  }}, 500)
})();

QingJ © 2025

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