{"id":16973950,"url":"https://github.com/tiansh/block-twitter-promoted","last_synced_at":"2025-03-22T14:31:31.463Z","repository":{"id":44764654,"uuid":"224188141","full_name":"tiansh/block-twitter-promoted","owner":"tiansh","description":"Block promoted contents including tweets, trends, and, follows, hide more annoying contents, switch to Latest Tweets for home page on Twitter.","archived":false,"fork":false,"pushed_at":"2024-11-09T15:04:06.000Z","size":57,"stargazers_count":36,"open_issues_count":3,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T12:03:01.492Z","etag":null,"topics":["adblock","firefox-addon","redux","timeline","tweets","twitter","web-extension","webpack"],"latest_commit_sha":null,"homepage":"https://addons.mozilla.org/en-US/firefox/addon/block-twitter-promoted/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tiansh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-26T12:32:35.000Z","updated_at":"2025-03-09T07:00:57.000Z","dependencies_parsed_at":"2022-09-21T12:50:54.919Z","dependency_job_id":null,"html_url":"https://github.com/tiansh/block-twitter-promoted","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiansh%2Fblock-twitter-promoted","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiansh%2Fblock-twitter-promoted/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiansh%2Fblock-twitter-promoted/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiansh%2Fblock-twitter-promoted/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tiansh","download_url":"https://codeload.github.com/tiansh/block-twitter-promoted/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244972021,"owners_count":20540911,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adblock","firefox-addon","redux","timeline","tweets","twitter","web-extension","webpack"],"created_at":"2024-10-14T01:04:03.434Z","updated_at":"2025-03-22T14:31:31.155Z","avatar_url":"https://github.com/tiansh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Block promoted contents including tweets, trends, and, follows, hide more annoying contents, switch to Latest Tweets for home page on Twitter.\r\n\r\n## Developing\r\n\r\nThis extension inject a page script which remove promoted content in Redux Store before it been rendered. See `page.js` for more details.\r\n\r\n### What features may be implemented\r\n\r\nThis extension is based on inject into Redux Store.\r\nBasing on current implementation, the extension may only hides something / change pages' options.\r\nIt is not possible to create new interface (new buttons for example) easily on top of current implementation.\r\n\r\n### Enable Debugging\r\n\r\nYou may enable debugging in options page.\r\nAfter debugging enabled, you can see console logs on related web pages when extension is running.\r\n\r\n### Adding Features\r\n\r\nIf you want to add some more features, you should:\r\n\r\n1. Edit `_locals/en/messages.json`, add its options description\r\n2. Edit `options/options.js`, add a new option op options page\r\n3. Edit `page.js`, your codes should be similar to current features\r\n\r\n### Implementation of Features\r\n\r\nThis extension's implementation is focused on Redux Store.\r\nYou may find the Store object in console.\r\nWhen debugging is enabled, a global variable `Store` is set by extension.\r\nSo you can get the `Store` object easily.\r\nAccess `Store.getState()` to get current `state`.\r\n\r\n* Most layout items may be found in `state.urt`.\r\n* Tweets, trends, and other entities may be found in `state.entities`.\r\n\r\n### Contributing\r\n\r\nCode contribution are welcomed.\r\nPlease use same coding style in as current exist codes.\r\nYou may verify this by using `eslint`.\r\n\r\nPull requests are welcomed. But please prefer to file an issue first to make sure the feature is needed.\r\n\r\n### Translations\r\n\r\nTranslating 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.\r\n\r\n## About\r\n\r\nThis is an independent project developed by [@tiansh111] and has no relationship to Twitter or Twitter Inc.\r\n\r\nThis extension is released under the MPL-2.0 License. You are welcomed to make a fork as long as you followed the license requirements.\r\n\r\n[@tiansh111]: https://twitter.com/tiansh111\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiansh%2Fblock-twitter-promoted","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftiansh%2Fblock-twitter-promoted","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiansh%2Fblock-twitter-promoted/lists"}