Skip to content

Commit bc2bed4

Browse files
authored
Merge pull request #1 from xofe/minor-fixes-3
Minor fixes 3(Rewrite to python3 and long domain names)
2 parents 1ae27d0 + bda7383 commit bc2bed4

8 files changed

Lines changed: 15 additions & 7 deletions

File tree

src/css/fa-icons.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@
4040
.fa-icon.disabled > .fa-icon-badge {
4141
display: none;
4242
}
43+
.fa-icon.fa-icon-vflipped {
44+
transform: scale(1, -1);
45+
}
4346

4447
.fa-icon > svg {
4548
height: 1em;

src/css/popup.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,10 +347,10 @@ body.tabless .needtab {
347347
text-align: left;
348348
}
349349
.matRow {
350-
align-items: flex-start;
351350
display: flex;
352351
}
353352
.matCell {
353+
align-items: center;
354354
box-sizing: content-box;
355355
display: inline-flex;
356356
flex-shrink: 0;
@@ -374,6 +374,7 @@ body.tabless .needtab {
374374
font-weight: 100;
375375
}
376376
.paneContent .matrix .matRow > .matCell:first-child > b {
377+
display: contents;
377378
font-weight: normal;
378379
}
379380

@@ -383,9 +384,10 @@ body.tabless .needtab {
383384
flex-grow: 1;
384385
flex-shrink: 1;
385386
justify-content: flex-end;
387+
text-align: right;
386388
unicode-bidi: embed;
387389
width: 16em;
388-
word-break: keep-all;
390+
word-break: break-all;
389391
}
390392
.matrix .matGroup.g4 .matRow.ro > .matCell:first-child {
391393
direction: inherit;

src/hosts-files.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
--><a class="fa-icon mustread" href="" target="_blank">info-circle</a>&#8203;<!--
5656
 --><span class="fa-icon status unsecure" title="http">unlock</span>&#8203;<!--
5757
--><span class="counts dim status"></span>&#8203;<!--
58-
 --><span class="fa-icon status obsolete" title="hostsFilesExternalListObsolete">exclamation-triangle</span>&#8203;<!--
58+
 --><span class="fa-icon status obsolete" data-i18n-title="hostsFilesExternalListObsolete">exclamation-triangle</span>&#8203;<!--
5959
 --><span class="fa-icon status cache">clock</span>&#8203;<!--
6060
 --><span class="fa-icon status updating">spinner</span>&#8203;<!--
6161
 --><span class="fa-icon status failed">unlink</span>

src/js/matrix.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,9 @@ Matrix.prototype.evaluateCellZ = function(srcHostname, desHostname, type) {
388388
// srcHostname is '*' at this point
389389

390390
// Preset blacklisted hostnames are blacklisted in global scope
391-
if ( type === '*' && µm.ubiquitousBlacklistRef.matches(desHostname) !== -1 ) {
391+
// https://github.com/uBlockOrigin/uMatrix-issues/issues/284
392+
// Only consider hostname blocklisted if it's a full match.
393+
if ( type === '*' && µm.ubiquitousBlacklistRef.matches(desHostname) === 0 ) {
392394
return 1;
393395
}
394396

src/js/popup.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,6 +1327,7 @@ const gotoExtensionURL = function(ev) {
13271327
what: 'gotoExtensionURL',
13281328
url,
13291329
select: true,
1330+
index: -1,
13301331
shiftKey: ev.shiftKey,
13311332
});
13321333
dropDownMenuHide();

tools/make-chromium.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ cp ./platform/chromium/manifest.json $DES/
1919
cp LICENSE.txt $DES/
2020

2121
echo "*** uMatrix.chromium: Generating meta..."
22-
python tools/make-chromium-meta.py $DES/
22+
python3 tools/make-chromium-meta.py $DES/
2323

2424
if [ "$1" = all ]; then
2525
echo "*** uMatrix.chromium: Creating package..."

tools/make-firefox.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ cp platform/firefox/*.js $DES/js/
2121
cp platform/firefox/manifest.json $DES/
2222

2323
echo "*** uMatrix.firefox: Generating meta..."
24-
python tools/make-firefox-meta.py $DES/
24+
python3 tools/make-firefox-meta.py $DES/
2525

2626
if [ "$1" = all ]; then
2727
echo "*** uMatrix.firefox: Creating package..."

tools/make-opera.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ cp -R ./src/_locales/tr $DES/_locales/
3434
cp -R ./src/_locales/zh_TW $DES/_locales/
3535

3636
echo "*** uMatrix.opera: Generating meta..."
37-
python tools/make-opera-meta.py $DES/
37+
python3 tools/make-opera-meta.py $DES/
3838

3939
echo "*** uMatrix.opera: Package done."

0 commit comments

Comments
 (0)