mirror of
				https://github.com/arkenfox/user.js.git
				synced 2025-10-31 05:45:27 +01:00 
			
		
		
		
	Updated 3.1 User Scripts (markdown)
| @@ -2,7 +2,8 @@ | |||||||
| earthlng will explain what addons can use user scripts | earthlng will explain what addons can use user scripts | ||||||
|  |  | ||||||
| ### Conceal history.length | ### 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 | ```js | ||||||
| // ==UserScript== | // ==UserScript== | ||||||
| @@ -25,7 +26,8 @@ Object.defineProperty(history,'length',{ | |||||||
| ``` | ``` | ||||||
|  |  | ||||||
| ### Conceal windows.name | ### 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 | ```js | ||||||
| // ==UserScript== | // ==UserScript== | ||||||
| @@ -60,7 +62,8 @@ Object.defineProperty(window,'name',{ | |||||||
| ``` | ``` | ||||||
|  |  | ||||||
| ### Clear window.opener | ### 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 | ```js | ||||||
| / ==UserScript== | / ==UserScript== | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Thorin-Oakenpants
					Thorin-Oakenpants