commit c078393d6a52d9f5dbddad2070a9ea961c327aa8 Author: DmitriyMX Date: Sat Sep 28 22:17:15 2019 +0000 import code diff --git a/userscript.js b/userscript.js new file mode 100644 index 0000000..d4233e1 --- /dev/null +++ b/userscript.js @@ -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() }) +})(); \ No newline at end of file