mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Updated Inline script tag filtering (markdown)
parent
0465eedb50
commit
759847c7ff
1 changed files with 5 additions and 10 deletions
|
|
@ -1,19 +1,14 @@
|
|||
The ability to filter specific inline script tag started with uBlock Origin 1.2.0.
|
||||
|
||||
There are many ways to block script tags from executing in uBlock Origin:
|
||||
|
||||
- Block external script resources.
|
||||
- Block all inline script tags<sup>[1]</sup> at once
|
||||
- Block all inline script tags<sup>[1]</sup> at once.
|
||||
|
||||
uBlock Origin 1.2.0 introduces a way to block **specific** inline script tag in a web page through a new script tag cosmetic filter.
|
||||
|
||||
***
|
||||
|
||||
- [1] Inline script tags are those which are embedded in the main web page. Example using an excerpt from the front page of Hacker News:<br>
|
||||
```<html op="news"><head>
|
||||
<meta name="referrer" content="origin">
|
||||
<link rel="stylesheet" type="text/css" href="news.css?YL5ocwvpNdWX9tuUw2kw">
|
||||
<link rel="shortcut icon" href="favicon.ico">
|
||||
<link rel="alternate" type="application/rss+xml" title="RSS" href="rss">
|
||||
<script type="text/javascript">
|
||||
- [1] Inline script tags are those which are embedded in the main web page. An example using an excerpt from the front page of Hacker News:<br>
|
||||
```<html op="news"><head><meta name="referrer" content="origin"><link rel="stylesheet" type="text/css" href="news.css?YL5ocwvpNdWX9tuUw2kw"><link rel="shortcut icon" href="favicon.ico"><link rel="alternate" type="application/rss+xml" title="RSS" href="rss"><script type="text/javascript">
|
||||
function hide(id) {
|
||||
var el = document.getElementById(id);
|
||||
if (el) { el.style.visibility = 'hidden'; }
|
||||
|
|
|
|||
Loading…
Reference in a new issue