0

import code

This commit is contained in:
2019-09-28 22:17:15 +00:00
commit c078393d6a

19
userscript.js Normal file
View 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() })
})();