mirror of
https://github.com/arkenfox/user.js.git
synced 2024-11-26 04:21:39 +01:00
Updated 3.1 User Scripts (markdown)
parent
107e9fa3c7
commit
6c5c4f89e8
@ -2,7 +2,8 @@
|
||||
earthlng will explain what addons can use user scripts
|
||||
|
||||
### Conceal history.length
|
||||
This does not break history in any way. It just lies to any JS asking about it. Your actual (max) history is controlled by `browser.sessionhistory.max_entries` which is a per tab setting. You can test it at [JoDonym](http://ip-check.info/?lang=en)
|
||||
This does not break history in any way. It just lies to any JS asking about it. Your actual (max) history is controlled by `browser.sessionhistory.max_entries` which is a per tab setting.
|
||||
You can test it at [JoDonym](http://ip-check.info/?lang=en)
|
||||
|
||||
```js
|
||||
// ==UserScript==
|
||||
@ -25,7 +26,8 @@ Object.defineProperty(history,'length',{
|
||||
```
|
||||
|
||||
### Conceal windows.name
|
||||
See [bugzilla 444222](https://bugzilla.mozilla.org/show_bug.cgi?id=444222). You can test it at [JoDonym](http://ip-check.info/?lang=en)
|
||||
See [bugzilla 444222](https://bugzilla.mozilla.org/show_bug.cgi?id=444222).
|
||||
You can test it at [JoDonym](http://ip-check.info/?lang=en)
|
||||
|
||||
```js
|
||||
// ==UserScript==
|
||||
@ -60,7 +62,8 @@ Object.defineProperty(window,'name',{
|
||||
```
|
||||
|
||||
### Clear window.opener
|
||||
See [this](https://www.ghacks.net/2017/01/24/web-security-add-relnoopener-to-external-links/) ghacks article about rel=noopener. You can test it at https://mathiasbynens.github.io/rel-noopener/
|
||||
See [this](https://www.ghacks.net/2017/01/24/web-security-add-relnoopener-to-external-links/) ghacks article about rel=noopener.
|
||||
You can test it at https://mathiasbynens.github.io/rel-noopener/
|
||||
|
||||
```js
|
||||
/ ==UserScript==
|
||||
|
Loading…
Reference in New Issue
Block a user