Giter Club home page Giter Club logo

jsguardian's Introduction

JSGuardian: Filter Within Your Browser

A content filter for websites, emulating dansguardian’s score-based filter in JavaScript.

https://img.shields.io/amo/v/jsguardian.svg https://img.shields.io/amo/d/jsguardian.svg https://img.shields.io/chrome-web-store/v/ojofglimbmclnbinpbjnhcmkmipplibi.svg

Tested (Linux): https://img.shields.io/badge/Firefox-ESR%2062.0.2-brightgreen.svg https://img.shields.io/badge/Chromium-69.0.3497.81-brightgreen.svg https://img.shields.io/badge/Waterfox%20-56.2.3-brightgreen.svg

Versions

1.6.4: failed on Firefox 96.0.3

  • reported by @NovaLibertas in #15

1.6.3: fix bug

1.6.1+2

Got really slow on FF

1.6.0

Managed storage for firefox was broken

  • include example file meta/@wsf.json. Place this in /usr/lib/mozilla/managed-storage to set fixed values.

1.5.5

Failed to display the correct score

1.5.2

Failed

if it was triggered multiple times, the blockpage was shown

1.5.1

Failed

by scanning the blockpage, which contained all the words, triggering on that, so that just the cached block page was shown.

1.5.0

Lacked

searching of iframes, e.g. in Google Translate

1.4.2

Failed

to show the score if an ampersand, &, was in the blocked phrases

1.4.1

Failed

to persist the blockpage, credits to hllwdfr@github

1.4.0

Lacked

speed: Was perceived as too slow to block, due to when the script loaded, and when it showed the block page.

1.3.1

Failed

  • to load the blockpage in all cases
  • to save/not save and load undefined/empty values

1.3.0

Lacked

possibility to set another block page target (like about:blank)

  • This needs to be a valid URL. You have been warned (™ ☺).

1.2.0

Lacked

block reasons were not shown

1.1.0

Lacked

refactoring: settings object was in main code file

1.0.1

Did

  • break on FF Android due to missing application ID

1.0.0

Lacked

  • block cache + test

Did

  • set the block page multiple times

0.13.4

Lacked

  • test for preset file loading

Was

  • less refactored

0.13.3

Lacked

  • tests

Was

  • less refactored

0.13.2

Fixed

  • logo needs to be IMG
  • capitalization like JSDoc

0.13.1

Fixed

  • popup.html seems to be blocked on Windows 10.
  • Had layout in HTML.
  • HTML was invalid

0.13.0

Added

Popup lacked link to options.

0.12.0

Added

managed storage for chrome

Fixed

settings seem to not have worked on windows

0.11.0

Fixed

Had settings object hardcoded in main background script, which was not needed if in storage. (Request by Mozilla review)

0.10.0

Added

WebExt lacked access to words for scoring.

0.9.1

Added

Limit option

0.9.0

Fixed

back button overrode block page

Added

Whitelist option

0.8.1

Fixed

zip/xpi lacked icon file

0.8.0

Changed

name (from Score-based web filter) to jsGuardian

0.7.0

Changed

webextension (only chromium)

Deleted

safe search (use separate safe search addon for this)

0.6.2

Added

Lacked toggle to turn safe search on/off

0.6.1

Added

lacked (moderate) safe search on youtube

0.5.12

Added

lacked safe search (google, yahoo, bing, ddg)

0.4.0

Added

previous versions lacked whitelist

0.3.4

Fixed

multiprocess as permission … ;-)

0.3.3

reviewer feedback

multiprocess spelling had .gitignore

0.3.2

Added

?: multi-process was not enabled default was at 60, which is for small children, now it’s at 160

0.3.1

Fixed

Bug: counted different cases differently

0.3.0

Added

Doc: did not copy dg appropriate values for age groups

0.2.2

Fixed

did not find multi-line matches

0.2.1

Fixed

old mods were not destroyed on re-setting limit.

0.2.0

Added

quotes surrounding single matches

0.1.6

Fixed

Changing score did not affect anything.

0.1.5

Fixed

Sites like google with many <script> tags made loading very slow.

0.1.2

Fixed

Was not installable on recent android firefox (45).

0.1.1

Added

Previous version used innerHTML.

0.1.0

Added

Had no message which parts triggered filter if blocked.

Uses Icons

jsguardian's People

Contributors

serv-inc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

jsguardian's Issues

All sites are blocked if no keywords are set

If there are no keywords at all (every field is empty) all sites are blocked.

The message displayed says:

sensitive phrases (score ???)

["cached site"]

This occurs after the page has been displayed for a few milliseconds. It is my understanding that if a site is blocked it should not even be displayed at all. But all pages being blocked when there are no keywords is clearly a bug.
Even with keywords I got the same message on some sites (that did not contain any of those keywords).

I am running Firefox 87.0 on Ubuntu 20.10.

Unfortunately Barely working on Firefox 74.0.1, Windows ...

Hello I really appreciate you making this addon. Especially since its simple and the point system seems to me much smarter and adaptable than comparable addons.
Unfortunately it barely works on my computer. I've set one Keyword as 150points and the limit at 149, so this should work as a blacklist-word.
After installing the addon it worked a few times on sites(containing the word) which i would reload or browse through a bit. unfortunately i don't remember which sites that were, but basically now since two weeks it doesn't block anything. Would you have any suggestions, how to track down the issue?

thanks!

blockpage = about:blank is not persisted

When I set the blockpage to "about:blank", it work only in the current browser session.
When I close the browser and restart it, the blockpage has reset to "undefinied".
"about:blank" should be persisted.
(PS: about:blank shows a white page)

The menu is gone

Before I had the menu with scores, which word gives how many points. And possibility to adjust the score.
Now it's gone (last version of Firefox).

How to get them back?

[Firefox] Page loading slows to a crawl after some time with extension enabled, stops loading websites completely

Firefox 68.0.1

after some time with the extension enabled, browsing seems to slow to a crawl, sites take a long time to load and eventually don't load at all.

Observed on both Ubuntu 18.04 and macOS

disabling the extension causes sites to load normally (after sites stopped loading completely, it took a few minutes after disabling/removing the extension for normal browsing to be restored).

Allow new values in settings.js

Currently, these need to be pre-set via preset.json, or managed storage.

That is: assigning to getSettings().someName, then save(), does not persist someName. Fix this.

Does not work in iframe

Does not work in iframe.
This can be tested by entering an adult URL in translate.google.com . Then, select another language, then click the generated link.

Cannot understand what is the final score ?

Hello, can you explain how we should read the final score when we see a big number, for example:

sensitive phrases (score >=>=>=>=>=>=>=>=20000020501030)

Is is a bug in the display ?

Firefox stop loading sites when opening multiple bookmarks.

How I reproduce it:

  1. I have about 20 bookmarks in a Bookmarks folder on my Bookmark toolbar.
  2. I right-click on the Bookmarks folder and choose "Open All In Tabs..."
  3. After about 10 seconds, my network download traffic turn to 0 kb/s and all sites stop loading.

This does not happen when I disable the extension.

childproof / teenproof

Tried it today. I like it! I updated background.js to send the scrore variable to the the blockpage.html, just to see the scrore on many websites (no commit, just a test). Maybe it could be faster (better performance) if the recursive loop would exit as soon as the scrore reach the limit.
I use it in Waterfox because I can block access to Modules with another extension named "PublicFox".
Personally I prefer not to have a button in the toolbar, to let the extension be more "hidden" to the kids.
Could it be password protected also ?
Could you also add an option to "not" show the blockpage.html with all the reasons and details and display instead a blank page because I don't want the kids to view the keywords or the name of the extension ?

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.