Fix scrollbar on exploit-db

Fix for the scrollbar not appearing on exploit-db.

Tính đến 03-01-2021. Xem phiên bản mới nhất.

// ==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);
})();