mirror of https://github.com/gorhill/uBlock.git
this fixes #262
This commit is contained in:
parent
58804dba7d
commit
1e57760fe1
|
@ -70,6 +70,13 @@ function startup(data, reason) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://github.com/gorhill/uBlock/issues/262
|
||||||
|
// To remove whatever suffix AMO adds to the version number.
|
||||||
|
var matches = version.match(/(?:\d+\.)+\d+/);
|
||||||
|
if ( matches !== null ) {
|
||||||
|
version = matches[0];
|
||||||
|
}
|
||||||
|
|
||||||
bgProcess = hiddenDoc.documentElement.appendChild(
|
bgProcess = hiddenDoc.documentElement.appendChild(
|
||||||
hiddenDoc.createElementNS('http://www.w3.org/1999/xhtml', 'iframe')
|
hiddenDoc.createElementNS('http://www.w3.org/1999/xhtml', 'iframe')
|
||||||
);
|
);
|
||||||
|
|
|
@ -50,7 +50,6 @@ a {
|
||||||
#version {
|
#version {
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
margin-left: 1em;
|
|
||||||
}
|
}
|
||||||
body[dir="ltr"] #panes {
|
body[dir="ltr"] #panes {
|
||||||
direction: rtl;
|
direction: rtl;
|
||||||
|
@ -104,7 +103,7 @@ body.portrait[dir="ltr"] #panes > div:nth-of-type(2) {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
#panes > div:nth-of-type(1) {
|
#panes > div:nth-of-type(1) {
|
||||||
min-width: 150px;
|
min-width: 160px;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
p {
|
p {
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<a href="dashboard.html" target="_blank" id="gotoPrefs" title="popupTipDashboard"><span id="appname"> </span><span id="version"> </span></a>
|
<a href="dashboard.html" target="_blank" id="gotoPrefs" title="popupTipDashboard"><span id="appname"> </span> <span id="version"> </span></a>
|
||||||
<div id="panes">
|
<div id="panes">
|
||||||
<div>
|
<div>
|
||||||
<p id="switch" data-i18n-tip="popupPowerSwitchInfo" data-tip-position="under"><span class="fa"></span></p>
|
<p id="switch" data-i18n-tip="popupPowerSwitchInfo" data-tip-position="under"><span class="fa"></span></p>
|
||||||
|
|
Loading…
Reference in New Issue