Git Product home page Git Product logo

Comments (9)

lassekongo83 avatar lassekongo83 commented on September 27, 2024

If you have trustedListPrefixes ublock- user- set in advanced settings, then: svtplay.se##+js(trusted-set-cookie, cookie-consent-1, {"optedIn":true\,"functionality":true\,"statistics":false}) should get rid of the cookie popup and enable all functionality.

from frellwits-filter-lists.

forthrin avatar forthrin commented on September 27, 2024

Thanks

from frellwits-filter-lists.

forthrin avatar forthrin commented on September 27, 2024

Tried to use this new-found knowledge to avoid the annoying "choose country" pop-up on this site (which even moronically redirects to the root document afterwards no matter what you choose). How can the rule be changed to work as intended?

https://www.oxo.com/joe-chop-and-spin-bundle.html

www.oxo.com##+js(trusted-set-cookie, geo_location, "US", 1year, reload)

from frellwits-filter-lists.

forthrin avatar forthrin commented on September 27, 2024

@lassekongo83: uBlock Origin suddenly started complaining about "not trusted source", so the webpage is not clickable. Tried adding -user to trustedListPrefixes to no avail. What is the proper fix for making the webpage clickable again?

from frellwits-filter-lists.

lassekongo83 avatar lassekongo83 commented on September 27, 2024

Are the 2 checkboxes at the top in "My Filters" page checked? If not, make sure they are.

For svtplay you may also need to update to the dev build of uBO and add: svtplay.se##+js(trusted-set-cookie, cookie-consent-1, '{"optedIn":true,"functionality":true,"statistics":false}') (Won't work in version 1.57.2).

As for the oxo site. Looks like the site is redirected on the server side which runs before uBO can set cookies. You can prevent the website from redirecting you, but it may cause breakage. Use at your own risk: oxo.com##^responseheader(location)

from frellwits-filter-lists.

forthrin avatar forthrin commented on September 27, 2024

Both suggestions seem to work perfectly. Thank you so much again!

PS! Can you explain quickly the "trusted sources"? Must all filters be registered verbatim in a central database?

from frellwits-filter-lists.

lassekongo83 avatar lassekongo83 commented on September 27, 2024

It's just a prefix setting, only uBO filters are trusted by default. https://github.com/gorhill/uBlock/wiki/Advanced-settings#trustedlistprefixes

from frellwits-filter-lists.

forthrin avatar forthrin commented on September 27, 2024

Not completely clear. One can add "My filters" without changing any default settings, but with JS stuff like this, some kind of check is evidently performed (against an online server...?) So what exactly is checked? Is it something like, eg. pseudo:

the_whole_thing = "svtplay.se##+js(trusted-set-cookie, cookie-consent-1, '{"optedIn":true,"functionality":true,"statistics":false}')"
unless lookup(the_whole_thing, "https://...ublock.../trusted-rules").status == 'safe' then warn user

from frellwits-filter-lists.

lassekongo83 avatar lassekongo83 commented on September 27, 2024

uBO does not connect to any servers unless filters/scriptlets/assets are updated. Trusted filters are checked within the extension locally. You can probably see how it's done in the source code: https://github.com/gorhill/uBlock/tree/master

Probably somewhere in 1p-filters.js and scriptlets.js.

from frellwits-filter-lists.

Related Issues (20)

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.