sindresorhus / refined-twitter

Browser extension that simplifies the Twitter interface and adds useful features
MIT License
1.31k stars 89 forks source link

Make it work with the new Twitter website #195

Closed sindresorhus closed 3 years ago

sindresorhus commented 4 years ago

Twitter released their rewritten website, which broke most of the features in this extension. I could use help porting the features to the new UI.

biscuitsan commented 4 years ago

Will the extension still be compatible with the old one?

sindresorhus commented 4 years ago

No, the intent is to move completely to the new UI.

giuseppeg commented 4 years ago

fwiw refined twitter lite is modular so probably you can fork it and add features to it

sindresorhus commented 4 years ago

@giuseppeg https://github.com/sindresorhus/refined-twitter#dont-you-have-another-extension-with-the-same-name

giuseppeg commented 4 years ago

@sindresorhus neato!

b9AcE commented 4 years ago

I think it might be good to have one version for good old twitter and one for their new worsened web-UI, so that those that use the UA-trick or other methods to revert Twitter's design can still use this extension. There should reasonably not be much maintenance needed for the good old web-UI, as it would be well tested and probably won't undergo further changes by Twitter.

tiansh commented 4 years ago

I had done some research on the UI. By wrapping webpack 4[1] and Object.prototype, it is possible to get Redux store, React, ReactDOM in page script. By wrapping React.createElement, it is possible to get every Components. It is fine to do something before / after store.dispatch()'s reducer. And since store is well strutted, it could be used to remove / hide some contents on webpage. But since all Components are compressed. Most Components' name are not available. It is hard to wrap Components' render to do something changing the layout.

[1]: Login page is using webpack 3, but inner page is webpack 4.

Something possible with Redux reducer wrapper described above:

equinox commented 4 years ago

Any chance it's been decided whether or not the new UI will be handled in this repo, or another? It'd save having to close and reject all the bug reports and PRs in this repo that were at the time accurate and could still be potentially used in conjunction with those extensions that allow you to use the old Twitter UI (while it lasts)?

sindresorhus commented 4 years ago

The plan is to only target the new UI.

sindresorhus commented 3 years ago

Closing as this extension is now deprecated: https://github.com/sindresorhus/refined-twitter/commit/8dd9df749d3a4e82c95b2bd6628c8d65f0f72e6c