- Firefox-Version
- 80.0
- Betriebssystem
- Win 10 pro 2004
Ich verwende für Screenshots manchmal das folgende Skript
Code
// Screenshot Fx 63 Site
(function() {
if (location != 'chrome://browser/content/browser.xhtml')
return;
try {
CustomizableUI.createWidget({
id: 'screenshotsite-button',
defaultArea: CustomizableUI.AREA_NAVBAR,
label: 'ScreenshotSite',
tooltiptext: 'ScreenshotSite',
onCommand: onCommand,
onCreated: function(button) {
button.style.listStyleImage = 'url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAdUlEQVQokZVSwRHAIAgLPYfoXs7RCTpG53Avt7APrhaFU8gLMEEJAkEQgFbc7IxkVjt0r6Sp7VIVITumBpKt00FA2ThmjXzkfMMWO8EZFSj8LrUyjsG9b9DaJXq+qAIVxEUxtLHpaXE95dj1NcK2rmbwaGJ4Af0tIg00j/6iAAAAAElFTkSuQmCC)';
}
});
} catch(e) { };
function onCommand(event) {
let frameScript = function() {
const string = 'moz-extension://';
let n = 0;
addEventListener('DOMContentLoaded', function onLoad(event) {
content.setTimeout(function() {
let document = event.target;
if (!document.URL.startsWith(string))
return;
if (document.getElementById('slide-overlay')) {
document.getElementById('skip').click();
return;
};
n++;
if (n == 2) {
/* document.querySelector('button.visible').click() */
document.querySelector('button.full-page').click();
} else if (n == 3) {
removeEventListener('DOMContentLoaded', onLoad);
document.querySelector('button.highlight-button-download').click();
};
}, 100);
});
};
let frameScriptURI = 'data:, (' + frameScript.toString() + ')()';
let window = event.target.ownerGlobal;
window.gBrowser.selectedBrowser.messageManager.loadFrameScript(frameScriptURI, true);
let button = window.document.getElementById('pageAction-panel-screenshots_mozilla_org');
if (button) {
button.click();
} else {
window.document.getElementById('pageActionButton').click();
window.setTimeout(function() {
window.document.getElementById('pageAction-panel-screenshots_mozilla_org').click();
}, 0);
};
};
})();
Alles anzeigen
Dies funktioniert mit FF 80 leider nicht mehr. Ich bitte um Hilfe.