Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Feature: block external JavaScript #391

@multimeric

Description

@multimeric

Prerequisites

  • I verified that this is not a filter list issue. Report any issues with filter lists or broken website functionality by using the chat icon in the popup panel.
  • This is NOT a YouTube, Facebook or Twitch report. These sites MUST be reported by clicking their respective links.
  • This is not a support issue or a question. For support, questions, or help, visit /r/uBlockOrigin.
  • I performed a cursory search of the issue tracker to avoid opening a duplicate issue.
  • The issue is not present after disabling uBO Lite in the browser.

I tried to reproduce the issue when...

  • uBO Lite is the only extension.
  • using a new, unmodified browser profile.

Description

This is a feature request, not a bug report. It's not clear where these should go.

uBlock Origin for manifest v2 had the option to disable JavaScript for a page. This functionality doesn't seem to have made it to uBOL. However, I think it can still fit nicely within the declarative design of uBOL. It seems that you can use "resourceTypes": ["script"] to block external scripts under manifest v3. I understand that this wouldn't stop inline JavaScript, but I suspect it would help in a majority of cases where the offending JavaScript is external.

A specific URL where the issue occurs.

https://www.theage.com.au/

Steps to Reproduce

  1. Go to a page
  2. Open the extension window

Expected behavior

As in uBlock Origin, there should be a "disable JavaScript" option

Actual behavior

No such option exists.

uBO Lite version

2025.711.1256

Browser name and version

Chrome 138.0.7204.100

Operating system and version

Ubuntu 22.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions