mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-07 11:22:38 +01:00
23332400f5
Before this commit, CodeMirror's add-on for search occurrences was limited to find at most 1000 first occurrences, because of performance considerations. This commit removes this low limit by having the search occurrences done in a dedicated worker. The limit is now time-based, and highly unlikely to ever be hit under normal condition. With this change, all search occurrences are gathered, and as a result: - All occurrences are reported in the scrollbar instead of just the 1,000 first - The total count of all occurrences is now reported, instead of capping at "1000+". - The current occurrence rank at the cursor or selection position is now reported -- this was not possible to report this before. The number of occurrences is line-based, it's not useful to report finer-grained occurences in uBO.
63 lines
2.6 KiB
HTML
63 lines
2.6 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>uBlock — Whitelist</title>
|
|
|
|
<link rel="stylesheet" href="lib/codemirror/lib/codemirror.css">
|
|
<link rel="stylesheet" href="lib/codemirror/addon/search/matchesonscrollbar.css">
|
|
|
|
<link rel="stylesheet" type="text/css" href="css/themes/default.css">
|
|
<link rel="stylesheet" href="css/common.css">
|
|
<link rel="stylesheet" href="css/fa-icons.css">
|
|
<link rel="stylesheet" href="css/dashboard-common.css">
|
|
<link rel="stylesheet" href="css/cloud-ui.css">
|
|
<link rel="stylesheet" href="css/whitelist.css">
|
|
<link rel="stylesheet" href="css/codemirror.css">
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="body">
|
|
<div id="cloudWidget" class="hide" data-cloud-entry="whitelistPane"></div>
|
|
|
|
<p class="vverbose"><span data-i18n="whitelistPrompt"></span> <a class="fa info important" href="https://github.com/gorhill/uBlock/wiki/Dashboard:-Whitelist"></a>
|
|
</p>
|
|
<p>
|
|
<button id="whitelistApply" class="important iconifiable" type="button" disabled><span class="fa"></span><span data-i18n="whitelistApply"></span></button>
|
|
<button id="whitelistRevert" class="iconifiable" type="button" disabled><span class="fa"></span><span data-i18n="genericRevert"></span></button>
|
|
  
|
|
<button id="importWhitelistFromFile" class="iconifiable" type="button"><span class="fa"></span><span data-i18n="whitelistImport"></span></button>
|
|
<button id="exportWhitelistToFile" class="iconifiable" type="button"><span class="fa"></span><span data-i18n="whitelistExport"></span></button>
|
|
</p>
|
|
</div>
|
|
<div id="whitelist" class="codeMirrorContainer"></div>
|
|
|
|
<div class="hidden">
|
|
<input id="importFilePicker" type="file" accept="text/plain">
|
|
</div>
|
|
|
|
<script src="lib/codemirror/lib/codemirror.js"></script>
|
|
<script src="lib/codemirror/addon/display/panel.js"></script>
|
|
<script src="lib/codemirror/addon/scroll/annotatescrollbar.js"></script>
|
|
<script src="lib/codemirror/addon/search/searchcursor.js"></script>
|
|
<script src="lib/codemirror/addon/selection/active-line.js"></script>
|
|
<script src="lib/punycode.js"></script>
|
|
|
|
<script src="js/codemirror/search.js"></script>
|
|
<script src="js/codemirror/search-thread.js"></script>
|
|
|
|
<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/udom.js"></script>
|
|
<script src="js/i18n.js"></script>
|
|
<script src="js/dashboard-common.js"></script>
|
|
<script src="js/cloud-ui.js"></script>
|
|
<script src="js/whitelist.js"></script>
|
|
|
|
</body>
|
|
</html>
|