Created
July 2, 2019 12:55
-
-
Save cshijiel/c44d87d5824cd6d01445a6d5ee17e0a8 to your computer and use it in GitHub Desktop.
隐藏知乎收费回答 油猴脚本
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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