Skip to content

Instantly share code, notes, and snippets.

@koumaza
Last active June 23, 2022 23:02
Show Gist options
  • Save koumaza/442006cca0df44a8084e5583d5c4875a to your computer and use it in GitHub Desktop.
Save koumaza/442006cca0df44a8084e5583d5c4875a to your computer and use it in GitHub Desktop.
Anti Annoying Call Suggestion on GoogleJp
// ==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