Skip to content

Commit

Permalink
cloned and added function
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanB62 committed Dec 9, 2024
1 parent 9856bb1 commit fb87997
Show file tree
Hide file tree
Showing 92 changed files with 5,797 additions and 0 deletions.
4 changes: 4 additions & 0 deletions news-feed-eradicator/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
root = true

[*]
indent_style = tab
16 changes: 16 additions & 0 deletions news-feed-eradicator/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.DS_Store
.*.swp
*.zip
.idea/*
.vscode
local/*

dump.rdb

node_modules

browsers/firefox/news-feed-eradicator.xpi

dist
build
typings
7 changes: 7 additions & 0 deletions news-feed-eradicator/.prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// prettier.config.js or .prettierrc.js
module.exports = {
trailingComma: 'es5',
useTabs: true,
semi: true,
singleQuote: true,
};
78 changes: 78 additions & 0 deletions news-feed-eradicator/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

- No unreleased changes

## [2.2.7] - 2024-06-09

- Fix x.com

## [2.2.6] - 2024-03-02

- Fix new Reddit
- Fix non-English Twitter/X and prepare for redirect to x.com

## [2.2.5] - 2023-05-09

- [Fix Facebook for languages other than English (thanks @nzawirski)](https://github.com/jordwest/news-feed-eradicator/pull/256)
- [Fix GitHub home (thanks @Khanaru220)](https://github.com/jordwest/news-feed-eradicator/pull/251)
- [Fix logged out Twitter feed (thanks @weeksling)](https://github.com/jordwest/news-feed-eradicator/pull/263)

## [2.2.4] - 2022-11-15

- [Fixed Facebook (thanks @nzawirski)](https://github.com/jordwest/news-feed-eradicator/pull/244)
- Fixed Hacker News

## [2.2.3] - 2022-09-27

### Fixed

- Fixed Facebook
- Fixed Twitter
- Reverted change that made YouTube related vids appears

## [2.2.2] - 2022-07-29

### Fixed

- Fixed instagram

## [2.2.1] - 2021-06-05

### Added

- [Instagram support by @ryanmonro](https://github.com/jordwest/news-feed-eradicator/pull/105)

### Fixed

- LinkedIn

## [2.2.0] - 2021-01-25

### Added

- YouTube support
- [LinkedIn support by @viswanathgs](https://github.com/jordwest/news-feed-eradicator/pull/101)

### Fixed

- Also blocks feed
on `facebook.com/home.php` [(thanks @hannoeru)](https://github.com/jordwest/news-feed-eradicator/pull/109)
- Ekhart Tolle is Eckhart Tolle

## [2.1.0] - 2020-10-21

### Added

- [Reddit support by @kessido](https://github.com/jordwest/news-feed-eradicator/pull/98)
- [Hacker News support by @rjshade](https://github.com/jordwest/news-feed-eradicator/pull/97)

### Fixed

- Fixed Twitter feed showing up when first visiting Twitter directly (#99)
20 changes: 20 additions & 0 deletions news-feed-eradicator/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
The MIT License (MIT)

Copyright (c) 2013 Jordan West

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
44 changes: 44 additions & 0 deletions news-feed-eradicator/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
.PHONY: all clean install dev copy-assets package-source

# The current git tag is used as the version number
GITTAG=$(shell git describe --always --tag)
BIN=$(shell npm bin)

build: install copy-assets
mkdir -p build
NODE_ENV=production ./node_modules/.bin/rollup -c
mkdir -p dist
(cd build && zip -r ../dist/NewsFeedEradicator_$(GITTAG).zip .)

# Typecheck only
check:
npm run check

# Firefox Add-on store requires source to be submitted as a zip, so this command builds that zip
package-source:
mkdir -p dist
git archive --output=dist/NewsFeedEradicator_source_$(GITTAG).zip HEAD

copy-assets:
mkdir -p build
mkdir -p build/icons
cp src/icons/* build/icons/
cp src/manifest-chrome.json build/manifest.json
cp src/options/options.html build/options.html
cp assets/icon16.png build/icon16.png
cp assets/icon32.png build/icon32.png
cp assets/icon48.png build/icon48.png
cp assets/icon64.png build/icon64.png
cp assets/icon128.png build/icon128.png

dev: install copy-assets
mkdir -p build
./node_modules/.bin/rollup -c --watch

install:
npm install

clean:
rm -rf dist
rm -rf build
rm -rf node_modules
28 changes: 28 additions & 0 deletions news-feed-eradicator/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# News Feed Eradicator

A browser extension that deletes your Facebook news feed
and replaces it with a nice quote.

[Install Chrome Extension](https://chrome.google.com/webstore/detail/news-feed-eradicator-for/fjcldmjmjhkklehbacihaiopjklihlgg?hl=en)

[Install Firefox Add-on](https://addons.mozilla.org/en-US/firefox/addon/news-feed-eradicator/)

![Screenshot](https://raw.githubusercontent.com/jordwest/news-feed-eradicator/master/assets/screenshot.jpg)

## Development

This plugin is built as a WebExtension - a standard for browser plugins currently supported in both Chrome and Firefox.

To build for either browser, clone the repository and then run:

make dev

If everything is successful, check the `build` folder for the extension contents. You can load the `build` directory into either Chrome or Firefox as an _unpacked_ or _temporary_ extension. See the instructions for [Chrome](https://developer.chrome.com/docs/extensions/get-started/tutorial/hello-world#load-unpacked) or [Firefox](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Temporary_Installation_in_Firefox).

Running `make dev` will watch for changes and recompile, however each time you make changes you'll need to tell the browser to reload the temporary extension.

To build a distributable `.zip` for production, just run:

make

The extension package can be found in the `dist` folder.
Binary file added news-feed-eradicator/assets/CWS_Screenshot_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added news-feed-eradicator/assets/CWS_Screenshot_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added news-feed-eradicator/assets/CWS_Screenshot_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added news-feed-eradicator/assets/CWS_Screenshot_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added news-feed-eradicator/assets/Marquee.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added news-feed-eradicator/assets/Tile Large.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added news-feed-eradicator/assets/Tile Small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added news-feed-eradicator/assets/icon.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added news-feed-eradicator/assets/icon.psd
Binary file not shown.
Binary file added news-feed-eradicator/assets/icon128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added news-feed-eradicator/assets/icon16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added news-feed-eradicator/assets/icon32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added news-feed-eradicator/assets/icon48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added news-feed-eradicator/assets/icon64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added news-feed-eradicator/assets/screenshot.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added news-feed-eradicator/assets/store_largetile.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added news-feed-eradicator/assets/store_marquee.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added news-feed-eradicator/assets/store_smalltile.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit fb87997

Please sign in to comment.