A tool to hide Tweets that have more than a certain amount of likes.
There are a few manual configuration steps one needs to take before they can begin working on this project.
- Install dependencies
- Make sure you have a flavor of Firefox installed (default, beta, developer edition, etc.)
- Install Yarn if needed
- Run
yarn install
in the root of this project to install dependencies
- Set up development profile
- Open Firefox and navigate to
about:profiles
- Click the "Create a New Profile" button
- In the pop-up menu, specify
web-ext-viraltweetfilter
for the profile name - Use the default profile directory
- Click "Done" to create the development profile.
- Open Firefox and navigate to
- (Optional) Specify the version of Firefox you're using
- If you have multiple versions of Firefox installed, you can use the
WEB_EXT_FIREFOX
environment variable to tellweb-ext
which version to use. Click here to read the web-ext documentation for this feature.
- If you have multiple versions of Firefox installed, you can use the
There are several Yarn scripts for aiding development:
yarn start
:- Opens a new Firefox instance with the
web-ext-viraltweetfilter
profile active - NB: Make sure you set up this profile in step 2 above!
- Automatically reloads the extension when changes are made
- Opens a new Firefox instance with the
yarn lint
:- Checks the project for linting errors with
web-ext lint
andeslint
- Checks the project for linting errors with
yarn build
:- Builds the extension, creating a zip file in
web-ext-artifacts/
- Builds the extension, creating a zip file in
yarn test
:- Checks that both
yarn lint
andyarn build
succeed. - NB: This is used by Travis CI and must pass for pull requests
- Checks that both
yarn sign
:- Sends the plugin to Mozilla's AMO for signing
- Typically only run by the package maintainer, not needed for a CI build to pass
- NB: See Signing the Extension below for information about configuring this process.
If you want to create a signed version of this extension, you need to set up
your own extension on the AMO and change gecko.id
in manifest.json
to that
extension's ID.
See Submitting an Add-On and Packaging your extension for more information about this process.
ViralTweetFilter - Browser extension to filter "Viral" Tweets on Twitter
Copyright (C) 2020 Ralph Drake
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.