Browse Source
this extends compatibility to FF-24-34
this extends compatibility to FF-24-34
imported code from uBlock, including legacy toolbar support inpull/2/head34485a0465
, which is itself directly based on work from @AlexVallat: -620a7d78d1
-d9b23d4f10
-5ac4ec21e9
gorhill
10 years ago
6 changed files with 846 additions and 219 deletions
-
46platform/firefox/css/legacy-toolbar-button.css
-
66platform/firefox/frameModule.js
-
2platform/firefox/install.rdf
-
918platform/firefox/vapi-background.js
-
32platform/firefox/vapi-common.js
-
1tools/make-firefox.sh
@ -0,0 +1,46 @@ |
|||
#umatrix-legacy-button { |
|||
list-style-image: url('../img/browsericons/icon19-19.png'); |
|||
} |
|||
#umatrix-legacy-button.off { |
|||
list-style-image: url('../img/browsericons/icon19-off.png'); |
|||
} |
|||
|
|||
toolbar[iconsize="small"] #umatrix-legacy-button { |
|||
list-style-image: url('../img/browsericons/icon19-19.png'); |
|||
} |
|||
toolbar[iconsize="small"] #umatrix-legacy-button.off { |
|||
list-style-image: url('../img/browsericons/icon19-off.png'); |
|||
} |
|||
#umatrix-legacy-button[badge]::before { |
|||
background: #000; |
|||
color: #fff; |
|||
content: attr(badge); |
|||
font: bold 10px sans-serif; |
|||
margin-top: -2px; |
|||
padding: 0 2px; |
|||
position: fixed; |
|||
} |
|||
/* This hack required because if the before content changes it de-pops the |
|||
popup (without firing any events). So just hide it instead. Note, can't |
|||
actually *hide* it, or the same thing happens. |
|||
**/ |
|||
#umatrix-legacy-button[badge=""]::before { |
|||
padding: 0; |
|||
} |
|||
|
|||
/* Override off state when in palette */ |
|||
toolbarpaletteitem #umatrix-legacy-button.off { |
|||
list-style-image: url('../img/browsericons/icon19-12.png'); |
|||
} |
|||
|
|||
/* Override badge when in palette */ |
|||
toolbarpaletteitem #umatrix-legacy-button[badge]::before { |
|||
content: none; |
|||
} |
|||
|
|||
/* Prevent pale moon from showing the arrow underneath the button */ |
|||
/* https://github.com/chrisaljoudi/uBlock/issues/1449#issuecomment-112112761 */ |
|||
#umatrix-legacy-button .toolbarbutton-menu-dropmarker { |
|||
display: none; |
|||
-moz-box-orient: horizontal; |
|||
} |
918
platform/firefox/vapi-background.js
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
Write
Preview
Loading…
Cancel
Save
Reference in new issue