0

Update userscript.js

This commit is contained in:
2019-09-29 12:35:04 +00:00
parent 0023642481
commit 1f970fb81e

22
del-qaru.user.js Normal file
View File

@@ -0,0 +1,22 @@
// ==UserScript==
// @name Remove QARU from Google search
// @version 1.1
// @description Удаляет сайт qaru.site из поисковой выдачи гугла
// @author DmitriyMX
// @namespace https://gitlab.com/DmitriyMX/remove-qaru-from-google-search
// @downloadURL https://gitlab.com/DmitriyMX/remove-qaru-from-google-search/raw/master/del-qaru.user.js
// @updateURL https://gitlab.com/DmitriyMX/remove-qaru-from-google-search/raw/master/del-qaru.user.js
// @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() })
})();