在google搜索结果中一劳永逸地屏蔽所有知乎结果
// ==UserScript==
// @name 在搜索结果中屏蔽知乎
// @version 0.0.1
// @description 在google搜索结果中一劳永逸地屏蔽所有知乎结果
// @license MIT
// @author PincongBot
// @include /^https?://(www|cse)\.google(\.\w+)+/search\?.*$/
// @run-at document-start
// @grant none
// @compatible chrome >= 49
// @compatible firefox >= 29
// @compatible opera >= 46
// @compatible safari >= 10.1
// @namespace https://greasyfork.org/users/314505
// ==/UserScript==
(function () {
'use strict';
var params = new URLSearchParams(location.search),
q = params.get("q");
if (q && q.indexOf("-site:zhihu.com") === -1) {
params.set("q", q + " -site:zhihu.com");
location.search = "?" + params.toString();
}
})()