Socket
Socket
Sign inDemoInstall

@adguard/scriptlets

Package Overview
Dependencies
Maintainers
3
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adguard/scriptlets - npm Package Versions

23
6

1.12.1

Diff

Changelog

Source

[v1.12.1] - 2024-09-20

Added

  • Integrated [@adguard/agtree][agtree-npm] library for working with rules, compatibility tables, validator and converter.

Fixed

  • issue with re-adding element on every DOM change in trusted-create-element scriptlet [#450]
  • setting cookie which name has special prefix __Host- or __Secure- by trusted-set-cookie and trusted-set-cookie-reload scriptlets [#448]
maximtop
published 1.2.2 •

maximtop
published 1.11.27 •

Changelog

Source

[v1.11.27] - 2024-08-29

Added

  • reload option for trusted-click-element scriptlet [#301]
  • support for matching line number in abort-on-stack-trace scriptlet when inlineScript or injectedScript option is used [#439]
  • new values to set-cookie and set-cookie-reload scriptlets: checked, unchecked [#444]
  • new values to set-local-storage-item and set-session-storage-item scriptlets: allowed, denied [#445]
  • UBO aliases noop-vast2.xml, noop-vast3.xml, and noop-vast4.xml for correspondent AdGuard redirects
  • new field uniqueId to scriptlet configuration, allowing scriptlets to be executed only once per context

Changed

  • UBO alias noop-vmap1.0.xml for noopvmap-1.0 redirect is replaced by noop-vmap1.xml

Fixed

  • issue with modifying RegExp.$1, …, RegExp.$9 values in log-on-stack-trace and abort-on-stack-trace scriptlets [#384]
maximtop
published 1.11.16 •

Changelog

Source

[v1.11.16] - 2024-08-01

Added

  • trusted-set-session-storage-item scriptlet [#426]
  • new values to set-cookie and set-cookie-reload scriptlets: essential, nonessential [#436]
  • $currentISODate$ as a new possible value to set-cookie, set-cookie-reload, set-local-storage-item and set-session-storage-item scriptlets [#435]

Fixed

  • issue with re-adding element after removing it in trusted-create-element scriptlet [#434]
  • trusted-click-element scriptlet does not click on an element that is already in the DOM [#437]
maximtop
published 1.11.6 •

Changelog

Source

[v1.11.6] - 2024-07-08

Added

  • new values to set-cookie and set-cookie-reload scriptlets: hide, hidden [#433]
  • new values to set-local-storage-item and set-session-storage-item scriptlets: accept, accepted, reject, rejected [#429]
  • ability to log original and modified content in trusted-replace-node-text, xml-prune, m3u-prune, trusted-replace-fetch-response and trusted-replace-xhr-response scriptlets [#411]

Changed

  • Log message format [CoreLibs#180]
maximtop
published 1.11.1 •

Changelog

Source

[v1.11.1] - 2024-06-13

Added

  • trusted-dispatch-event scriptlet [#382]
  • trusted-replace-outbound-text scriptlet [#410]
  • ability to click on the element with specified text in trusted-click-element scriptlet [#409]
  • ability to click element in closed shadow root in trusted-click-element scriptlet [#423]
  • isRedirectResourceCompatibleWithAdg() method to check compatibility of redirect resources with AdGuard without needing the full rule text [#420]

Deprecated

  • ruleText option in the IConfiguration

Fixed

  • set-attr value cannot be set to minimum 0 and maximum 32767 possible value [#425]
maximtop
published 1.10.25 •

Changelog

Source

[v1.10.25] - 2024-03-28

Added

  • trusted-suppress-native-method scriptlet [#383]
  • json-prune-fetch-response scriptlet [#361]
  • json-prune-xhr-response scriptlet [#360]
  • href-sanitizer scriptlet [#327]
  • no-protected-audience scriptlet [#395]
  • The ability for prevent-fetch scriptlet to set cors as a response type [#394]
  • The ability for trusted-click-element scriptlet to click inside open shadow doms [#323]
  • Domain value for setting cookie scriptlets [#389]
  • Multiple redirects can now be used as scriptlets [#300]:
    • amazon-apstag
    • didomi-loader
    • fingerprintjs2
    • fingerprintjs3
    • gemius
    • google-analytics
    • google-analytics-ga
    • google-ima3
    • googlesyndication-adsbygoogle
    • googletagservices-gpt
    • matomo
    • metrika-yandex-tag
    • metrika-yandex-watch
    • naver-wcslog
    • pardot-1.0
    • prebid
    • scorecardresearch-beacon

Changed

  • Validation of scriptlet rules with no name and args for multiple scriptlet exception rules [#377]
  • Cookie name is not encoded by cookie setting scriptlets [#408]
  • Increased the possible numeric value up to 32767 for set-cookie and set-cookie-reload scriptlets [#388]

Fixed

  • UBO→ADG conversion of $remove$ scriptlet param [#404]
  • set-constant scriptlet not setting a constant over falsy values [#403]
maximtop
published 1.10.1 •

Changelog

Source

[v1.10.1] - 2024-02-12

Added

  • call-nothrow scriptlet #333
  • spoof-css scriptlet #317
  • trusted-create-element scriptlet #278
  • trusted-set-attr scriptlet #281
  • Ability of set-attr to set an attribute value as a copy of another attribute value of the same element.
  • UBO alias for set-cookie-reload scriptlet #332
  • New values t, f, necessary, required for set-cookie and set-cookie-reload #379
maximtop
published 1.9.105 •

Changelog

Source

[v1.9.105] - 2023-12-25

Added

  • OmidVerificationVendor object to google-ima3 redirect #353
  • ga.q (queued commands) to google-analytics redirect #355

Fixed

  • addEventListener in EventHandler in google-ima3 redirect, now it binds context to callback #353
  • AdDisplayContainer constructor in google-ima3 redirect, now it adds div element to container #353
  • getInnerError method in google-ima3 redirect, now it returns null #353
maximtop
published 1.9.101 •

Changelog

Source

[v1.9.101] - 2023-11-30

Added

  • emptyStr value for responseBody in prevent-fetch scriptlet #364
  • setPrivacySettings() method to googletagservices-gpt redirect #344
  • UBO alias noop.json for noopjson redirect
  • library version number to the exports #2237.

Changed

  • prevent-fetch scriptlet, if responseType is set to opaque then now response body is set to null, status is set to 0 and statusText is set to '' #364
23
6
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc