Skip to content

Commit 32b2d47

Browse files
author
Atlassian Bamboo
committed
deploy: update docs for v2.3.0
1 parent c516851 commit 32b2d47

4 files changed

Lines changed: 464 additions & 16 deletions

File tree

wiki/about-redirects.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
- [didomi-loader](#didomi-loader)
2222
- [fingerprintjs2](#fingerprintjs2)
2323
- [fingerprintjs3](#fingerprintjs3)
24+
- [freewheel-admanager](#freewheel-admanager)
2425
- [gemius](#gemius)
2526
- [google-analytics-ga](#google-analytics-ga)
2627
- [google-analytics](#google-analytics)
@@ -373,6 +374,22 @@ https://github.com/gorhill/uBlock/blob/master/src/web_accessible_resources/finge
373374

374375
* * *
375376

377+
## <a id="freewheel-admanager"></a> ⚡️ freewheel-admanager
378+
379+
> Added in v2.3.0.
380+
381+
Mocks the FreeWheel Ad Manager.
382+
383+
### Examples
384+
385+
```adblock
386+
||mssl.fwmrm.net/libs/adm/6.55.0/AdManager.js$script,redirect=freewheel-admanager
387+
```
388+
389+
[Redirect source](../src/redirects/freewheel-admanager.js)
390+
391+
* * *
392+
376393
## <a id="gemius"></a> ⚡️ gemius
377394

378395
> Added in v1.5.0.

wiki/about-scriptlets.md

Lines changed: 53 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- [evaldata-prune](#evaldata-prune)
1919
- [fingerprintjs2](#fingerprintjs2)
2020
- [fingerprintjs3](#fingerprintjs3)
21+
- [freewheel-admanager](#freewheel-admanager)
2122
- [gemius](#gemius)
2223
- [google-analytics-ga](#google-analytics-ga)
2324
- [google-analytics](#google-analytics)
@@ -527,10 +528,11 @@ but instead of aborting it starts the debugger.
527528
528529
### Examples
529530

530-
```adblock
531-
! Aborts script when it tries to access `window.alert`
532-
example.org#%#//scriptlet('debug-current-inline-script', 'alert')
533-
```
531+
1. Debug script when it tries to access `window.alert`
532+
533+
```adblock
534+
example.org#%#//scriptlet('debug-current-inline-script', 'alert')
535+
```
534536
535537
[Scriptlet source](../src/scriptlets/debug-current-inline-script.js)
536538
@@ -547,13 +549,17 @@ but instead of aborting it starts the debugger.
547549
548550
### Examples
549551
550-
```adblock
551-
! Debug script if it tries to access `window.alert`
552-
example.org#%#//scriptlet('debug-on-property-read', 'alert')
552+
1. Debug script if it tries to access `window.alert`
553553
554-
! or `window.open`
555-
example.org#%#//scriptlet('debug-on-property-read', 'open')
556-
```
554+
```adblock
555+
example.org#%#//scriptlet('debug-on-property-read', 'alert')
556+
```
557+
558+
1. Debug script if it tries to access `window.open`
559+
560+
```adblock
561+
example.org#%#//scriptlet('debug-on-property-read', 'open')
562+
```
557563
558564
[Scriptlet source](../src/scriptlets/debug-on-property-read.js)
559565
@@ -570,10 +576,11 @@ but instead of aborting it starts the debugger.
570576
571577
### Examples
572578
573-
```adblock
574-
! Aborts script when it tries to write in property `window.test`
575-
example.org#%#//scriptlet('debug-on-property-write', 'test')
576-
```
579+
1. Debug script when it tries to write in property `window.test`
580+
581+
```adblock
582+
example.org#%#//scriptlet('debug-on-property-write', 'test')
583+
```
577584
578585
[Scriptlet source](../src/scriptlets/debug-on-property-write.js)
579586
@@ -762,6 +769,22 @@ example.org#%#//scriptlet('fingerprintjs3')
762769

763770
* * *
764771

772+
## <a id="freewheel-admanager"></a> ⚡️ freewheel-admanager
773+
774+
> Added in v2.3.0.
775+
776+
Mocks the FreeWheel Ad Manager.
777+
778+
### Examples
779+
780+
```adblock
781+
example.org#%#//scriptlet('freewheel-admanager')
782+
```
783+
784+
[Scriptlet source](../src/scriptlets/freewheel-admanager.ts)
785+
786+
* * *
787+
765788
## <a id="gemius"></a> ⚡️ gemius
766789

767790
> Added in v1.10.25.
@@ -1641,11 +1664,19 @@ but instead of aborting it logs:
16411664
### Syntax
16421665

16431666
```text
1644-
example.com#%#//scriptlet('log-on-stack-trace', 'property')
1667+
example.com#%#//scriptlet('log-on-stack-trace', property)
16451668
```
16461669

16471670
- `property` — required, path to a property. The property must be attached to window.
16481671

1672+
### Examples
1673+
1674+
1. Log stack trace when it tries to access `window.open`
1675+
1676+
```adblock
1677+
example.org#%#//scriptlet('log-on-stack-trace', 'open')
1678+
```
1679+
16491680
[Scriptlet source](../src/scriptlets/log-on-stack-trace.js)
16501681
16511682
* * *
@@ -2856,7 +2887,7 @@ example.org#%#//scriptlet('prevent-setTimeout'[, matchCallback[, matchDelay]])
28562887
28572888
> Added in v1.0.4.
28582889
2859-
Prevents `window.open` calls when URL either matches or not matches the specified string/regexp.
2890+
Prevents `window.open` calls when URL or any other parameter either matches or not matches the specified string/regexp.
28602891
Using it without parameters prevents all `window.open` calls.
28612892
28622893
Related UBO scriptlet:
@@ -3611,12 +3642,15 @@ example.org#%#//scriptlet('set-cookie-reload', name, value[, path[, domain]])
36113642
- `no` / `n`
36123643
- `ok`
36133644
- `on` / `off`
3645+
- `all`
36143646
- `accept`/ `accepted` / `notaccepted`
36153647
- `reject` / `rejected`
36163648
- `allow` / `allowed`
3649+
- `declined`
36173650
- `disallow` / `deny` / `denied`
36183651
- `enable` / `enabled`
36193652
- `disable` / `disabled`
3653+
- `mandatory`
36203654
- `necessary` / `required`
36213655
- `hide` / `hidden`
36223656
- `essential` / `nonessential`
@@ -3676,12 +3710,15 @@ example.org#%#//scriptlet('set-cookie', name, value[, path[, domain]])
36763710
- `no` / `n`
36773711
- `ok`
36783712
- `on` / `off`
3713+
- `all`
36793714
- `accept`/ `accepted` / `notaccepted`
36803715
- `reject` / `rejected`
36813716
- `allow` / `allowed`
3717+
- `declined`
36823718
- `disallow` / `deny` / `denied`
36833719
- `enable` / `enabled`
36843720
- `disable` / `disabled`
3721+
- `mandatory`
36853722
- `necessary` / `required`
36863723
- `hide` / `hidden`
36873724
- `essential` / `nonessential`

0 commit comments

Comments
 (0)