Giter VIP home page Giter VIP logo

spoiler-blocker's Introduction

Spoiler Blocker

An open-source browser extension that removes Facebook and Twitter posts that contain user-defined 'spoiler' words. For example, a post containing the words 'GoT' and 'Daenerys' may be a spoiler for Game of Thrones. If any of these words are defined as 'spoiler' words, the post will be hidden.
You can also find and submit lists at the companion website.
See this YouTube video for a demonstration.

Installation

Chrome:
To install from source, download the latest release and follow the instructions here. When prompted to select the extension directory, choose the /dist folder.
Firefox:
Follow the instrutions here, choosing a file in /dist when prompted.

In the pipeline

  1. Facebook post/tweet only hidden if tag (eg. 'westworld') is surrounded by spaces (eg. ' westworld ')

Acknowledgements

This project makes use of

spoiler-blocker's People

Contributors

kabirgh avatar varung97 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

spoiler-blocker's Issues

Overlay covers lines separating posts in Twitter

It looks like this:

screen shot 2016-12-07 at 2 35 49 pm
Far as I can tell this is not showing up on Facebook, where posts are separated by a wider line.

Possible fix is to reduce the percentage height of the overlay, but this may cause it to shorten too much on FB. Alternatively, the height of the overlay could differ for FB and Twitter...

Add tick after successful title edit

Add a 2 second tick when the title of a spoiler list is successfully changes.

Using the same implementation as the tags field doesn't work - the constructor for SpoilerCardContainer is called again, which resets the shouldShowTitleTick variable to false. This doesn't happen for the tags.

Case-insensitive Titles

I noticed the list titles are case-insensitive, in the sense that if I create a list with the title asf, I cannot create another with title ASF.
Thinking about whether we should treat them in this way, though it does seem unlikely anyway that the user would want to create two lists with the same name but different cases.

Create an options page

Edit default preferences like

  • case sensitivity,
  • hide/overlay,
  • number of lists to show before displaying 'see more'

Drag and Drop lists

Should we sort lists alphabetically by title?

Also, should we move inactive lists to the bottom of the panel?

Escape Key clear for Toast

The Toast contains these properties:

this.toaster = Toaster.create({
  className: "top-toaster",
  autoFocus: false,
  canEscapeKeyClear: true,
  position: Position.TOP
});

I think the canEscapeKeyClear doesn't gain anything from being true since pressing Esc closes the entire panel.

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.