mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
A new standalone static filtering parser is introduced, vAPI.StaticFilteringParser. It's purpose is to parse line of text into representation suitable for compiling filters. It can additionally serves for syntax highlighting purpose. As a side effect, this solves: - https://github.com/uBlockOrigin/uBlock-issues/issues/1038 This is a first draft, there are more work left to do to further perfect the implementation and extend its capabilities, especially those useful to assist filter authors. For the time being, this commits break line-continuation syntax highlighting -- which was already flaky prior to this commit anyway.
61 lines
2.7 KiB
HTML
61 lines
2.7 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>uBlock — Your filters</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/1p-filters.css">
|
|
<link rel="stylesheet" href="css/codemirror.css">
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="body">
|
|
<div id="cloudWidget" class="hide" data-cloud-entry="myFiltersPane"></div>
|
|
|
|
<p class="vverbose"><span data-i18n="1pFormatHint"></span> <a class="fa info" href="https://github.com/gorhill/uBlock/wiki/Static-filter-syntax" target="_blank"></a></p>
|
|
<p>
|
|
<button id="userFiltersApply" class="important iconifiable" type="button" disabled><span class="fa"></span><span data-i18n="1pApplyChanges"></span></button>
|
|
<button id="userFiltersRevert" class="iconifiable" type="button" disabled><span class="fa"></span><span data-i18n="genericRevert"></span></button>
|
|
 
|
|
<button id="importUserFiltersFromFile" class="iconifiable" type="button"><span class="fa"></span><span data-i18n="1pImport"></span></button>
|
|
<button id="exportUserFiltersToFile" class="iconifiable" type="button"><span class="fa"></span><span data-i18n="1pExport"></span></button>
|
|
</p>
|
|
</div>
|
|
<div id="userFilters" class="codeMirrorContainer codeMirrorBreakAll" spellcheck="false"></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/matchesonscrollbar.js"></script>
|
|
<script src="lib/codemirror/addon/search/searchcursor.js"></script>
|
|
<script src="lib/codemirror/addon/selection/active-line.js"></script>
|
|
|
|
<script src="js/codemirror/search.js"></script>
|
|
<script src="js/codemirror/ubo-static-filtering.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/static-filtering-parser.js"></script>
|
|
<script src="js/1p-filters.js"></script>
|
|
|
|
</body>
|
|
</html>
|