Giter Site home page Giter Site logo

brunolemos / simplified-twitter Goto Github PK

View Code? Open in Web Editor NEW
186.0 4.0 14.0 6.5 MB

Remove distractions from the new Twitter layout. Extension for Chrome, Firefox, Safari, Edge & More

License: MIT License

JavaScript 38.61% Swift 54.88% CSS 6.51%
twitter chrome-extension firefox-addon firefox-extension productivity user-interface user-experience safari-extension edge-extension

simplified-twitter's Introduction

Simplified Twitter

The new Twitter, without distractions

simplified-twitter-comparison-gif

Download the extension for:

Other links:

Why is this better than the alternatives?

  1. They all make the same mistake: Mess with CSS and make some things worse. Some add shadows, some add distracting hover effects, some move buttons too far away from the center.

  2. At the new twitter the class names are random and dynamic (e.g.: .css-1dbjc4n instead of .my-class-name). Extensions that depend on class names will break at any time.

This extension tricks Twitter to think the window is smaller, and Twitter adjusts everything by itself. We don't need to apply hacky styles, twitter is already responsive by default.

"I've tried a lot of similar extensions, and this one provides the best result."

"Literally 10/10"

Author

Follow me on Twitter: @brunolemos

simplified-twitter's People

Contributors

bcye avatar brunolemos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

simplified-twitter's Issues

Mention Menu Too Narrow

See the screenshot below:

img

The highlighted element is being assigned a min-width and max-width that produce a mentions menu/popup that's too narrow to be useful.

Issue with New Tabs in v1.5

It appears the fixes applied in v1.5 missed a possible cause, and it's still possible to get a stretched-out page.

Reproduction Steps:

  1. Go to any tweet, timeline, list or other page on Twitter.
  2. Middle click on a username or timestamp or other link within Twitter, to open it in a new tab.
  3. Wait a second.
  4. Click on that tab.

You'll find that the page has been stretched to completely fill the window, much like how the extension was faring shortly before v1.5 was released. Much like those cases, it can be fixed by either resizing the window or clicking onto another tab, then clicking back.

Example Screenshot

Hope this helps! Love the extension, it makes Twitter usable.

EDIT: I should probably mention that this was on the Chrome version of the extension.

Firefox

This extension currently edits window.innerWidth to trigger the responsive layout. The only way I got that to work on chrome was by injecting a <script> tag dynamically in the page. If I don’t inject and simply try to set window.innerWidth it doesn’t have any effect because it’s sandboxed. Same on firefox.

The problem is that the script injection is not working on Firefox: Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”).

I may need to change the approach.

Any suggestions?

PS: I’m editing window.innerWidth because the new twitter uses react-native-web and that’s how react-native-web gets the window size.

Block indicator bubble for new Notifications

Hello & thanks for publishing this add-on :-)

Would it be possible to selectively block that little annoyance? Since notifications include retweets & likes, no active review is really necessary, so the indicator bubble (green, at the bell icon in the example below) could be counted as click-baiting.

The CSS selector and class IDs are randomized, unfortunately: div.r-b5skir:nth-child(2), but maybe the combination of the other div attributes can be used to block it?

Example

Screen Shot 2020-02-26 at 06 04 30

<div dir="auto" aria-label="8 unread items" aria-live="polite"
class="css-901oao r-1awozwy r-b5skir r-f6ebdl r-sdzlij r-1phboty r-rs99b7 r-1tjplnt r-jwli3a r-6koalj r-1q142lx r-1qd0xha r-1gkfh8e r-16dba41 r-50lct3 r-1777fci r-ad9z0x r-1b8eohn r-u8s1d r-kquydp r-1m4drjs r-3s2u2q r-qvutc0"
style="color: rgb(23, 191, 99);">
8
</div>

X/Twitter does not shrink anymore

As of 21st Nov, the webpage does not shrink to 800px as the extension intended. Both Firefox/Chrome does same behaviour, so I think it's due to server-side change.
Not sure you still maintaing it, but worth the shot in either way.

Hide the view count

Perhaps optionally as setting, I personally find it distracting.

This one that says 1,017 together with the icon.

image

Perhaps optionally as setting as I can imagine some would still want to see it.

Thank you.

Package invalid error in Brave

Package is invalid: CRX_REQUIRED_PROOF_MISSING on Brave Version 0.66.101 Chromium: 75.0.3770.142 (Official Build) (64-bit)

OS: MacOS Mojave 10.14.5 (18F132)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.