Giter Site home page Giter Site logo

gatinhonico / block-twitter-promoted Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tiansh/block-twitter-promoted

0.0 0.0 0.0 27 KB

Block promoted contents including tweets, trends, and, follows, hide more annoying contents, switch to Latest Tweets for home page on Twitter.

Home Page: https://addons.mozilla.org/en-US/firefox/addon/block-twitter-promoted/

License: Mozilla Public License 2.0

JavaScript 94.59% CSS 2.66% HTML 2.75%

block-twitter-promoted's Introduction

Block promoted contents including tweets, trends, and, follows, hide more annoying contents, switch to Latest Tweets for home page on Twitter.

Developing

This extension inject a page script which remove promoted content in Redux Store before it been rendered. See page.js for more details.

What features may be implemented

This extension is based on inject into Redux Store. Basing on current implementation, the extension may only hides something / change pages' options. It is not possible to create new interface (new buttons for example) easily on top of current implementation.

Enable Debugging

You may enable debugging in options page. After debugging enabled, you can see console logs on related web pages when extension is running.

Adding Features

If you want to add some more features, you should:

  1. Edit _locals/en/messages.json, add its options description
  2. Edit options/options.js, add a new option op options page
  3. Edit page.js, your codes should be similar to current features

Implementation of Features

This extension's implementation is focused on Redux Store. You may find the Store object in console. When debugging is enabled, a global variable Store is set by extension. So you can get the Store object easily. Access Store.getState() to get current state.

  • Most layout items may be found in state.urt.
  • Tweets, trends, and other entities may be found in state.entities.

Contributing

Code contribution are welcomed. Please use same coding style in as current exist codes. You may verify this by using eslint.

Pull requests are welcomed. But please prefer to file an issue first to make sure the feature is needed.

Translations

Translating is also welcomed. If you want make this extension speak your language, you can add a localize file in _locals/TWO_LETTER_LANGUAGE_NAME/messages.json and translate current English version to it. If you don't know how to work with git. You may also download the _locals/en/messages.json file from GitHub, translate it, and paste the content to file an issue here.

About

This is an independent project developed by @tiansh111 and has no relationship to Twitter or Twitter Inc.

This extension is released under the MPL-2.0 License. You are welcomed to make a fork as long as you followed the license requirements.

block-twitter-promoted's People

Contributors

tiansh 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.