Last active
June 23, 2022 23:02
-
-
Save koumaza/442006cca0df44a8084e5583d5c4875a to your computer and use it in GitHub Desktop.
Anti Annoying Call Suggestion on GoogleJp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Anti-AnnoyingCallSuggestion GoogleJp | |
// @namespace Violentmonkey Scripts | |
// @match *://*/* | |
// @grant none | |
// @version 1.0 | |
// @author koumaza | |
// ==/UserScript== | |
// TODO For PC | |
const recsNodeSelector = (node, hierarchy) => { | |
let followedNode = node | |
Array.from(Array(hierarchy)).map(()=>{ | |
followedNode = followedNode.parentNode | |
}) | |
return followedNode | |
} | |
window.addEventListener('load', () => { | |
recsNodeSelector(document.querySelector('[href="https://www.mhlw.go.jp/stf/seisakunitsuite/bunya/hukushi_kaigo/seikatsuhogo/jisatsu/soudan_tel.html"]'),6).style.setProperty('display','none','important') | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment