update blacklist
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// ==UserScript==
|
||||
// @name Remove SO-clones from Google search
|
||||
// @version 1.3
|
||||
// @version 1.4
|
||||
// @description Удаляет клоны StackOverflow из поисковой выдачи гугла
|
||||
// @author DmitriyMX
|
||||
// @namespace https://gitlab.com/DmitriyMX/remove-so-clones-from-google-search
|
||||
@@ -15,11 +15,18 @@
|
||||
|
||||
(function() {
|
||||
'use strict';
|
||||
const blackUrls = ['qaru.site', 'issue.life', 'jiajianhudong.com', 'it-swarm.net']
|
||||
const blacklist = [
|
||||
'qaru.site',
|
||||
'issue.life',
|
||||
'jiajianhudong.com',
|
||||
'it-swarm.net',
|
||||
'overcoder.net',
|
||||
'it-swarm.com.ru'
|
||||
]
|
||||
|
||||
Array.from(document.getElementsByClassName('g'))
|
||||
.filter(elm => {
|
||||
return blackUrls.reduce((result, item) => {
|
||||
return blacklist.reduce((result, item) => {
|
||||
return result ? true : elm.querySelector('a').href.includes(item)
|
||||
}, false);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user