Skip to content

remove-cache-storage-item scriptlet doesn't seem to be recognized in filter rules #4114

Description

@JoviDong

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.
  • 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.
  • using a new, unmodified browser profile.

Description

Just a quick heads-up! I was experimenting with the remove-cache-storage-item scriptlet and noticed uBO might not be able to access or recognize it.

I was looking at the source code here: localstorage.js#L132.

A specific URL where the issue occurs.

https://example.com (This happens anywhere).

Steps to Reproduce

  1. Add this to your filters: example.com##+js(remove-cache-storage-item)
Image

Expected behavior

uBO recognizes the scriptlet and injects it.

Actual behavior

The scriptlet doesn't seem to be found or injected.

Configuration

Details
uBlock Origin: 1.74.1b2
Firefox: 157
filterset (summary):
 network: 0
 cosmetic: 0
 scriptlet: 0
 html: 0
listset (total-discarded, last-updated):
 removed:
  ublock-filters: null
  ublock-badware: null
  ublock-privacy: null
  ublock-unbreak: null
  ublock-quick-fixes: null
  easylist: null
  easyprivacy: null
  urlhaus-1: null
  plowe-0: null
 default:
  user-filters: 0-0, never
filterset (user): [empty]
switchRuleset:
 added: [array of 6 redacted]
hostRuleset:
 added: [array of 599 redacted]
userSettings:
 advancedUserEnabled: true
 cloudStorageEnabled: true
 cnameUncloakEnabled: false
 userFiltersTrusted: true
hiddenSettings:
 allowGenericProceduralFilters: true
 extensionUpdateForceReload: true
 filterAuthorMode: true
 trustedListPrefixes: ublock- user- https://raw.githubusercontent.com/JoviDong/
 updateAssetBypassBrowserCache: true
supportStats:
 allReadyAfter: 243 ms (selfie)
 maxAssetCacheWait: 16 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions