mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-05-19 03:33:17 +12:00
fix #990
This commit is contained in:
parent
fde72e4f2a
commit
62d06792f1
|
@ -13,8 +13,9 @@ ul {
|
|||
</head>
|
||||
|
||||
<body>
|
||||
<div class="body">
|
||||
|
||||
<h2>uMatrix <span id="aboutVersion"></span></h2>
|
||||
<h3>uMatrix <span id="aboutVersion"></span></h3>
|
||||
<ul>
|
||||
<li><span id="aboutStorageUsed"></span><br>
|
||||
<li>
|
||||
|
@ -35,7 +36,7 @@ ul {
|
|||
<li><a href="https://github.com/Swatinem/diff" target="_blank">An implementation of Myers' diff algorithm</a> by <a href="https://github.com/Swatinem">Arpad Borsos</a>
|
||||
</ul>
|
||||
|
||||
<h2 data-i18n="aboutUserDataHeader"></h2>
|
||||
<h3 data-i18n="aboutUserDataHeader"></h3>
|
||||
<div>
|
||||
<p><button type="button" id="backupUserDataButton" data-i18n="aboutBackupButton"></button>
|
||||
<button type="button" id="restoreUserDataButton" data-i18n="aboutRestoreButton"></button>
|
||||
|
@ -44,12 +45,15 @@ ul {
|
|||
<p><button type="button" id="resetUserDataButton" data-i18n="aboutResetButton"></button>
|
||||
</div>
|
||||
|
||||
<span style="display: none;" data-i18n="aboutStorageUsed"></span>
|
||||
<span style="display: none;" data-i18n="aboutBackupFilename"></span>
|
||||
<span style="display: none;" data-i18n="aboutRestoreConfirm"></span>
|
||||
<span style="display: none;" data-i18n="aboutRestoreError"></span>
|
||||
<span style="display: none;" data-i18n="aboutResetConfirm"></span>
|
||||
</div><!-- end of div.body -->
|
||||
|
||||
<div style="display: none;">
|
||||
<span data-i18n="aboutStorageUsed"></span>
|
||||
<span data-i18n="aboutBackupFilename"></span>
|
||||
<span data-i18n="aboutRestoreConfirm"></span>
|
||||
<span data-i18n="aboutRestoreError"></span>
|
||||
<span data-i18n="aboutResetConfirm"></span>
|
||||
</div>
|
||||
|
||||
<script src="js/vapi-common.js"></script>
|
||||
<script src="js/vapi-client.js"></script>
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
position: relative;
|
||||
}
|
||||
.CodeMirror {
|
||||
border: 1px solid #ddd;
|
||||
box-sizing: border-box;
|
||||
flex-grow: 1;
|
||||
height: 100%;
|
||||
|
|
|
@ -3,27 +3,14 @@ body {
|
|||
box-sizing: border-box;
|
||||
color: #000;
|
||||
margin: 0;
|
||||
padding: 0 0.5em 0.5em 0.5em;
|
||||
padding: 0;
|
||||
font: 14px/1.4 sans-serif;
|
||||
}
|
||||
body > *:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
h2, h3 {
|
||||
margin: 1em 0;
|
||||
font-family: sans-serif;
|
||||
}
|
||||
h2 {
|
||||
font-size: 18px;
|
||||
}
|
||||
h2:nth-of-type(1) {
|
||||
margin-top: 0;
|
||||
}
|
||||
h3 {
|
||||
font-size: 16px;
|
||||
}
|
||||
h2 + * {
|
||||
padding: 0;
|
||||
div.body {
|
||||
padding: 0 0.5em 0.5em 0.5em;
|
||||
}
|
||||
html.ltr h2 + * {
|
||||
margin: 0 0 0 1em;
|
||||
|
|
|
@ -1,21 +1,19 @@
|
|||
body {
|
||||
margin: 0;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
font: 15px sans-serif;
|
||||
position: relative;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
width: 100vw;
|
||||
}
|
||||
#dashboard-nav {
|
||||
margin: 0;
|
||||
border: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
width: 100vw;
|
||||
height: 50px;
|
||||
z-index: 10;
|
||||
}
|
||||
#dashboard-nav-widgets {
|
||||
|
@ -55,13 +53,11 @@ body {
|
|||
background-color: white;
|
||||
}
|
||||
iframe {
|
||||
margin: 0;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
background-color: transparent;
|
||||
border: 0;
|
||||
flex-grow: 1;
|
||||
margin: 0;
|
||||
overflow: auto;
|
||||
position: absolute;
|
||||
top: 50px;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
height: calc(100% - 50px);
|
||||
}
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
body {
|
||||
div.body {
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100vh;
|
||||
justify-content: space-between;
|
||||
overflow: hidden;
|
||||
}
|
||||
p {
|
||||
margin: 0.5em 0;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
body {
|
||||
html {
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ body {
|
|||
}
|
||||
#diff .ruleActions h3 {
|
||||
font-weight: normal;
|
||||
margin: 0.5em 0;
|
||||
margin: 0 0 0.5em 0;
|
||||
}
|
||||
#ruleFilter {
|
||||
direction: ltr;
|
||||
|
@ -70,7 +70,7 @@ body[dir="rtl"] #commitButton:before {
|
|||
|
||||
.codeMirrorContainer {
|
||||
box-sizing: border-box;
|
||||
padding: 0 0 0.5em 0;
|
||||
padding: 0;
|
||||
}
|
||||
.CodeMirror-merge, .CodeMirror-merge-pane, .CodeMirror-merge .CodeMirror {
|
||||
box-sizing: border-box;
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
</head>
|
||||
|
||||
<body>
|
||||
<div class="body">
|
||||
|
||||
<p>
|
||||
<button id="buttonApply" class="custom important reloadAll disabled" data-i18n="hostsFilesApplyChanges"></button>
|
||||
|
@ -61,6 +62,8 @@
|
|||
</ul>
|
||||
</div>
|
||||
|
||||
</div><!-- end of div.body -->
|
||||
|
||||
<script src="js/vapi-common.js"></script>
|
||||
<script src="js/vapi-client.js"></script>
|
||||
<script src="js/udom.js"></script>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*******************************************************************************
|
||||
|
||||
uMatrix - a Chromium browser extension to black/white list requests.
|
||||
uMatrix - a browser extension to black/white list requests.
|
||||
Copyright (C) 2014-2018 Raymond Hill
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*******************************************************************************
|
||||
|
||||
uMatrix - a Chromium browser extension to block requests.
|
||||
uMatrix - a browser extension to block requests.
|
||||
Copyright (C) 2014-2018 Raymond Hill
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
|
@ -32,22 +32,37 @@
|
|||
// Move to dashboard-common.js if needed
|
||||
|
||||
(function() {
|
||||
if ( document.querySelector('.vfill-available') === null ) { return; }
|
||||
var timer;
|
||||
var resize = function() {
|
||||
let timer;
|
||||
let resize = function() {
|
||||
timer = undefined;
|
||||
let prect = document.body.getBoundingClientRect();
|
||||
let child = document.querySelector('.vfill-available');
|
||||
if ( child === null ) { return; }
|
||||
let prect = document.documentElement.getBoundingClientRect();
|
||||
let crect = child.getBoundingClientRect();
|
||||
let height = Math.max(prect.bottom - crect.top, 80);
|
||||
child.style.height = height + 'px';
|
||||
};
|
||||
resize();
|
||||
window.addEventListener('resize', function() {
|
||||
if ( timer === undefined ) {
|
||||
timer = vAPI.setTimeout(resize, 66);
|
||||
let cssHeight = Math.max(prect.bottom - crect.top, 80) + 'px';
|
||||
if ( child.style.height !== cssHeight ) {
|
||||
child.style.height = cssHeight;
|
||||
if ( typeof mergeView !== 'undefined' ) {
|
||||
mergeView.leftOriginal().refresh();
|
||||
mergeView.editor().refresh();
|
||||
}
|
||||
}
|
||||
};
|
||||
let resizeAsync = function(delay) {
|
||||
if ( timer === undefined ) {
|
||||
timer = vAPI.setTimeout(
|
||||
resize,
|
||||
typeof delay === 'number' ? delay : 66
|
||||
);
|
||||
}
|
||||
};
|
||||
window.addEventListener('resize', resizeAsync);
|
||||
var observer = new MutationObserver(resizeAsync);
|
||||
observer.observe(document.querySelector('.body'), {
|
||||
childList: true,
|
||||
subtree: true
|
||||
});
|
||||
resizeAsync(1);
|
||||
})();
|
||||
|
||||
/******************************************************************************/
|
||||
|
|
|
@ -10,12 +10,17 @@
|
|||
</head>
|
||||
|
||||
<body>
|
||||
<div class="body">
|
||||
|
||||
<p><span data-i18n="rawSettingsWarning"></span> <a class="fa info important" href="https://github.com/gorhill/uMatrix/wiki/Raw-settings" target="_blank"></a>
|
||||
</p>
|
||||
<p><button id="rawSettingsApply" class="custom important" type="button" disabled="true" data-i18n="genericApplyChanges"></button> 
|
||||
</p>
|
||||
|
||||
<textarea id="rawSettings" dir="auto" spellcheck="false"></textarea>
|
||||
|
||||
</div><!-- end of div.body -->
|
||||
|
||||
<script src="js/vapi-common.js"></script>
|
||||
<script src="js/vapi-client.js"></script>
|
||||
<script src="js/udom.js"></script>
|
||||
|
|
|
@ -30,8 +30,9 @@ ul > li.separator {
|
|||
</head>
|
||||
|
||||
<body>
|
||||
<div class="body">
|
||||
|
||||
<h2 data-i18n="settingsMatrixConvenienceHeader"></h2>
|
||||
<h3 data-i18n="settingsMatrixConvenienceHeader"></h3>
|
||||
<ul>
|
||||
<li><input id="iconBadgeEnabled" type="checkbox" data-setting-bool>
|
||||
<label data-i18n="settingsIconBadgeEnabled" for="iconBadgeEnabled"></label>
|
||||
|
@ -49,7 +50,7 @@ ul > li.separator {
|
|||
<input id="noTooltips" type="checkbox" data-setting-bool>
|
||||
<label data-i18n="settingsMatrixNoTooltips" for="noTooltips"></label>
|
||||
</ul>
|
||||
<h2 data-i18n="settingsMatrixDisplayHeader"></h2>
|
||||
<h3 data-i18n="settingsMatrixDisplayHeader"></h3>
|
||||
<ul>
|
||||
<li><span data-i18n="settingsMatrixDisplayTextSizePrompt"></span> −<input id="displayTextSize" type="range" min="12" max="18" value="14" style="margin:0 0.2em;vertical-align:bottom;">+
|
||||
<li class="separator">
|
||||
|
@ -60,7 +61,7 @@ ul > li.separator {
|
|||
<input id="colorBlindFriendly" type="checkbox" data-setting-bool>
|
||||
<label data-i18n="settingsMatrixDisplayColorBlind" for="colorBlindFriendly"></label>
|
||||
</ul>
|
||||
<h2 data-i18n="privacyPageName"></h2>
|
||||
<h3 data-i18n="privacyPageName"></h3>
|
||||
<ul>
|
||||
<li>
|
||||
<input id="deleteCookies" type="checkbox" data-setting-bool><label data-i18n="privacyDeleteBlockedCookiesPrompt" for="deleteCookies"></label>
|
||||
|
@ -110,6 +111,8 @@ ul > li.separator {
|
|||
<div class="whatisthis-expandable para" data-i18n="privacyProcessHyperlinkAuditingHelp"></div>
|
||||
</ul>
|
||||
|
||||
</div><!-- end of div.body -->
|
||||
|
||||
<script src="js/vapi-common.js"></script>
|
||||
<script src="js/vapi-client.js"></script>
|
||||
<script src="js/udom.js"></script>
|
||||
|
|
|
@ -15,9 +15,12 @@
|
|||
</head>
|
||||
|
||||
<body>
|
||||
<div class="body">
|
||||
|
||||
<div id="cloudWidget" class="hide" data-cloud-entry="myRulesPane"></div>
|
||||
|
||||
</div><!-- end of div.body -->
|
||||
|
||||
<!-- <p data-i18n="userRulesFormatHint"></p> -->
|
||||
<div id="diff">
|
||||
<div class="tools">
|
||||
|
|
Loading…
Reference in a new issue