|
@ -1341,7 +1341,7 @@ vAPI.net.registerListeners = function() { |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// https://github.com/gorhill/uBlock/issues/105
|
|
|
|
|
|
|
|
|
// https://github.com/chrisaljoudi/uBlock/issues/105
|
|
|
// Allow any kind of pages
|
|
|
// Allow any kind of pages
|
|
|
vAPI.tabs.onNavigation({ |
|
|
vAPI.tabs.onNavigation({ |
|
|
frameId: 0, |
|
|
frameId: 0, |
|
@ -1619,7 +1619,7 @@ vAPI.toolbarButton.onBeforeCreated = function(doc) { |
|
|
updateTimer = null; |
|
|
updateTimer = null; |
|
|
var body = iframe.contentDocument.body; |
|
|
var body = iframe.contentDocument.body; |
|
|
panel.parentNode.style.maxWidth = 'none'; |
|
|
panel.parentNode.style.maxWidth = 'none'; |
|
|
// https://github.com/gorhill/uBlock/issues/730
|
|
|
|
|
|
|
|
|
// https://github.com/chrisaljoudi/uBlock/issues/730
|
|
|
// Voodoo programming: this recipe works
|
|
|
// Voodoo programming: this recipe works
|
|
|
panel.style.height = iframe.style.height = body.clientHeight.toString() + 'px'; |
|
|
panel.style.height = iframe.style.height = body.clientHeight.toString() + 'px'; |
|
|
panel.style.width = iframe.style.width = body.clientWidth.toString() + 'px'; |
|
|
panel.style.width = iframe.style.width = body.clientWidth.toString() + 'px'; |
|
@ -1715,7 +1715,7 @@ vAPI.contextMenu.displayMenuItem = function({target}) { |
|
|
var menuitem = doc.getElementById(vAPI.contextMenu.menuItemId); |
|
|
var menuitem = doc.getElementById(vAPI.contextMenu.menuItemId); |
|
|
var currentURI = gContextMenu.browser.currentURI; |
|
|
var currentURI = gContextMenu.browser.currentURI; |
|
|
|
|
|
|
|
|
// https://github.com/gorhill/uBlock/issues/105
|
|
|
|
|
|
|
|
|
// https://github.com/chrisaljoudi/uBlock/issues/105
|
|
|
// TODO: Should the element picker works on any kind of pages?
|
|
|
// TODO: Should the element picker works on any kind of pages?
|
|
|
if ( !currentURI.schemeIs('http') && !currentURI.schemeIs('https') ) { |
|
|
if ( !currentURI.schemeIs('http') && !currentURI.schemeIs('https') ) { |
|
|
menuitem.hidden = true; |
|
|
menuitem.hidden = true; |
|
|