QingGo / zhihu_blockPrivacyPolicy

破解知乎网页端不同意隐私协议就没法用的油猴脚本。The Tampermonkey script to block privacy policy of the web site Zhihu.
MIT License
2 stars 1 forks source link

Tampermonkey Install Failed #1

Open ZHNathanielLee opened 6 years ago

ZHNathanielLee commented 6 years ago
  1. Copy the source code DIRECTLY into a new script shown that: "Missing semicolon"
  2. I had add three semicolon than fix the syntax error
  3. Reload the page of zhihu's web page had no effect
ZHNathanielLee commented 6 years ago

Added Testing:

  1. Chrome 64.0.3282.168(64bit) (Win64+MacOS) + Tampermonkey 4.5 -- FAILED
  2. FireFox 59.02(Win64+MacOS) + Greasemonkey 4.3 -- FAILED
QingGo commented 6 years ago

@ZHNathanielLee Thanks for your test! I updated the logic of how the script retries to find privacy policy elements. Maybe this time the script will work.

It can work fine in my computer environment: FireFox 59.02(Linux64) + Greasemonkey 4.3 Chromium 62.0.3202.89(Linux64) + Greasemonkey 4.5

ZHNathanielLee commented 6 years ago

I had reconstructed this script than it can running under tampermonkey, but I found a problem that is The script can effect only:

  1. the webpage loaded at the foreground
  2. Visited webpage directly
QingGo commented 6 years ago

@ZHNathanielLee In my computer environment, this script works even if I open a new tab in the background. Did you visit Zhihu in another domain? This script only work under domain like "://.zhihu.com/*".