mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 08:48:39 +09:00
Merge remote-tracking branch 'origin/tracking' into custom
This commit is contained in:
commit
33981efb44
15 changed files with 231 additions and 70 deletions
|
|
@ -39,12 +39,24 @@
|
|||
display: -moz-box;
|
||||
}
|
||||
|
||||
.tab-label[pinned] {
|
||||
.tab-label {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.tab-label-container {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.tab-label-container[pinned] {
|
||||
width: 0;
|
||||
margin-left: 0 !important;
|
||||
margin-right: 0 !important;
|
||||
padding-left: 0 !important;
|
||||
padding-right: 0 !important;
|
||||
}
|
||||
|
||||
.tab-label-container[textoverflow]:not([pinned]) {
|
||||
mask-image: linear-gradient(to left, transparent, black 1em);
|
||||
}
|
||||
|
||||
.tab-label-container[textoverflow]:not([pinned]):-moz-locale-dir(rtl) {
|
||||
mask-image: linear-gradient(to right, transparent, black 1em);
|
||||
}
|
||||
|
||||
.tab-stack {
|
||||
|
|
|
|||
|
|
@ -1400,8 +1400,7 @@
|
|||
<body>
|
||||
<![CDATA[
|
||||
aTab.label = this.mStringBundle.getString("tabs.connecting");
|
||||
aTab.crop = "end";
|
||||
this._tabAttrModified(aTab, ["label", "crop"]);
|
||||
this._tabAttrModified(aTab, ["label"]);
|
||||
]]>
|
||||
</body>
|
||||
</method>
|
||||
|
|
@ -1411,7 +1410,6 @@
|
|||
<body>
|
||||
<![CDATA[
|
||||
var browser = this.getBrowserForTab(aTab);
|
||||
var crop = "end";
|
||||
var title = browser.contentTitle;
|
||||
|
||||
if (!title) {
|
||||
|
|
@ -1433,9 +1431,6 @@
|
|||
.getService(Components.interfaces.nsITextToSubURI);
|
||||
title = textToSubURI.unEscapeNonAsciiURI(characterSet, title);
|
||||
} catch (ex) { /* Do nothing. */ }
|
||||
|
||||
crop = "center";
|
||||
|
||||
} else if (aTab.hasAttribute("customizemode")) {
|
||||
let brandBundle = document.getElementById("bundle_brand");
|
||||
let brandShortName = brandBundle.getString("brandShortName");
|
||||
|
|
@ -1445,13 +1440,11 @@
|
|||
title = this.mStringBundle.getString("tabs.emptyTabTitle");
|
||||
}
|
||||
|
||||
if (aTab.label == title &&
|
||||
aTab.crop == crop)
|
||||
if (aTab.label == title)
|
||||
return false;
|
||||
|
||||
aTab.label = title;
|
||||
aTab.crop = crop;
|
||||
this._tabAttrModified(aTab, ["label", "crop"]);
|
||||
this._tabAttrModified(aTab, ["label"]);
|
||||
|
||||
if (aTab.selected)
|
||||
this.updateTitlebar();
|
||||
|
|
@ -2151,7 +2144,6 @@
|
|||
ContextualIdentityService.setTabStyle(t);
|
||||
}
|
||||
|
||||
t.setAttribute("crop", "end");
|
||||
t.setAttribute("onerror", "this.removeAttribute('image');");
|
||||
|
||||
if (aSkipBackgroundNotify) {
|
||||
|
|
@ -5175,6 +5167,9 @@
|
|||
|
||||
<handlers>
|
||||
<handler event="underflow" phase="capturing"><![CDATA[
|
||||
if (event.target != this)
|
||||
return;
|
||||
|
||||
if (event.detail == 0)
|
||||
return; // Ignore vertical events
|
||||
|
||||
|
|
@ -5190,6 +5185,9 @@
|
|||
tabs._positionPinnedTabs();
|
||||
]]></handler>
|
||||
<handler event="overflow"><![CDATA[
|
||||
if (event.target != this)
|
||||
return;
|
||||
|
||||
if (event.detail == 0)
|
||||
return; // Ignore vertical events
|
||||
|
||||
|
|
@ -5243,7 +5241,6 @@
|
|||
|
||||
var tab = this.firstChild;
|
||||
tab.label = this.tabbrowser.mStringBundle.getString("tabs.emptyTabTitle");
|
||||
tab.setAttribute("crop", "end");
|
||||
tab.setAttribute("onerror", "this.removeAttribute('image');");
|
||||
|
||||
window.addEventListener("resize", this, false);
|
||||
|
|
@ -6545,10 +6542,15 @@
|
|||
anonid="overlay-icon"
|
||||
class="tab-icon-overlay"
|
||||
role="presentation"/>
|
||||
<xul:label flex="1"
|
||||
xbl:inherits="value=label,crop,accesskey,fadein,pinned,selected=visuallyselected,attention"
|
||||
class="tab-text tab-label"
|
||||
role="presentation"/>
|
||||
<xul:hbox class="tab-label-container"
|
||||
xbl:inherits="pinned,selected=visuallyselected"
|
||||
onoverflow="this.setAttribute('textoverflow', 'true');"
|
||||
onunderflow="this.removeAttribute('textoverflow');"
|
||||
flex="1">
|
||||
<xul:label class="tab-text tab-label"
|
||||
xbl:inherits="xbl:text=label,accesskey,fadein,pinned,selected=visuallyselected,attention"
|
||||
role="presentation"/>
|
||||
</xul:hbox>
|
||||
<xul:image xbl:inherits="soundplaying,soundplaying-scheduledremoval,pinned,muted,blocked,selected=visuallyselected"
|
||||
anonid="soundplaying-icon"
|
||||
class="tab-icon-sound"
|
||||
|
|
@ -6925,7 +6927,7 @@
|
|||
<parameter name="aTab"/>
|
||||
<body><![CDATA[
|
||||
aMenuitem.setAttribute("label", aTab.label);
|
||||
aMenuitem.setAttribute("crop", aTab.getAttribute("crop"));
|
||||
aMenuitem.setAttribute("crop", "end");
|
||||
|
||||
if (aTab.hasAttribute("busy")) {
|
||||
aMenuitem.setAttribute("busy", aTab.getAttribute("busy"));
|
||||
|
|
|
|||
|
|
@ -1,20 +1,23 @@
|
|||
#define GUAO_PREF general.useragent.override
|
||||
|
||||
#define GRE_VERSION @MOZILLA_UAVERSION_U@
|
||||
#define GRE_VERSION_SLICE Goanna/@GRE_VERSION@
|
||||
#define GRE_DATE_SLICE Goanna/20170101
|
||||
#define UXP_VERSION @MOZILLA_UAVERSION_U@
|
||||
#define UXP_VERSION_SLICE Goanna/@UXP_VERSION@
|
||||
#define UXP_DATE_SLICE Goanna/20170101
|
||||
#define APP_SLICE Basilisk/@MOZ_APP_VERSION@
|
||||
|
||||
#define GK_VERSION 52.9
|
||||
#define GK_SLICE Gecko/20100101
|
||||
#define FX_SLICE Firefox/@GK_VERSION@
|
||||
|
||||
#define PALE_MOON_VERSION 32.0.1
|
||||
#define PALE_MOON_SLICE PaleMoon/@PALE_MOON_VERSION@
|
||||
|
||||
// %OS_SLICE% macro is resolved at runtime, see MoonchildProductions/UXP/issues/1473
|
||||
|
||||
// Special-case AMO
|
||||
// We send the native UA slice now, since they no longer offer any compatible extensions for us.
|
||||
// This will result in an "only with Firefox" message which suits us fine, because it's the truth.
|
||||
pref("@GUAO_PREF@.addons.mozilla.org","Mozilla/5.0 (%OS_SLICE% rv:@GRE_VERSION@) @GRE_DATE_SLICE@ @APP_SLICE@");
|
||||
pref("@GUAO_PREF@.addons.mozilla.org","Mozilla/5.0 (%OS_SLICE% rv:@UXP_VERSION@) @UXP_DATE_SLICE@ @APP_SLICE@");
|
||||
|
||||
// Required for domains that are unresponsive to requests from users (or likely to be)
|
||||
pref("@GUAO_PREF@.aol.com","Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@ (Basilisk)");
|
||||
|
|
@ -22,7 +25,7 @@ pref("@GUAO_PREF@.bing.com","Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@
|
|||
pref("@GUAO_PREF@.chase.com","Mozilla/5.0 (%OS_SLICE% rv:79.0) @GK_SLICE@ Firefox/79.0");
|
||||
pref("@GUAO_PREF@.dropbox.com","Mozilla/5.0 (%OS_SLICE% rv:68.9) @GK_SLICE@ Firefox/68.9 (Basilisk)");
|
||||
pref("@GUAO_PREF@.google.com","Mozilla/5.0 (%OS_SLICE% rv:71.0) @GK_SLICE@ Firefox/71.0 @APP_SLICE@");
|
||||
pref("@GUAO_PREF@.googlevideos.com","Mozilla/5.0 (%OS_SLICE% rv:38.9) @GK_SLICE@ @GRE_VERSION_SLICE@ Firefox/38.9 @APP_SLICE@");
|
||||
pref("@GUAO_PREF@.googlevideos.com","Mozilla/5.0 (%OS_SLICE% rv:38.9) @GK_SLICE@ @UXP_VERSION_SLICE@ Firefox/38.9 @APP_SLICE@");
|
||||
pref("@GUAO_PREF@.gstatic.com","Mozilla/5.0 (%OS_SLICE% rv:71.0) @GK_SLICE@ Firefox/71.0 @APP_SLICE@");
|
||||
pref("@GUAO_PREF@.kroger.com","Mozilla/5.0 (%OS_SLICE% rv:86.0) @GK_SLICE@ Firefox/86.0 (Basilisk)");
|
||||
pref("@GUAO_PREF@.live.com","Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@ (Basilisk)");
|
||||
|
|
@ -38,24 +41,23 @@ pref("@GUAO_PREF@.calendar.yahoo.com","Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@)
|
|||
// For Amazon Prime videos
|
||||
pref("@GUAO_PREF@.www.amazon.com","Mozilla/5.0 (%OS_SLICE% rv:45.9) @GK_SLICE@ Firefox/45.9 (Basilisk)");
|
||||
// Soundcloud uses Firefox-exclusive combinations of code. Never pass Firefox slice.
|
||||
pref("@GUAO_PREF@.soundcloud.com","Mozilla/5.0 (%OS_SLICE% rv:@GRE_VERSION@) @GRE_DATE_SLICE@ @APP_SLICE@");
|
||||
// Daily motion only likes strict Firefox UAs
|
||||
pref("@GUAO_PREF@.dailymotion.com","Mozilla/5.0 (%OS_SLICE% rv:52.0) @GK_SLICE@ Firefox/52.0");
|
||||
pref("@GUAO_PREF@.soundcloud.com","Mozilla/5.0 (%OS_SLICE% rv:@UXP_VERSION@) @UXP_DATE_SLICE@ @APP_SLICE@");
|
||||
pref("@GUAO_PREF@.players.brightcove.net","Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko");
|
||||
// Google fonts serves physically different fonts to later Firefox versions that render incorrectly unless on Gecko
|
||||
pref("@GUAO_PREF@.fonts.googleapis.com", "Mozilla/5.0 (%OS_SLICE% rv:61.9) Gecko/20100101 Firefox/61.9");
|
||||
|
||||
// The following requires native mode. Or it blocks.. "too old firefox", breakage, etc.
|
||||
pref("@GUAO_PREF@.deviantart.com","Mozilla/5.0 (%OS_SLICE% rv:@GRE_VERSION@) @GRE_DATE_SLICE@ @APP_SLICE@");
|
||||
pref("@GUAO_PREF@.deviantart.net","Mozilla/5.0 (%OS_SLICE% rv:@GRE_VERSION@) @GRE_DATE_SLICE@ @APP_SLICE@");
|
||||
pref("@GUAO_PREF@.altibox.dk","Mozilla/5.0 (%OS_SLICE% rv:@GRE_VERSION@) @GRE_DATE_SLICE@ @APP_SLICE@");
|
||||
pref("@GUAO_PREF@.altibox.no","Mozilla/5.0 (%OS_SLICE% rv:@GRE_VERSION@) @GRE_DATE_SLICE@ @APP_SLICE@");
|
||||
pref("@GUAO_PREF@.firefox.com","Mozilla/5.0 (%OS_SLICE% rv:@GRE_VERSION@) @GRE_DATE_SLICE@ @APP_SLICE@");
|
||||
pref("@GUAO_PREF@.mozilla.org","Mozilla/5.0 (%OS_SLICE% rv:@GRE_VERSION@) @GRE_DATE_SLICE@ @APP_SLICE@");
|
||||
pref("@GUAO_PREF@.mozilla.com","Mozilla/5.0 (%OS_SLICE% rv:@GRE_VERSION@) @GRE_DATE_SLICE@ @APP_SLICE@");
|
||||
pref("@GUAO_PREF@.github.com","Mozilla/5.0 (%OS_SLICE% rv:@GRE_VERSION@) @GRE_DATE_SLICE@ @APP_SLICE@");
|
||||
pref("@GUAO_PREF@.spotify.com","Mozilla/5.0 (%OS_SLICE% rv:@GRE_VERSION@) @GRE_DATE_SLICE@ @APP_SLICE@");
|
||||
pref("@GUAO_PREF@.twitter.com","Mozilla/5.0 (%OS_SLICE% rv:@GRE_VERSION@) @GRE_DATE_SLICE@ @APP_SLICE@");
|
||||
pref("@GUAO_PREF@.deviantart.com","Mozilla/5.0 (%OS_SLICE% rv:@UXP_VERSION@) @UXP_DATE_SLICE@ @APP_SLICE@");
|
||||
pref("@GUAO_PREF@.deviantart.net","Mozilla/5.0 (%OS_SLICE% rv:@UXP_VERSION@) @UXP_DATE_SLICE@ @APP_SLICE@");
|
||||
pref("@GUAO_PREF@.altibox.dk","Mozilla/5.0 (%OS_SLICE% rv:@UXP_VERSION@) @UXP_DATE_SLICE@ @APP_SLICE@");
|
||||
pref("@GUAO_PREF@.altibox.no","Mozilla/5.0 (%OS_SLICE% rv:@UXP_VERSION@) @UXP_DATE_SLICE@ @APP_SLICE@");
|
||||
pref("@GUAO_PREF@.firefox.com","Mozilla/5.0 (%OS_SLICE% rv:@UXP_VERSION@) @UXP_DATE_SLICE@ @APP_SLICE@");
|
||||
pref("@GUAO_PREF@.mozilla.org","Mozilla/5.0 (%OS_SLICE% rv:@UXP_VERSION@) @UXP_DATE_SLICE@ @APP_SLICE@");
|
||||
pref("@GUAO_PREF@.mozilla.com","Mozilla/5.0 (%OS_SLICE% rv:@UXP_VERSION@) @UXP_DATE_SLICE@ @APP_SLICE@");
|
||||
pref("@GUAO_PREF@.github.com","Mozilla/5.0 (%OS_SLICE% rv:@UXP_VERSION@) @UXP_DATE_SLICE@ @APP_SLICE@");
|
||||
pref("@GUAO_PREF@.spotify.com","Mozilla/5.0 (%OS_SLICE% rv:@UXP_VERSION@) @UXP_DATE_SLICE@ @APP_SLICE@");
|
||||
pref("@GUAO_PREF@.twitter.com","Mozilla/5.0 (%OS_SLICE% rv:@UXP_VERSION@) @UXP_DATE_SLICE@ @APP_SLICE@");
|
||||
pref("@GUAO_PREF@.zoho.com","Mozilla/5.0 (%OS_SLICE% rv:@UXP_VERSION@) @UXP_DATE_SLICE@ @APP_SLICE@");
|
||||
|
||||
// UA-Sniffing domains below have indicated no interest in supporting Basilisk (BOO!)
|
||||
pref("@GUAO_PREF@.humblebundle.com","Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@ (Basilisk)");
|
||||
|
|
@ -69,7 +71,7 @@ pref("@GUAO_PREF@.mewe.com", "Mozilla/5.0 (%OS_SLICE% rv:102.0) Gecko/20100101 F
|
|||
// UA-sniffing domains that are "app/vendor-specific" and do not like Basilisk
|
||||
pref("@GUAO_PREF@.web.whatsapp.com","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36");
|
||||
pref("@GUAO_PREF@.youtube.com","Mozilla/5.0 (%OS_SLICE% rv:60.0) @GK_SLICE@ Firefox/60.0");
|
||||
pref("@GUAO_PREF@.studio.youtube.com","Mozilla/5.0 (%OS_SLICE% rv:68.0) @GK_SLICE@ @GRE_VERSION_SLICE@ Firefox/68.0 @APP_SLICE@");
|
||||
pref("@GUAO_PREF@.studio.youtube.com","Mozilla/5.0 (%OS_SLICE% rv:68.0) @GK_SLICE@ @UXP_VERSION_SLICE@ Firefox/68.0 @APP_SLICE@");
|
||||
pref("@GUAO_PREF@.gaming.youtube.com","Mozilla/5.0 (%OS_SLICE% rv:71.0) @GK_SLICE@ Firefox/71.0");
|
||||
|
||||
// The following domains do not like the Goanna slice
|
||||
|
|
@ -78,5 +80,7 @@ pref("@GUAO_PREF@.yuku.com","Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@
|
|||
|
||||
// Domains Basilisk overrides that are not in the Pale Moon overrides
|
||||
pref("@GUAO_PREF@.slack.com","Mozilla/5.0 (%OS_SLICE% rv:100.0) @GK_SLICE@ Firefox/100.0 @APP_SLICE@");
|
||||
// There are multiple addons on the Pale Moon addons site that work with Basilisk that are not listed on the Basilisk addons site.
|
||||
pref("@GUAO_PREF@.addons.palemoon.org","Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @UXP_VERSION_SLICE@ @FX_SLICE@ @PALE_MOON_SLICE@");
|
||||
|
||||
// ============================================================================
|
||||
|
|
|
|||
|
|
@ -10,8 +10,9 @@ MOZ_AUSTRALIS=1
|
|||
MC_BASILISK=1
|
||||
MOZ_UPDATER=
|
||||
|
||||
if test "$OS_ARCH" = "WINNT" -o \
|
||||
"$OS_ARCH" = "Linux"; then
|
||||
if test "$MOZ_WIDGET_TOOLKIT" = "windows" -o \
|
||||
"$MOZ_WIDGET_TOOLKIT" = "gtk2" -o \
|
||||
"$MOZ_WIDGET_TOOLKIT" = "gtk3"; then
|
||||
MOZ_BUNDLED_FONTS=1
|
||||
fi
|
||||
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@
|
|||
@RESPATH@/chrome/@AB_CD@@JAREXT@
|
||||
@RESPATH@/chrome/@AB_CD@.manifest
|
||||
@RESPATH@/dictionaries/*
|
||||
#if defined(XP_WIN) || defined(XP_LINUX)
|
||||
#if defined(XP_WIN) || defined(MOZ_WIDGET_GTK)
|
||||
@RESPATH@/fonts/*
|
||||
#endif
|
||||
@RESPATH@/hyphenation/*
|
||||
|
|
|
|||
|
|
@ -2404,6 +2404,7 @@ toolbarbutton.chevron > .toolbarbutton-menu-dropmarker {
|
|||
.tab-label {
|
||||
margin-top: 1px;
|
||||
margin-bottom: 0;
|
||||
-moz-box-flex: 1;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
|
@ -2503,7 +2504,7 @@ toolbarbutton.chevron > .toolbarbutton-menu-dropmarker {
|
|||
opacity: 0.9999;
|
||||
}
|
||||
|
||||
.tab-label:not([selected="true"]) {
|
||||
.tab-label-container:not([selected="true"]) {
|
||||
opacity: .7;
|
||||
}
|
||||
|
||||
|
|
@ -2529,7 +2530,7 @@ toolbarbutton.chevron > .toolbarbutton-menu-dropmarker {
|
|||
border-width: 0 11px;
|
||||
}
|
||||
|
||||
.tabbrowser-tab:focus > .tab-stack > .tab-content > .tab-label:not([pinned]),
|
||||
.tabbrowser-tab:focus > .tab-stack > .tab-content > .tab-label-container:not([pinned]),
|
||||
.tabbrowser-tab:focus > .tab-stack > .tab-content > .tab-icon-image[pinned],
|
||||
.tabbrowser-tab:focus > .tab-stack > .tab-content > .tab-throbber[pinned] {
|
||||
box-shadow: @focusRingShadow@;
|
||||
|
|
|
|||
|
|
@ -192,7 +192,7 @@
|
|||
}
|
||||
|
||||
.tab-close-button {
|
||||
margin-inline-start: 4px;
|
||||
margin-inline-start: 2px;
|
||||
margin-inline-end: -2px;
|
||||
padding: 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -479,6 +479,10 @@ pref("browser.tabs.delayHidingAudioPlayingIconMS", 3000);
|
|||
// window is enabled.
|
||||
pref("browser.tabs.allowTabDetach", true);
|
||||
|
||||
// Whether to fade tab labels instead of using ellipses when cutting off
|
||||
// long page titles.
|
||||
pref("browser.tabs.fadeLabels", true);
|
||||
|
||||
pref("browser.allTabs.previews", true);
|
||||
pref("browser.allTabs.hidePinnedTabs", false);
|
||||
pref("browser.ctrlTab.previews", true);
|
||||
|
|
|
|||
|
|
@ -82,6 +82,16 @@ tabbrowser {
|
|||
transition: transform 200ms ease-out;
|
||||
}
|
||||
|
||||
@supports -moz-bool-pref("browser.tabs.fadeLabels") {
|
||||
.tabbrowser-tab .tab-text[_is_cropped] {
|
||||
mask-image: linear-gradient(to left, transparent, black 2em);
|
||||
}
|
||||
|
||||
.tabbrowser-tab .tab-text[_is_cropped]:-moz-locale-dir(rtl) {
|
||||
mask-image: linear-gradient(to right, transparent, black 2em);
|
||||
}
|
||||
}
|
||||
|
||||
#alltabs-popup {
|
||||
-moz-binding: url("chrome://browser/content/tabbrowser.xml#tabbrowser-alltabs-popup");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1260,7 +1260,11 @@
|
|||
<body>
|
||||
<![CDATA[
|
||||
aTab.label = this.mStringBundle.getString("tabs.connecting");
|
||||
aTab.crop = "end";
|
||||
if (Services.prefs.getBoolPref("browser.tabs.fadeLabels")) {
|
||||
aTab.crop = "clip";
|
||||
} else {
|
||||
aTab.crop = "end";
|
||||
}
|
||||
this._tabAttrModified(aTab, ["label", "crop"]);
|
||||
]]>
|
||||
</body>
|
||||
|
|
@ -1300,6 +1304,10 @@
|
|||
title = this.mStringBundle.getString("tabs.emptyTabTitle");
|
||||
}
|
||||
|
||||
if (Services.prefs.getBoolPref("browser.tabs.fadeLabels")) {
|
||||
crop = "clip";
|
||||
}
|
||||
|
||||
if (aTab.label == title &&
|
||||
aTab.crop == crop)
|
||||
return false;
|
||||
|
|
@ -1527,7 +1535,11 @@
|
|||
else
|
||||
t.setAttribute("label", aURI);
|
||||
|
||||
t.setAttribute("crop", "end");
|
||||
if (Services.prefs.getBoolPref("browser.tabs.fadeLabels")) {
|
||||
t.setAttribute("crop", "clip");
|
||||
} else {
|
||||
t.setAttribute("crop", "end");
|
||||
}
|
||||
t.setAttribute("validate", "never"); //PMed
|
||||
t.setAttribute("onerror", "this.removeAttribute('image');");
|
||||
|
||||
|
|
@ -3611,7 +3623,11 @@
|
|||
var tab = this.firstChild;
|
||||
tab.setAttribute("label",
|
||||
this.tabbrowser.mStringBundle.getString("tabs.emptyTabTitle"));
|
||||
tab.setAttribute("crop", "end");
|
||||
if (Services.prefs.getBoolPref("browser.tabs.fadeLabels")) {
|
||||
tab.setAttribute("crop", "clip");
|
||||
} else {
|
||||
tab.setAttribute("crop", "end");
|
||||
}
|
||||
tab.setAttribute("onerror", "this.removeAttribute('image');");
|
||||
this.adjustTabstrip();
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
#define GRE_VERSION @MOZILLA_UAVERSION_U@
|
||||
#define GRE_VERSION_SLICE Goanna/@GRE_VERSION@
|
||||
#define GRE_DATE_SLICE Goanna/20170101
|
||||
#define GRE_DATE_SLICE Goanna/20230101
|
||||
#define PM_SLICE PaleMoon/@MOZ_APP_VERSION@
|
||||
|
||||
#define GK_VERSION @MOZILLA_COMPATVERSION_U@
|
||||
|
|
@ -23,9 +23,6 @@ pref("@GUAO_PREF@.aol.com","Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@
|
|||
pref("@GUAO_PREF@.bing.com","Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@ (Pale Moon)");
|
||||
pref("@GUAO_PREF@.chase.com","Mozilla/5.0 (%OS_SLICE% rv:79.0) @GK_SLICE@ Firefox/79.0");
|
||||
pref("@GUAO_PREF@.dropbox.com","Mozilla/5.0 (%OS_SLICE% rv:68.9) @GK_SLICE@ Firefox/68.9 (Pale Moon)");
|
||||
pref("@GUAO_PREF@.google.com","Mozilla/5.0 (%OS_SLICE% rv:71.0) @GK_SLICE@ Firefox/71.0 @PM_SLICE@");
|
||||
pref("@GUAO_PREF@.googlevideos.com","Mozilla/5.0 (%OS_SLICE% rv:38.9) @GK_SLICE@ @GRE_VERSION_SLICE@ Firefox/38.9 @PM_SLICE@");
|
||||
pref("@GUAO_PREF@.gstatic.com","Mozilla/5.0 (%OS_SLICE% rv:71.0) @GK_SLICE@ Firefox/71.0 @PM_SLICE@");
|
||||
pref("@GUAO_PREF@.kroger.com","Mozilla/5.0 (%OS_SLICE% rv:86.0) @GK_SLICE@ Firefox/86.0 (Pale Moon)");
|
||||
pref("@GUAO_PREF@.live.com","Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@ (Pale Moon)");
|
||||
pref("@GUAO_PREF@.msn.com","Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@ (Pale Moon)");
|
||||
|
|
@ -41,8 +38,6 @@ pref("@GUAO_PREF@.calendar.yahoo.com","Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@)
|
|||
pref("@GUAO_PREF@.www.amazon.com","Mozilla/5.0 (%OS_SLICE% rv:45.9) @GK_SLICE@ Firefox/45.9 (Pale Moon)");
|
||||
// Soundcloud uses Firefox-exclusive combinations of code. Never pass Firefox slice.
|
||||
pref("@GUAO_PREF@.soundcloud.com","Mozilla/5.0 (%OS_SLICE% rv:@GRE_VERSION@) @GRE_DATE_SLICE@ @PM_SLICE@");
|
||||
// Daily motion only likes strict Firefox UAs
|
||||
pref("@GUAO_PREF@.dailymotion.com","Mozilla/5.0 (%OS_SLICE% rv:52.0) @GK_SLICE@ Firefox/52.0");
|
||||
pref("@GUAO_PREF@.players.brightcove.net","Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko");
|
||||
// Google fonts serves physically different fonts to later Firefox versions that render incorrectly unless on Gecko
|
||||
pref("@GUAO_PREF@.fonts.googleapis.com", "Mozilla/5.0 (%OS_SLICE% rv:61.9) Gecko/20100101 Firefox/61.9");
|
||||
|
|
@ -67,13 +62,12 @@ pref("@GUAO_PREF@.citi.com","Mozilla/5.0 (%OS_SLICE% rv:68.0) @GK_SLICE@ Firefox
|
|||
pref("@GUAO_PREF@.facebook.com","Mozilla/5.0 (%OS_SLICE% rv:68.0) @GK_SLICE@ Firefox/68.0 @PM_SLICE@");
|
||||
pref("@GUAO_PREF@.netflix.com","Mozilla/5.0 (Windows NT 6.1; rv:45.9) @GK_SLICE@ Firefox/45.9");
|
||||
pref("@GUAO_PREF@.netflximg.net","Mozilla/5.0 (Windows NT 6.1; rv:45.9) @GK_SLICE@ Firefox/45.9");
|
||||
pref("@GUAO_PREF@.mewe.com", "Mozilla/5.0 (%OS_SLICE% rv:102.0) Gecko/20100101 Firefox/102.0");
|
||||
pref("@GUAO_PREF@.mewe.com", "Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@");
|
||||
|
||||
// UA-sniffing domains that are "app/vendor-specific" and do not like Pale Moon
|
||||
pref("@GUAO_PREF@.web.whatsapp.com","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36");
|
||||
pref("@GUAO_PREF@.youtube.com","Mozilla/5.0 (%OS_SLICE% rv:60.0) @GK_SLICE@ Firefox/60.0");
|
||||
pref("@GUAO_PREF@.studio.youtube.com","Mozilla/5.0 (%OS_SLICE% rv:68.0) @GK_SLICE@ @GRE_VERSION_SLICE@ Firefox/68.0 @PM_SLICE@");
|
||||
pref("@GUAO_PREF@.gaming.youtube.com","Mozilla/5.0 (%OS_SLICE% rv:71.0) @GK_SLICE@ Firefox/71.0");
|
||||
pref("@GUAO_PREF@.youtube.com","Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@");
|
||||
pref("@GUAO_PREF@.studio.youtube.com","Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @GRE_VERSION_SLICE@ @FX_SLICE@ @PM_SLICE@");
|
||||
|
||||
// The following domains do not like the Goanna slice
|
||||
pref("@GUAO_PREF@.hitbox.tv","Mozilla/5.0 (%OS_SLICE% rv:@GK_VERSION@) @GK_SLICE@ @FX_SLICE@");
|
||||
|
|
|
|||
|
|
@ -3045,6 +3045,9 @@ var SessionStoreInternal = {
|
|||
tab.label = activePageData.url;
|
||||
tab.crop = "center";
|
||||
}
|
||||
if (this._prefBranch.getBoolPref("tabs.fadeLabels")) {
|
||||
tab.crop = "clip";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue