import code
This commit is contained in:
19
userscript.js
Normal file
19
userscript.js
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
// ==UserScript==
|
||||||
|
// @name Remove QARU from Google search
|
||||||
|
// @version 0.1
|
||||||
|
// @description Удаляет сайт qaru.site из поисковой выдачи гугла
|
||||||
|
// @author DmitriyMX
|
||||||
|
// @match https://google.com/*
|
||||||
|
// @match https://google.ru/*
|
||||||
|
// @match https://www.google.com/*
|
||||||
|
// @match https://www.google.ru/*
|
||||||
|
// @grant none
|
||||||
|
// ==/UserScript==
|
||||||
|
|
||||||
|
(function() {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
Array.from(document.getElementsByClassName('g'))
|
||||||
|
.filter(elm => { return elm.querySelector('a[href*="qaru.site"]') !== null })
|
||||||
|
.forEach(elm => { elm.remove() })
|
||||||
|
})();
|
||||||
Reference in New Issue
Block a user