Code Monkey home page Code Monkey logo

firefox-simple-blocker's People

Contributors

dleatherdale avatar eryw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

firefox-simple-blocker's Issues

js error in version 0.3.6

In version 0.3.6 of 12 December the browser console shows the following error:

background is null

raised at line 11 in options.js. That means in the expression

background.save(document.querySelector('#regexes').value,
document.querySelector('input[name="mode"]:checked').value,
document.querySelector('input[name="debugging"]:checked').value
)

within the tout function.

options in android

hi
i installed the addon in android but i dont know where the options are.
i cannot seem to find where to enter the url's to block.

if i install it on my desktop firefox i can add url's in the option window in the addon page.

can i edit some file on android or use about: config command to edit the blocklist?

pls help

'$' does not match end of the URL

Can't block only the root document of a site in blacklist mode (with allowing subpages).

'site.com$' doesn't block it, and 'site.com' matches subpages also.

Addon version 0.3.6, FF 62.0.3, Linux x64

Option to redirect to some other site & Warning for the blocked site

it will be nice if there is one more option to add site to which redirect the search if i try to search a blocked site or use a keyword which is block
If i type query for blocked site redirect me to any other site or Show a warning or notification that the keyword or site is blocked.

Please add tutorial or rule examples

Great addon, but please add some rule examples or tutorial. Regular Expressions manual that you linked in addon's description is not enough for inexperienced users.

In my case, I'd like to whitelist certain playlist on YouTube (and videos in it) , while blocking other videos on the site.
If you have time, please help me with this playlist as example:
https://www.youtube.com/playlist?list=PLEox0nUMFPF5D3_5X2DA9IrgsMZcRgg5x

(Adding PLEox0nUMFPF5D3_5X2DA9IrgsMZcRgg5x to the addon's whitelist is kind of working, but breaks site functionality and does not allow to actually play videos)

Thank you.

Option for password

it will be a nice feature if the plugin ask for password in case of removing any linked form the list which is already added.
no need of password for adding link or keyword to the list but need password for remove or edit the link or keyword from the list.

Add simple wildcard mode

A simple wildcard mode would allow to define items like https://*facebook.com/* by escaping all special characters except *.

Here's animplementation that you could use:

function escapeRegExp(string) {
  return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); 
}

function escapeRegExpWithWildcard(regexp) {
  const escapedRegExp = escapeRegExp(regexp);

  const escapedWildcard = escapeRegExp("*");
  const escapedWildcardRegexp = new RegExp(escapeRegExp(escapedWildcard), "g");

  return escapedRegExp.replace(escapedWildcardRegexp, ".*?");
}

Support for whitelist and blacklist at the same time?

Hi, is it possible to have a whitelist and a blacklist at the same time? For example, imagine I have multiple rules in my blacklist such as "procrastination", "wasting.*time", "filter.*this", "block.*this", etc. because I want to prevent myself from searching those things. However, sometimes there might be exceptions, for example, imagine I want to read a Wikipedia article about procrastination. In that case it would be OK to let me access the page because Wikipedia is a safe website. Therefore, it would be great to have the feature of defining both a blacklist and a whitelist of regexes, so that if a search matches a blacklist regex then block the page UNLESS it also matches a whitelist regex. Maybe instead of "white-list" a better name would be "exceptions-list".

Cannot be installed on Android

I'm not sure what the issue is, but I'd be willing to investigate. Would you merge a fix if I developed one or is this extension unmaintained?

Support for case insensitive regex?

Hi, is it possible to define case insensitive regexes? For example, to block google searches of the word "procrastination", if I define the rule "procrastination" but then I type e.g. "PROcrastination" it doesn't work. If instead I use the rule "[Pp][Rr][Oo][Cc][Rr][Aa][Ss][Tt][Ii][Nn][Aa][Tt][Ii][Oo][Nn]" it works but it's obviously very cumbersome, so I tried the rule "/procrastination/i" with the "i" modifier (https://www.w3schools.com/jsref/jsref_regexp_i.asp) to make the regex case insensitive but it didn't work.

`strict_max_version` at 56 but expected to be compatible with 57

From an addons.mozilla.org review:

It's currently got a strict_max_version set to Firefox 56 in the manifest. Which prevents it loading in Firefox 57. Is there a reason for that? You can just remove that line from the manifest and it will work on all future Firefox versions.

I'm unable to use this add-on in FF57 (Beta) because of this!

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.