dpacassi / disable-javascript

Adds the ability to disable JavaScript on specific sites.
MIT License
274 stars 34 forks source link

Rework for manifest v3 #103

Closed karelbilek closed 6 months ago

karelbilek commented 2 years ago

The new chrome extension manifest completely removes blocking webrequest "catching" in favour of declarative lists. Kind of similar to what Safari does, but still a bit more useful than Safari.

Manifest v3 will be mandatory, v2 will be removed.

Originally I thought this will stop this extension from working, but then I realized that all we do here is adding headers; this should work with the new manifest.

However there is still a lot of work to be done.

I will try to look at this myself and make a PR; not sure if you are accepting PRs? I see a lot of open PRs unmerged

karelbilek commented 2 years ago

(note, I tried to port Disable JS to Safari, and it was so much work that I gave up; as it will never work properly anyway, as the declarative lists do NOT allow you to change the headers. All I could was removing all <script> from HTML, but that breaks half of the pages.

https://github.com/karelbilek/disable-javascript

)

karelbilek commented 2 years ago

See

https://developer.chrome.com/docs/extensions/reference/declarativeNetRequest/