Coder Social home page Coder Social logo

Comments (10)

rrerrptile avatar rrerrptile commented on June 2, 2024 1

Okay I just learned this was actually fixed a little bit ago and reverted since it was causing issues. In the meanwhile, is there any way for me to use my own custom rules that dont require me to host the rules file online?

from rules.

KevinRoebert avatar KevinRoebert commented on June 2, 2024 1

Can you export your ClearURLs settings and attach them to the issue or email me to support (at) clearurls.xyz

from rules.

iam-py-test avatar iam-py-test commented on June 2, 2024

Not sure if this is a prefect solution, but you could host a local server on your device (i.e. with sudo python3 -m http.server) and then subscribe to the rules from http://localhost:8000/rules.txt

from rules.

rrerrptile avatar rrerrptile commented on June 2, 2024

no dice. I can access the file in the browser when I host it like that, but the addon seems to ignore my custom ruleset

from rules.

KevinRoebert avatar KevinRoebert commented on June 2, 2024

You must also provide a valid SHA256 hash of the rules file. See https://docs.clearurls.xyz/1.22.0/specs/rules/ for more information.

from rules.

rrerrptile avatar rrerrptile commented on June 2, 2024

Still no dice. I even made the hash file the same way as the gitlab generates it: sha256sum data.minify.json | awk '{print $1}' > rules.minify.hash I've verified it even outputs the same hash on an existing rules file as the gitlab artifacts.

from rules.

rrerrptile avatar rrerrptile commented on June 2, 2024

CUserver.zip

from rules.

amalic avatar amalic commented on June 2, 2024

@KevinRoebert I've created a pull request. I didn't test it because it's quite annoying that it requires a sha256 hash file to work which seemed to be too much work for such a small change.

from rules.

KevinRoebert avatar KevinRoebert commented on June 2, 2024

@amalic The rule for the t parameter was intentionally removed. This field is also used for URLs in emails sent by Twitter – e.g. to reset the password.

See also https://docs.clearurls.xyz/1.22.0/further_readings/excluded_fields/ and https://gitlab.com/ClearURLs/rules/-/merge_requests/21 for more information.

from rules.

KevinRoebert avatar KevinRoebert commented on June 2, 2024

CUserver.zip

@rrerrptile
I've found the error. Your data.minify.json has a new-line at the end of the file. Thus, the SHA256 hash does not match. If you remove the new-line at the end of the file, everything will work.

from rules.

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.