Skip to content

Commit

Permalink
Delete un supported CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
surapunoyousei committed Jul 23, 2022
1 parent a7da9c4 commit 367b681
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 24 deletions.
21 changes: 1 addition & 20 deletions browser/base/content/browser-UI-custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,23 +119,4 @@ Services.prefs.addObserver("floorp.bookmarks.bar.focus.mode", function(){
menuid.remove();
}
}
)
if (Services.prefs.getBoolPref("floorp.legacy.menu.mode", false)) {
var Tag = document.createElement("style");
Tag.innerText = `@import url(chrome://browser/skin/optioncss/legacy_firefox_menu_mode.css)`
document.getElementsByTagName('head')[0].insertAdjacentElement('beforeend',Tag);
Tag.setAttribute('id', 'sub-title');
}
Services.prefs.addObserver("floorp.legacy.menu.mode", function(){
if (Services.prefs.getBoolPref("floorp.legacy.menu.mode", false)) {
var Tag = document.createElement("style");
Tag.innerText = `@import url(chrome://browser/skin/optioncss/legacy_firefox_menu_mode.css)`
document.getElementsByTagName('head')[0].insertAdjacentElement('beforeend',Tag);
Tag.setAttribute("id", "sub-title");
}
else {
const menuid =document.getElementById("sub-title");
menuid.remove();
}
}
)
)
4 changes: 0 additions & 4 deletions browser/components/preferences/main.inc.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,6 @@

<label><html:h2 data-l10n-id="other-preference"/></label>

<hbox>
<description data-l10n-id="classic-menu-mode"></description>
<checkbox preference="floorp.legacy.menu.mode" />
</hbox>
<hbox>
<description data-l10n-id="material-effect"></description>
<checkbox preference="floorp.material.effect.enable"/>
Expand Down

0 comments on commit 367b681

Please sign in to comment.