roryeiffe / Spoiler-Block

Google Chrome Extension that filters out search result suggestions that "spoil" or reveal plot elements of the media (shows, movies, books, etc.).
GNU General Public License v3.0
0 stars 3 forks source link

Spoiler Threshold #10

Closed roryeiffe closed 3 years ago

roryeiffe commented 3 years ago

The extension pop-up needs to have an adjustable percentage threshold such that all websites that report back the percentage chance of spoilers that are more than the threshold are blocked and all that are less are not blocked.

roryeiffe commented 3 years ago

I'm currently running into an error when trying to npm build Here is the error: Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' 'sha256-WiOM2d3Qp2pRQgkUUEOUL2m+pH8MH9rXfiWxtczSSys='". Either the 'unsafe-inline' keyword, a hash ('sha256-79OuphGfMUthbL1SDlqq/gGNOWLLcEZwwXlHKXXk0YI='), or a nonce ('nonce-...') is required to enable inline execution. I will try to figure this out and report back to this issue with any updates.

roryeiffe commented 3 years ago

I found a fix to the build error in this stack overflow article. The fix was simple: adding a .env file in the root with the line "INLINE_RUNTIME_CHUNK=false" in it.

I also completed the spoiler threshold interface. Right now, the user is able to either input their own threshold or use the up and down arrows to increment/decrement the threshold by 5.