Skip to content

userResourcesLocation not supporting redirect= scripts #4107

Description

@ryanbr

Prerequisites

  • I verified that this is not a filter list issue. Report any issues with filter lists or broken website functionality in the uAssets issue tracker.
  • 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 in the browser.
  • I checked the documentation to understand that the issue I am reporting is not normal behavior.

I tried to reproduce the issue when...

  • uBO is the only extension.
  • uBO uses default lists and settings.
  • using a new, unmodified browser profile.

Description

Testing a redirect script against Onetrust consents:

           userResourcesLocation https://gif.fanboy.co.nz/gif/onetrust-banner.js

Highlights as invalid when I want to test; surprisingly ##+js(..) works.

Image

A specific URL where the issue occurs.

||cookie-cdn.cookiepro.com/scripttemplates/202512.1.0/otBannerSdk.js$script,redirect=onetrust-banner.js,domain=stirileprotv.ro

Testing with this specific url.

Steps to Reproduce

  1. Add custom script with userResourcesLocation
  2. Then create a redirect= rule.
  3. Is highlighted as invalid.

Expected behavior

Allow for testing of redirect rules.

Troubleshooting information

uBlock Origin: 1.74.0
Chromium: 151
filterset (summary):
 network: 138523
 cosmetic: 135075
 scriptlet: 15127
 html: 0
listset (total-discarded, last-updated):
 removed:
  ublock-filters: null
  ublock-badware: null
  ublock-privacy: null
  ublock-unbreak: null
  ublock-quick-fixes: null
  urlhaus-1: null
  plowe-0: null
 added:
  fanboy-cookiemonster: 47794-2428, 5d.18h.23m
  ublock-cookies-easylist: 5832-649, 18h.21m
  fanboy-social: 17871-208, 18h.20m
  easylist-annoyances: 5266-196, 18h.21m
  easylist-chat: 281-2, 1d.18h.21m
  easylist-newsletters: 9579-338, 18h.21m
  easylist-notifications: 2546-205, 18h.21m
  CHN-0: 26888-54, 5h.20m
  JPN-1: 17232-78, 2d.21h.22m
  fanboy-ai-suggestions: 314-314, 1d.18h.21m
 default:
  user-filters: 20334-6978, never
  easylist: 87588-12, 6h.20m Δ
  easyprivacy: 56493-810, 6h.20m Δ
filterset (user): [array of 12191 redacted]
trustedset:
 added: [array of 109 redacted]
 removed:
  chrome-extension-scheme
userSettings:
 advancedUserEnabled: true
 userFiltersTrusted: true
hiddenSettings:
 trustedListPrefixes: ublock- user-
 userResourcesLocation: [redacted]
supportStats:
 allReadyAfter: 710 ms (selfie)
 maxAssetCacheWait: 90 ms
 cacheBackend: indexedDB

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestfixedissue has been addressed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions