From 1e57760fe1142f75c77d4d68ce13d9b90379bf9a Mon Sep 17 00:00:00 2001 From: gorhill Date: Fri, 29 May 2015 19:23:26 -0400 Subject: [PATCH] this fixes #262 --- platform/firefox/bootstrap.js | 7 +++++++ src/css/popup.css | 3 +-- src/popup.html | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/platform/firefox/bootstrap.js b/platform/firefox/bootstrap.js index c17ec3cc9..440e9e198 100644 --- a/platform/firefox/bootstrap.js +++ b/platform/firefox/bootstrap.js @@ -70,6 +70,13 @@ function startup(data, reason) { 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( hiddenDoc.createElementNS('http://www.w3.org/1999/xhtml', 'iframe') ); diff --git a/src/css/popup.css b/src/css/popup.css index e5bf6e629..715938f3a 100644 --- a/src/css/popup.css +++ b/src/css/popup.css @@ -50,7 +50,6 @@ a { #version { font-size: 10px; font-weight: normal; - margin-left: 1em; } body[dir="ltr"] #panes { direction: rtl; @@ -104,7 +103,7 @@ body.portrait[dir="ltr"] #panes > div:nth-of-type(2) { display: none; } #panes > div:nth-of-type(1) { - min-width: 150px; + min-width: 160px; padding: 0; } p { diff --git a/src/popup.html b/src/popup.html index 1f6208a00..f8defb1af 100644 --- a/src/popup.html +++ b/src/popup.html @@ -10,7 +10,7 @@ -   +