Skip to content

Instantly share code, notes, and snippets.

@cshijiel
Created July 2, 2019 12:55
Show Gist options
  • Save cshijiel/c44d87d5824cd6d01445a6d5ee17e0a8 to your computer and use it in GitHub Desktop.
Save cshijiel/c44d87d5824cd6d01445a6d5ee17e0a8 to your computer and use it in GitHub Desktop.
隐藏知乎收费回答 油猴脚本
// ==UserScript==
// @name 隐藏知乎收费回答
// @namespace https://www.zhihu.com/
// @version 0.1
// @description 隐藏知乎收费回答
// @author You
// @match https://www.zhihu.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
(function() {
'use strict';
var t = setTimeout(function(){
console.log("隐藏知乎收费回答开始");
try {
document.getElementsByClassName("PurchaseBtn")[0].parentNode.parentNode.parentNode.parentNode.hidden=true
}
catch (e) {
// ignore
}
console.log("隐藏知乎收费回答完成");
window.clearTimeout(t)
},3000);
})();
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment