mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-11 17:41:03 +01:00
a16e4161de
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/780 Related commit: - https://github.com/gorhill/uBlock/commit/3a564c199260 This adds two new advanced settings: - cnameIgnoreRootDocument - Default to `true` - Tells uBO to skip CNAME-lookup for root document. - cnameReplayFullURL - Default to `false` - Tells uBO whether to replay the whole URL or just the origin part of it. Replaying only the origin part is meant to lower undue breakage and improve performance by avoiding repeating the pattern-matching of the whole URL -- which pattern-matching was most likely already accomplished with the original request. This commit is meant to explore enabling CNAME-lookup by default for the next stable release while: - Eliminating a development burden by removing the need to create a new filtering syntax to deal with undesirable CNAME-cloaked hostnames - Eliminating a filter list maintainer burden by removing the need to find/deal with all base domains which engage in undesirable CNAME-cloaked hostnames The hope is that the approach implemented in this commit should require at most a few unbreak rules with no further need for special filtering syntax or filter list maintance efforts.
218 lines
12 KiB
HTML
218 lines
12 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=560, initial-scale=1">
|
|
<link rel="stylesheet" type="text/css" href="css/common.css">
|
|
<link rel="stylesheet" href="css/fa-icons.css" type="text/css">
|
|
<link rel="stylesheet" type="text/css" href="css/logger-ui.css">
|
|
<link rel="stylesheet" type="text/css" href="css/logger-ui-inspector.css">
|
|
<link rel="shortcut icon" type="image/png" href="img/icon_16.png">
|
|
<title data-i18n="statsPageName"></title>
|
|
<style id="vwRendererRuntimeStyles"></style>
|
|
</head>
|
|
<body>
|
|
|
|
<div class="permatoolbar">
|
|
<div>
|
|
<select id="pageSelector">
|
|
<option value="0" data-i18n="logAll">
|
|
<option value="-1" data-i18n="logBehindTheScene">
|
|
<option value="_" data-i18n="loggerCurrentTab">
|
|
</select>
|
|
<span id="refresh" class="button fa-icon disabled needdom" data-i18n-title="loggerReloadTip">refresh</span>
|
|
<span id="showdom" class="button fa-icon disabled needdom" data-i18n-title="loggerDomInspectorTip">code</span>
|
|
<span id="showpopup" class="button ubo-icon disabled needdom" data-i18n-title="loggerPopupPanelTip"><svg><use href="/img/ublock-defs.svg#ubo-solid"></use></svg></span>
|
|
</div>
|
|
<div>
|
|
<a id="info" class="button fa-icon" href="https://github.com/gorhill/uBlock/wiki/The-logger" target="_blank" data-i18n-title="loggerInfoTip">info-circle</a>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="inspectors">
|
|
<div id="domInspector" class="inspector hCompact">
|
|
<div class="permatoolbar">
|
|
<div>
|
|
<span class="button fa-icon vCompactToggler">double-angle-up</span>
|
|
<span class="button fa-icon hCompactToggler">double-angle-left</span>
|
|
<!-- <span class="button fa highlightMode" style="display: none"></span> -->
|
|
<span class="button fa-icon revert disabled">eraser</span>
|
|
<span class="button fa-icon commit disabled">floppy-o</span>
|
|
</div>
|
|
</div>
|
|
<div class="vscrollable">
|
|
<ul id="domTree"></ul>
|
|
</div>
|
|
</div>
|
|
<div id="netInspector" class="inspector f">
|
|
<div class="permatoolbar">
|
|
<div>
|
|
<span class="button fa-icon vCompactToggler">double-angle-up</span>
|
|
<span id="clean" class="button fa-icon disabled">times</span>
|
|
<span id="clear" class="button fa-icon disabled" data-i18n-title="loggerClearTip">eraser</span>
|
|
<span id="pause"><span class="button fa-icon" data-i18n-title="loggerPauseTip">pause-circle-o</span><span class="button fa-icon" data-i18n-title="loggerUnpauseTip">play-circle-o</span></span>
|
|
<span id="filterExprGroup">
|
|
<span id="filterButton" class="button fa-icon" data-i18n-title="loggerRowFiltererButtonTip">filter</span>
|
|
<span id="filterInput">
|
|
<input type="search" placeholder="logFilterPrompt">
|
|
<span id="filterExprButton" class="button fa-icon expanded" data-i18n-title="loggerRowFiltererBuiltinTip">angle-up</span>
|
|
<div id="filterExprPicker">
|
|
<div><span data-filtex="!" data-i18n="loggerRowFiltererBuiltinNot"></span><span data-filtex="\t--\t|\t<<\t|\t##" data-i18n="loggerRowFiltererBuiltinBlocked"></span><span data-filtex="\t\+\+\t|\t\*\*\t|\t#@#" data-i18n="loggerRowFiltererBuiltinAllowed"></span></div>
|
|
<div><span data-filtex="!" data-i18n="loggerRowFiltererBuiltinNot"></span>
|
|
<span style="flex-direction: column;">
|
|
<div style="margin-bottom: 1px;"><span data-filtex="\t(?:css|(?:inline-)?font)\t">css/font</span><span data-filtex="\timage\t">image</span><span data-filtex="\tmedia\t">media</span><span data-filtex="\t(?:inline-)?script(?:ing)?\t">script</span></div>
|
|
<div><span data-filtex="\t(?:websocket|xhr)\t">xhr</span><span data-filtex="\tframe\t">frame</span><span data-filtex="\t(?:beacon|csp_report|ping|other)\t">other</span><span data-filtex="\t(?:dom|g(?:eneric)?hide|s(?:pecific)?hide)\t">dom</span></div>
|
|
</span>
|
|
</div>
|
|
<div><span data-filtex="!" data-i18n="loggerRowFiltererBuiltinNot"></span><span data-filtex="\t(?:0,)?1\t" data-i18n="loggerRowFiltererBuiltin1p"></span><span data-filtex="\t(?:3(?:,\d)?|0,3)\t" data-i18n="loggerRowFiltererBuiltin3p"></span></div>
|
|
<div id="filterExprCnameOf" style="display:none"><span data-filtex="!" data-i18n="loggerRowFiltererBuiltinNot"></span><span data-filtex="\taliasURL=.">CNAME</span></div>
|
|
</div>
|
|
</span>
|
|
</span>
|
|
</div>
|
|
<div>
|
|
<span id="loggerStats" class="button fa-icon" style="display: none;">bar-chart</span>
|
|
<span id="loggerExport" class="button fa-icon">clipboard</span>
|
|
<span id="loggerSettings" class="button fa-icon">cog</span>
|
|
</div>
|
|
</div>
|
|
<div class="vscrollable">
|
|
<div id="vwRenderer">
|
|
<div id="vwScroller">
|
|
<div id="vwVirtualContent">
|
|
<div id="vwContent"></div>
|
|
</div>
|
|
</div>
|
|
<div id="vwLineSizer">
|
|
<div class="logEntry oneLine"><div><span>00:00:00</span><span> </span><span>**</span><span> </span><span>3,3</span><span>inline-script</span><span> </span></div></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<iframe id="popupContainer"></iframe>
|
|
</div>
|
|
|
|
<div id="modalOverlay">
|
|
<div>
|
|
<div id="modalOverlayContainer"></div>
|
|
<div id="modalOverlayClose"><svg viewBox="0 0 64 64"><path d="M 16 16 L 48 48 M 16 48 L 48 16" /></svg></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="templates" style="display: none;">
|
|
<div id="logEntryTemplate"><div><span></span>​<span></span>​<span></span>​<span></span>​<span></span>​<span></span>​<span></span></div></div>
|
|
|
|
<div id="netFilteringDialog" data-pane="details">
|
|
<div class="hide preview"><span>click to preview</span></div>
|
|
<div class="headers">
|
|
 
|
|
<span class="header details" data-pane="details" data-i18n="loggerEntryDetailsHeader"></span>
|
|
<span class="header dynamic hide" data-pane="dynamic" data-i18n="loggerURLFilteringHeader"></span>
|
|
<span class="header static" data-pane="static" data-i18n="loggerStaticFilteringHeader"></span>
|
|
<span class="tools"><span class="fa-icon reload">refresh</span> <span class="fa-icon picker">eye-dropper</span></span>
|
|
</div>
|
|
<div class="panes">
|
|
<div class="pane details" data-pane="details">
|
|
<div><span data-i18n="loggerEntryDetailsFilter"></span><span></span><span class="exceptor" style="visibility: collapse"></span></div>
|
|
<div><span data-i18n="loggerEntryDetailsFilterList"></span><span class="prose"></span></div>
|
|
<div><span data-i18n="loggerEntryDetailsRule"></span><span></span></div>
|
|
<div><span data-i18n="loggerEntryDetailsRootContext"></span><span></span></div>
|
|
<div><span data-i18n="loggerEntryDetailsContext"></span><span></span></div>
|
|
<div><span data-i18n="loggerEntryDetailsPartyness"></span><span class="prose"></span></div>
|
|
<div><span data-i18n="loggerEntryDetailsType"></span><span></span></div>
|
|
<div><span data-i18n="loggerEntryDetailsURL"></span><span></span></div>
|
|
<div><span>CNAME</span><span></span></div>
|
|
<div><span>Original URL</span><span></span></div>
|
|
</div>
|
|
<div class="pane dynamic hide" data-pane="dynamic">
|
|
<div class="toolbar row">
|
|
<span><span id="saveRules" class="fa-icon">lock</span></span>
|
|
<span>
|
|
<label><span data-i18n="loggerURLFilteringContextLabel"></span> <select class="dynamic origin"></select></label> 
|
|
<label><span data-i18n="loggerURLFilteringTypeLabel"></span> <select class="dynamic type"><option><option value="*">*</select></label>
|
|
</span>
|
|
<div class="entry row">
|
|
<span class="action"><span class="allow"> </span><span class="noop"> </span><span class="block"> </span></span>
|
|
<span class="url"></span>
|
|
</div>
|
|
</div>
|
|
<div class="entries"></div>
|
|
</div>
|
|
<div class="pane static" data-pane="static">
|
|
<div></div>
|
|
<div><textarea class="staticFilter" spellcheck="false" value=""></textarea>
|
|
<button id="createStaticFilter" class="custom important" type="button" data-i18n="pickerCreate"></button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="filterFinderDialog">
|
|
</div>
|
|
|
|
<div id="filterFinderListEntry">
|
|
<span><!--
|
|
--><a href="asset-viewer.html?url=" target="_blank"></a> <!--
|
|
--><a href="" class="fa-icon" target="_blank">home</a><!--
|
|
--></span>
|
|
</div>
|
|
|
|
<div id="cosmeticFilteringDialog" class="modalDialog">
|
|
<textarea class="cosmeticFilters" value=""></textarea>
|
|
<button id="createCosmeticFilters" class="custom important" type="button" data-i18n="pickerCreate"></button>
|
|
</div>
|
|
|
|
<div id="loggerStatsDialog">
|
|
<div class="sortedEntries"></div>
|
|
</div>
|
|
|
|
<div id="loggerExportDialog">
|
|
<div class="options">
|
|
<div data-radio="format">
|
|
<span data-i18n="loggerExportFormatList" data-radio-item="list"></span>
|
|
<span data-i18n="loggerExportFormatTable" data-radio-item="table"></span>
|
|
</div>
|
|
<div data-radio="encoding">
|
|
<span data-i18n="loggerExportEncodePlain" data-radio-item="plain"></span>
|
|
<span data-i18n="loggerExportEncodeMarkdown" data-radio-item="markdown"></span>
|
|
</div>
|
|
<div>
|
|
<span data-i18n="genericCopyToClipboard" class="pushbutton"></span>
|
|
</div>
|
|
</div>
|
|
<textarea class="output" readonly spellcheck="false"></textarea>
|
|
</div>
|
|
|
|
<div id="loggerSettingsDialog">
|
|
<div><span data-i18n="loggerSettingDiscardPrompt"></span>
|
|
<ul>
|
|
<li><label data-i18n="loggerSettingPerEntryMaxAge"><input type="number" min="0" max="50000" /></label>
|
|
<li><label data-i18n="loggerSettingPerTabMaxLoads"><input type="number" min="0" max="1000000" /></label>
|
|
<li><label data-i18n="loggerSettingPerTabMaxEntries"><input type="number" min="0" max="1000000" /></label>
|
|
</ul>
|
|
</div>
|
|
<div><span data-i18n="loggerSettingHideColumnsPrompt"></span>
|
|
<ul>
|
|
<li><label data-i18n="loggerSettingHideColumnTime"><input type="checkbox" data-column="0" /></label>
|
|
<li><label data-i18n="loggerSettingHideColumnFilter"><input type="checkbox" data-column="1" /></label>
|
|
<li><label data-i18n="loggerSettingHideColumnContext"><input type="checkbox" data-column="3" /></label>
|
|
<li><label data-i18n="loggerSettingHideColumnPartyness"><input type="checkbox" data-column="4" /></label>
|
|
</ul>
|
|
</div>
|
|
<div><label data-i18n="loggerSettingPerEntryLineCount"><input type="number" min="2" max="6"></label></div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script src="js/fa-icons.js"></script>
|
|
<script src="js/vapi.js"></script>
|
|
<script src="js/vapi-common.js"></script>
|
|
<script src="js/vapi-client.js"></script>
|
|
<script src="js/vapi-client-extra.js"></script>
|
|
<script src="js/udom.js"></script>
|
|
<script src="js/i18n.js"></script>
|
|
<script src="js/logger-ui.js"></script>
|
|
<script src="js/logger-ui-inspector.js"></script>
|
|
|
|
</body>
|
|
</html>
|