1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-26 12:22:50 +01:00
uBlock/platform/common
Raymond Hill bf591d93fb
Imrpove no-xhr-if scriptlet
Related issue:
https://github.com/uBlockOrigin/uBlock-issues/issues/2773

The `randomize` paramater introduced in https://github.com/gorhill/uBlock/commit/418087de9c
is now named `directive`, and beside the `true` value which is meant
to respond with a random 10-character string, it can now take the
following value:

  war:[web_accessible_resource name]

In order to mock the XHR response with a web accessible resource. For
example:

  piquark6046.github.io##+js(no-xhr-if, adsbygoogle.js, war:googlesyndication_adsbygoogle.js)

Will cause the XHR performed by the webpage to resolve to the content
of `/web_accessible_resources/googlesyndication_adsbygoogle.js`.

Should the resource not exist, the empty string will be returned.
2023-08-14 10:03:50 -04:00
..
managed_storage.json Reorganize platform directory to avoid Chromium-centric appearance 2021-07-16 10:06:58 -04:00
vapi-background.js Imrpove no-xhr-if scriptlet 2023-08-14 10:03:50 -04:00
vapi-client-extra.js Reorganize platform directory to avoid Chromium-centric appearance 2021-07-16 10:06:58 -04:00
vapi-client.js Shield against possible case of invalid attribute name 2021-10-26 08:55:05 -04:00
vapi-common.js Replace requestIdleCallback() with new vAPI.defer utility 2023-04-10 10:10:19 -04:00
vapi.js Improve test for presence of browser as extensions API 2022-01-01 11:07:17 -05:00