Giter VIP home page Giter VIP logo

adguardbrowserextension's People

Contributors

105th avatar 4-life avatar adguard avatar adguard-bot-2 avatar ameshkov avatar artembaskal avatar atropnikov avatar birbber avatar bluscream avatar c0b41 avatar chervyakovru avatar dandelionsprout avatar ildarkamalov avatar kaprielov avatar maximtop avatar mizzick avatar mkqts avatar robbycbennett avatar scripthunter7 avatar slavaleleka avatar spencerisgiddy avatar stanislav-atr avatar stillness-2 avatar suhan3z avatar tvinzz avatar vbagirov avatar vozersky avatar xdel avatar zebrum avatar zhelvis avatar

Stargazers

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

Watchers

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

adguardbrowserextension's Issues

Firefox: cannot add filter subscription

Steps to reproduce:

  1. Go to Adguard settings
  2. Click "All filters"
  3. Enable one filter
  4. Press "Save changes"

Expected result:
Filter is added to the list

Result:
Filter is not added to the list until page refresh

chrome.adtidy.org and sb.adtidy.org requests broken on clean Firefox

Ok, that's weird.

Steps to reproduce:

  1. Create clean FF profile
  2. Install Adguard AdBlocker
  3. Check filters updates and look into browser console

You'll see that HTTPS requests are broken - FF counts our server cert invalid.

This issue will be fixed after you open any HTTPS page signed with Godaddy certificate (https://godaddy.com for instance). After that FF will accept our certs too.

We should report this bug to mozilla.

Firefox e10s issue

Adguard cannot detect the main frame while FF is working in e10s mode.

More info about that issue here:
https://bugzilla.mozilla.org/show_bug.cgi?id=1108827

With current shims implementation I don't see a proper way to fix that.

Workaround:
As we now cannot get DOMWindow and detect iframes, we change recording of the main frame (do not allow to change main frame until 3 seconds has passed).

Integration mode problem with JIRA

When both extension and Adguard for Windows or Mac are enabled there could be a problem with JIRA. Some requests are stalled after dashboard refresh.

Firefox e10s: lots of "Unsafe CPOW usage" records in Browser Console

More info on CPOW:
http://mikeconley.ca/blog/2015/02/17/on-unsafe-cpow-usage-in-firefox-desktop-and-why-is-my-nightly-so-sluggish-with-e10s-enabled/

Caused by using ElemHide.collapseNode method. In multi-process environment working with nodes from the chrome process is slow because every time it is an IPC method call.

Temporary solution: do it chromium-way. I mean let's collapse elements from the content script in case if e10s is used.

Use shadow DOM for CSS injections

It seems that CSS styles injected to shadow dom has higher priority than even inline styles.
Please check if I am right before implementing this.

Add $font, $media and $other modifier support

Also handle it in Filtering Log.

        {".mp4", ContentType.Media},
        {".flv", ContentType.Media},
        {".avi", ContentType.Media},
        {".m3u", ContentType.Media},
        {".webm", ContentType.Media},
        {".mpeg", ContentType.Media},
        {".3gp", ContentType.Media},
        {".3gpp", ContentType.Media},
        {".3g2", ContentType.Media},
        {".3gpp2", ContentType.Media},
        {".ogg", ContentType.Media},
        {".mov", ContentType.Media},
        {".qt", ContentType.Media},
        {".ttf", ContentType.Font},
        {".otf", ContentType.Font},
        {".woff", ContentType.Font},
        {".woff2", ContentType.Font},
        {".eot", ContentType.Font}

Change REGEXP_START_URL

We should change it to:

^https?://

Otherwise there is a risk of blocking urls like:

http://somedomain.com/..../http://blockeddomain.com/

Fix notes from AMO review

1) in preload.js you use:
setTimeout(function () {
   this.tryLoadCssAndScripts.bind(this);
}, 100);
which will not work. Aside from the this object being different in the inner function, you are not actually calling the bound function. This will work instead if you are ok with an ES6 version, otherwise I'm sure you'll know what to change.
setTimeout(() => this.tryLoadCssAndScripts(), 100);
You can also just use setTimeout(this.tryLoadCssAndScripts.bind(this), 100); the validator warning that shows up for that will usuall be ignored by reviewers, since they see that you are actually passing a function.

2) In resources/adguard-adblocker/lib/main.js, shouldn't that last line be __proto__ instead of __proto ? I guess this can also be cleaned up using Object.create(null) as mentioned previously.

3) I'm a little worried about the applyScripts method. I read you are injecting remote scripts only for non-Firefox, but I have to rummage through multiple levels of function calls to figure out if that is really the case. If you could add another check for isFirefoxBrowser closer to the applyScripts method, that would be super.

URL handling

  1. When adding whitelist/blacklist entries, neglecting www. or other subdomain prefixes will not work. If I enter "domain.com", what it means is really ".domain.com/". The interpretation should be built-in.

  2. If users copy and paste the URL from address bar, the URL will include protocol, i.e. http:// or https://. The whitelist doesn't work with protocols included. Users must enter the bare domain. Also inconvenient.

Implement another way for script rules to make code easier to review

Here's what AMO reviewer suggests:

For example { scriptSource: "remote", data: "..." }. In the applyScripts method, you could check the source and not inject if remote. When creating a script, you can set scriptSource once. A reviewer can then grep the code for scriptSource and determine that it is only set once and never changed. Does that sound like a plan? I realize doing this has no technical value, but it would help make reviews easier with the large code base.

Sounds like a good idea.

Errors in Browser Console

We should register font as resource?

downloadable font: download not allowed (font-family: "gotham_proregular" style:normal weight:normal stretch:normal src index:2): bad URI or cross-site access not allowed source: chrome://adguard/content/skin/fonts/gothaproreg-webfont.ttf

[Firefox] Fix setTimeout issue

In the next update, you need to address the following issue:

  1. In order to prevent vulnerabilities, the setTimeout and setInterval functions should be called only with function expressions as their first argument.If you are passing a function which is not being correctly detected as such, please consider passing a closure or arrow function, which in turn calls the original function.
  • resources/adguard-adblocker/data/content/libs/nprogress.js#87
  • resources/adguard-adblocker/data/content/content-script/preload.js#97

Chromium Incognito Mode Problem

Hello,

I am using latest 2.0.7 version on my latest Chromium 44 build.
I use my browser always in incognito mode. When I visited a phishing page, Adguard opens another browser window to show its alert about phishing.
Why I can't see the alert in incognito mode? Adguard closes the phishing tab in incognito windows and then Adguard opens a new browser window to show alert.

Can you please look into it?
Why adguard did not show alert in incognito mode?

If you have question please ask I want to help.

Thanks,

Firefox add-on UI is broken

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.