try to take over the world!
Version vom
// ==UserScript==
// @name leetCode过滤器
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://leetcode-cn.com/problemset/all/
// @grant none
// ==/UserScript==
(function() {
'use strict';
let func = window.onload ;
window.onload = ()=>{
func && func();
let observer = new MutationObserver((a,b)=>{
Array.from(document.getElementsByTagName("tr"))
.filter(item=>item.querySelectorAll("div>span>span").length>0)
.forEach(item=>{item.style.display='none'});
});
let tb = document.querySelector(".category-group-base+div")
let options = {
'childList': true,
"subtree":true,
} ;
observer.observe(tb, options);
}
})();