Fix scrollbar on exploit-db

Fix for the scrollbar not appearing on exploit-db.

目前為 2021-01-03 提交的版本,檢視 最新版本

// ==UserScript==
// @name     Fix scrollbar on exploit-db
// @version  1
// @grant    none
// @namespace    StephenP
// @description  Fix for the scrollbar not appearing on exploit-db.
// @author       StephenP
// @match    https://www.exploit-db.com/*
// @match    https://www.exploit-db.com/
// ==/UserScript==
(function (){
  const config = { attributes: true, childList: false, subtree: false };
  const callback = function(mutationsList, observer) {
    for(const mutation of mutationsList) {
      setTimeout(function(){document.documentElement.classList.remove("perfect-scrollbar-on");},50);//direct execution would crash Greasemonkey, IDK why
    }
  };
  const observer = new MutationObserver(callback);
  observer.observe(document.documentElement, config);
})();

QingJ © 2025

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