From c078393d6a52d9f5dbddad2070a9ea961c327aa8 Mon Sep 17 00:00:00 2001 From: DmitriyMX Date: Sat, 28 Sep 2019 22:17:15 +0000 Subject: [PATCH] import code --- userscript.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 userscript.js 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