prinsss / twitter-web-exporter

Export tweets, bookmarks, lists and much more from Twitter(X) web app. (推文/书签/收藏/列表导出工具)
MIT License
815 stars 56 forks source link

Twitter won't load any tweets or profiles when script is running #41

Open Jars1415 opened 1 month ago

Jars1415 commented 1 month ago

I have the script installed in tampermonkey. When visiting twitter, I see an error that says "Something went wrong. Try reloading." where tweets/profiles should be (reloading did not fix this). After disabling the script in tampermonkey and reloading twitter, everything appears normal. Re-enabling the script and reloading twitter again causes the error to re-appear.

DB9-max commented 1 month ago

Get violentmonkey Check script match https://x.com/*

XiaJiuge commented 4 weeks ago

In tampermonkey settings, change "Config mode" to advance, then go to the "Security" and change "Modify existing content security policy (CSP) headers" to Yes ,then go to bottom of page, in "Experimental" , change "Add Tampermonkey to the HTML's CSP" to Yes

pandacat42 commented 4 weeks ago

Having same issue, neither of above fixes seem to work on firefox

DB9-max commented 4 weeks ago

Get Violentmonkey - it's open source and lightweight compared to Tampermonkey

prinsss commented 3 weeks ago

Hi all,

This could be a problem about Content-Security-Policy (CSP) and was discussed before in #19.

For Chrome users, it should just work.

For Firefox users with Tampermonkey installed, try setting:

image

For Firefox users with Violentmonkey installed, the upstream issue is tracked here:

https://github.com/violentmonkey/violentmonkey/issues/1001

Jars1415 commented 2 weeks ago

Thanks. I tried this and unfortunately it didn't work. I then tried changing "Modify existing content security policy (CSP) headers" from "Yes" to "Remove entirely (possibly unsecure" just to see if it would make a difference, and that worked. I then changed it back because I don't know enough to judge if "possibly unsecure" is a problem for me, but this seems to be a possible solution.