mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-02 08:52:45 +01:00
Firefox: minor changes
This commit is contained in:
parent
e20458a00f
commit
8bb0d3276b
@ -1 +1 @@
|
|||||||
content ublock ./
|
content ublock ./
|
||||||
|
@ -36,7 +36,7 @@ let getMessager = function(win) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let contentPolicy = {
|
let contentPolicy = {
|
||||||
classDescription: 'ContentPolicy implementation',
|
classDescription: 'content-policy implementation for ' + appName,
|
||||||
classID: Components.ID('{e6d173c8-8dbf-4189-a6fd-189e8acffd27}'),
|
classID: Components.ID('{e6d173c8-8dbf-4189-a6fd-189e8acffd27}'),
|
||||||
contractID: '@' + appName + '/content-policy;1',
|
contractID: '@' + appName + '/content-policy;1',
|
||||||
ACCEPT: Ci.nsIContentPolicy.ACCEPT,
|
ACCEPT: Ci.nsIContentPolicy.ACCEPT,
|
||||||
|
@ -253,9 +253,9 @@ var windowWatcher = {
|
|||||||
this.removeEventListener(e.type, windowWatcher.onReady);
|
this.removeEventListener(e.type, windowWatcher.onReady);
|
||||||
}
|
}
|
||||||
|
|
||||||
var docElement = this.document.documentElement;
|
var wintype = this.document.documentElement.getAttribute('windowtype');
|
||||||
|
|
||||||
if (docElement.getAttribute('windowtype') !== 'navigator:browser') {
|
if (wintype !== 'navigator:browser') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -637,8 +637,7 @@ vAPI.toolbarButton.add = function(doc) {
|
|||||||
var iframe = panel.appendChild(doc.createElement('iframe'));
|
var iframe = panel.appendChild(doc.createElement('iframe'));
|
||||||
iframe.setAttribute('type', 'content');
|
iframe.setAttribute('type', 'content');
|
||||||
|
|
||||||
panel.style.cssText = iframe.style.cssText
|
panel.style.overflow = iframe.style.overflow = 'hidden';
|
||||||
= 'width: 180px; height: 310px; transition: width .1s, height .1s; overflow: hidden';
|
|
||||||
|
|
||||||
doc.getElementById('PanelUI-multiView')
|
doc.getElementById('PanelUI-multiView')
|
||||||
.appendChild(panel)
|
.appendChild(panel)
|
||||||
@ -698,6 +697,11 @@ vAPI.toolbarButton.add = function(doc) {
|
|||||||
'color: #fff;',
|
'color: #fff;',
|
||||||
'background: #666;',
|
'background: #666;',
|
||||||
'content: attr(badge);',
|
'content: attr(badge);',
|
||||||
|
'}',
|
||||||
|
'#' + this.panelId + ', #' + this.panelId + ' > iframe {',
|
||||||
|
'width: 180px;',
|
||||||
|
'height: 310px;',
|
||||||
|
'transition: width .1s, height .1s;',
|
||||||
'}'
|
'}'
|
||||||
].join(''));
|
].join(''));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user