mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Related issue: https://github.com/uBlockOrigin/uBOL-home/issues/214 This implements basic functionality for strict blocking, i.e. the ability to block navigation to undesirable websites. This is a first implementation, which converts only filters that are plain hostnames. Unlike with uBO, it is not possible to know from which ruleset a blocking rule originates. Nonetheless, users will have to make a choice as to whether navigation should proceed or not. A setting has been added to the dashboard to wholly enable/disable strict blocking. It is enabled by default. Potential future improvements, pending investigation on feasability in an MV3 framework: - Extend coverage to explicit `document` filters - Leverage and use `urlskip=` filters in the blocking page in order to proceed while bypassing unwanted redirects.
43 lines
1.8 KiB
HTML
43 lines
1.8 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1 user-scalable=yes">
|
|
<title data-i18n="strictblockTitle"></title>
|
|
<link rel="stylesheet" href="css/default.css">
|
|
<link rel="stylesheet" href="css/common.css">
|
|
<link rel="stylesheet" href="css/fa-icons.css">
|
|
<link rel="stylesheet" href="css/strictblock.css">
|
|
<link rel="shortcut icon" type="image/png" href="img/icon_64.png"/>
|
|
</head>
|
|
<body>
|
|
<div id="rootContainer">
|
|
<div id="warningSign">
|
|
<a class="fa-icon" href="https://github.com/gorhill/uBlock/wiki/Strict-blocking" target="_blank" rel="noopener noreferrer">exclamation-triangle</a>
|
|
</div>
|
|
|
|
<div>
|
|
<p data-i18n="strictblockSentence1">_</p>
|
|
<div id="theURL" class="collapsed">
|
|
<p class="code"><span> </span><span id="toggleParse" class="hidden"><span class="fa-icon">zoom-in</span><span class="fa-icon">zoom-out</span></span></p>
|
|
<ul id="parsed"></ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="li">
|
|
<label><span class="input checkbox"><input type="checkbox" id="disableWarning"><svg viewBox="0 0 24 24"><path d="M1.73,12.91 8.1,19.28 22.79,4.59"/></svg></span><span data-i18n="strictblockDontWarn">_</span></label>
|
|
</div>
|
|
|
|
<div id="actionContainer">
|
|
<button id="back" data-i18n="strictblockBack" type="button">_<span class="hover"></span></button>
|
|
<button id="bye" data-i18n="strictblockClose" type="button">_<span class="hover"></span></button>
|
|
<button id="proceed" class="preferred" data-i18n="strictblockProceed" type="button"><span class="hover"></span></button>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="js/theme.js" type="module"></script>
|
|
<script src="js/fa-icons.js" type="module"></script>
|
|
<script src="js/i18n.js" type="module"></script>
|
|
<script src="js/strictblock.js" type="module"></script>
|
|
</body>
|
|
</html>
|