View More Twitter Replies

Automatically displays replies hidden behind buttons

< 腳本View More Twitter Replies的回應

評論:負評 - 腳本失效或無法使用

§
發表於:2020-06-01

Doesn't work.

JAK0723作者
§
發表於:2020-06-02

How exactly isn't it working? This was designed primilary for tweets that were access by external sources like TweetDeck and whose replies are hidden by a "View more replies" link/button. Is this function failing to work correctly, or are you expecting some other functionality which isn't occurring?

JAK0723作者
§
發表於:2020-06-02

I've updated the script so that replies which are hidden behind "Show more replies" and "Show additional replies, including those that may contain offensive content".

Please use the updated version and let me know if it's working for you or not.

Deleted user 25884
§
發表於:2020-06-02
編輯:2020-06-02

Doesn't work at all on latest Firefox + Tampermonkey:
https://twitter.com/Major_Guardian
Test here, I will leave a good rating to show my support if you can tweak it :(

JAK0723作者
§
發表於:2020-06-02

I just checked and it looks like the script's actions are being blocked by the Content Security Policy. I'm not too sure how to fix this issue, but I'll look into it.

Deleted user 25884
§
發表於:2020-06-02
編輯:2020-06-02

Sadly you likely cannot fix this if you already figured out CSP as the issue. Whilst you probably know CSP can be disabled in about:config, it however will lower security across every website visited. This is purely Twitter's doing, to prevent userscript developers from offering scripts like yours. New Twitter seems to hate freedom.

https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP

I've read some fully fledged addons/extensions can modify the CSP header per site. Perhaps someone can code such an addon that only removes CSP for Twitter to keep the rest of the web safe from XSS.

You also gave me a good explanation why ALL of my Twitter userscripts died as of June the 2nd because of this change.

EDIT:
https://addons.mozilla.org/en-US/firefox/addon/spotify-csp-clear/

Such addons seem to exist for other sites, perhaps it can be forked for Twitter, but I cannot promise that I can make it work. Will try!

JAK0723作者
§
發表於:2020-06-02

I just tried it with Violentmonkey and Greasemonkey and it works fine. I think the current version of Tampermonkey is having trouble with CSP on Firefox.

Deleted user 25884
§
發表於:2020-06-02
編輯:2020-06-02

Alright, Tampermonkey was getting bad rep on other sites recently due to closing source. Shame for it becoming less reliable as well.

Guess I migrate and if I get all working I leave a good rating soon.

Edit:
It's done, thanks again!

發表回覆

登入以回復

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址