Giter Site home page Giter Site logo

goodtwitter2's Introduction

GoodTwitter 2 - Electric Boogaloo

A try to make Twitter look good again.

Content

Background

Since Twitter disabled the 2014 layout on June 1st 2020 and therefore GoodTwitter stop working too, I decided to create a somewhat fix for the site.

Disclaimers

  • Please keep in mind that a few things break from time to time so creating pull requests and/or issues is appreciated.
    • The disableAutoRefresh feature is extremely buggy atm, any help would be very nice
  • This is by no means a full recreation of the old design, it is more like a hybrid between the two.

Features

  • Legacy Navbar is back!
  • Your profile appears on the left side for most pages
  • All display settings are supported!
    • The default and dim theme use the color palette from legacy twitter

Custom Settings

Timeline

  • Force Latest: Forces the “You’re seeing latest tweets first” display option
  • Disable Auto Refresh: Hides newly loaded tweets and creates a button to show them. This feature is not stable.
  • Keep Tweets in Timeline: Tries to disable the automatic removal of tweets once they are out of viewing range. This does not yet work.

Display

  • Sticky Sidebars: This lets the sidebars stick to the page, so you will see them even if you scroll down.
  • Small Sidebars: Don’t like sidebars taking up precious space? Decrease their width by 60px with this toggle.
  • Left Sidebar Trends: Shows Trends in the left sidebar, if there is one.
  • Square Avatars: pre-2017 square avatars.
  • Bigger Image Previews: Images that are tall get displayed in their full height.

Installation

To use this script, you need a userscript manager.

  • Install Tampermonkey (Greasemonkey is not supported at the moment)
  • Then, click on this link and a new tab should open, prompting you with an installation screen.
  • Hit install and you’re (almost) good to go!
  • [Firefox only] Disable CSP (See #4)
    • Important notes:
      • This makes you vulnerable to potential XSS attacks! You can read more about that here
      • This procedure is hopefully not required forever (See Tampermonkey#952)
    • Navigate to about:config (that is a Firefox specific page, so type that into your address bar)
    • search for the security.csp.enable flag and set it to false

Do not use this script together with the GoodTwitter extension. Disable it first!

FAQ

The highlights color does not match my settings!

By default, the blue color is selected and used internally in this script.

To change that, navigate to the display settings and select your current color setting again. Now it should look the way you want!

I want to help!

That’s awesome! If you want to help with the translations, check out Adding translations.

If you want to help with coding, you can take a look at the issue tracker. There are a lot of things that do not work correctly and I certainly could use some help with that :)

Previews

Translations

Thanks to these awesome people, there are translations available for the following languages:

  • Spanish (added by @granmacco)
  • Swedish (added by @krokerik)
  • English and German are natively supported.

Adding translations

If your language is not yet supported, you can help by adding it! Open the following box to learn more.

Adding an UI Translation
  • Switch to the dev branch.
  • Go to the i18n folder.
  • If a translation does not yet exist for your language:
    • Fork the repo

    • Duplicate the en.json file and change the file name accordingly (i.e. ja.json or nl.json).

      • You can get the language id by pressing Ctrl + U on the twitter page and looking at the second line:
    • Then, translate all strings and create a pull request.

    • You can also of course search for potential spelling mistakes or the likes and correct them for existing translations!

No idea how git works and too proud to learn it? You can also create an new issue with your translation.

Be sure to wrap the contents in backticks, like this:

```content```

goodtwitter2's People

Contributors

bl4cc4t avatar kevslashnull avatar gizel-jiz avatar

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.