- Firefox-Version
- 91.0.1 ESR
- Betriebssystem
- Windows Server 2012 R2, 2019 und 10
Hallo Zusammen,
ich habe 2x Skript dass mit Firefox 78.13 ESR funktionieren aber mit 91.0.1 ESR funktionieren teilweise.
PrintPreview.us.js
Code
(function() {
if (location != 'chrome://browser/content/browser.xhtml')
return;
try {
CustomizableUI.createWidget({
id: 'print-toolbarbutton',
type: 'custom',
defaultArea: CustomizableUI.AREA_NAVBAR,
onBuild: function(aDocument) {
var toolbaritem = aDocument.createElementNS('http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul', 'toolbarbutton');
var attrs = {
id: 'print-toolbarbutton',
class: 'chromeclass-toolbar-additional',
type: 'menu',
removable: true,
label: 'Drucken',
tooltiptext: 'Drucken'
};
for (var a in attrs)
toolbaritem.setAttribute(a, attrs[a]);
return toolbaritem;
}
});
} catch(e) { };
var css = '\
#print-toolbarbutton {list-style-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAYCAYAAADkgu3FAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAABGdBTUEAALGOfPtRkwAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAEEElEQVR42mL8//8/Az0AQACxkKJYSNmE30ZbMVRKRPgHsviBYxfv37hx/Cg+vQABxEiMjxRVLSyiIv3UXjx/aeLlYJTNyMjAhCx/9MyNHdz8Aktv3Lj979rlE2uuXLnyC90MgABiAFmED4tKaxvcunnr4r+/v/8Twr9//fxf19hdi80cgABiIuSb+OgITxUVRT18av7/+8fw4+t7hu+fXjDYWRvHYFMDEEAE40hUiFv5968fWOWAvmD4+e0jw++fXxkYmZgZmJlZGb59/SqGTS1AABG06Mv7l+xfPr2Fuvwvwz8g/v/vD8Pf3z+BQfIXaAELAxPQEmC8AcX/M3z68IYZmzkAAYTTIgkZfSemf/8/utjpC12+coNh9bpdDJKSIgxsLIwMoPQDNBNK/2eApacvX74x8HKxM0tJ6Rn/Y2SUfvH04iaYeQABhDUBGBo66p89d+HCf6ATYXjC7NX/zz/4gBd39c+Eq3/77t2X5LTieJiZAAGE1UeOzrbBuloq+r9/foOLPX7zmeHCvZd4g/n79x8MMD28XGzcVub6EUDmQhAfIICwWiQrJazwBxjByODhy/cMfwlYxP3rJwOyPk52ZmUYGyCAMCxKD3Pl1zJ3l/6D5BsQ0FVXYDDXEWPg4+ZgEOTjxLDk6Yu3DL/E1RmQ9TH//8PfVxwpW9S7/DFAAGFYJC7Eq/X3+0dFdB/l+qgDyT+gKIdiNH1SQEJKGcVHv39/F2RkYrAFMpcBBBBGhhXkYVUD5htRQiUGMRhoOCuQ1g8LC+MECCAUHzk6OrL4GYvJMjMycoD4127cZpizYBnJJbWHmyODm5MdjCuvJ84gARBAKBZpSnHzArOEBNA9YPFnz18wLF+9EZINGP5DswM8X2AXB4WKoADYImYWFlB+k+RmZZADCCAUi768+f2LUYrxyL2Hz92XLF4h8uDRE1YleWluGQkxhoT4BLih2As8Boa7t28xLFm9luHR/Qc/gfq/3334kkGM7e9WZtb/jwECCMWiRTt3fgWG5zoVWRF+FWWFGdKSwgy37txmsDMzYgiNiSUYZJdOHGY4fvokg562KruzvRn7hy1HNr69+3Fy36rV3wECCCPVrVq1CliXrJ6zbtmXiV9//mdXkpNmUFNSYPjz5xdBi1S0dRj0VBQY2Ng5GF5++MXAzs2zv2/Vqu8gOYAAwlHWhf4NimLg6G8sElJRlFSUlJLa8ff3LxFCFjGzsDIYaanOePLufZeTd8h9J2+EHEAA4S29C+v73gGpd8c2L2L+85uwj/79BZbuP7/+KWmefB9dDiCAiGozXDu2+cHVo1sEGQmo+8/A+JOB6e8lbHIAAUSURYw/GV2Y2f8J/GMGVkB4a9r/7ALsLA+wyQEEECO9mlsAAQYAq1BA/vIVsYsAAAAASUVORK5CYII=)}\
#print-toolbarbutton > dropmarker {display: none}\
#print-toolbarbutton > image{min-height: 24px}\
#print-toolbarbutton > image{min-width: 26px}\
';
var stylesheet = document.createProcessingInstruction('xml-stylesheet', 'type="text/css" href="data:text/css;utf-8,' + encodeURIComponent(css) + '"');
document.insertBefore(stylesheet, document.documentElement);
var menu, menuitem, menuseparator, menupopup;
// menupopup of toolbarbutton
menupopup = document.createXULElement('menupopup');
menupopup.id = "print-button-popup";
document.getElementById('print-toolbarbutton').appendChild(menupopup);
menuitem = document.createXULElement('menuitem');
menuitem.setAttribute('label', "Drucken…");
menuitem.setAttribute('tooltiptext', "Drucken…");
menuitem.setAttribute('accesskey', "D");
menuitem.setAttribute('command', "cmd_print");
menupopup.appendChild(menuitem);
menuitem = document.createXULElement('menuitem');
menuitem.setAttribute('label', "Druckvorschau");
menuitem.setAttribute('tooltiptext', "Druckvorschau");
menuitem.setAttribute('accesskey', "v");
menuitem.setAttribute('oncommand', "PrintUtils.printPreview(PrintPreviewListener); event.stopPropagation()");
menupopup.appendChild(menuitem);
menuseparator = document.createXULElement('menuseparator');
menupopup.appendChild(menuseparator);
menuitem = document.createXULElement('menuitem');
menuitem.setAttribute('label', "Seite einrichten…");
menuitem.setAttribute('tooltiptext', "Seite einrichten…");
menuitem.setAttribute('accesskey', "e");
menuitem.setAttribute('command', "cmd_pageSetup");
menupopup.appendChild(menuitem);
// submenu of context menu
menu = document.createXULElement('menu');
menu.id = "context-print-menu";
menu.setAttribute('label', "Drucken…");
menu.setAttribute('accesskey', "D");
document.getElementById('contentAreaContextMenu')
.insertBefore(menu, document.getElementById('context-sep-viewbgimage').nextSibling);
menupopup = document.createXULElement('menupopup');
menu.appendChild(menupopup);
menuitem = document.createXULElement('menuitem');
menuitem.id = "context-print-menu-print";
menuitem.setAttribute('label', "Drucken…");
menuitem.setAttribute('accesskey', "D");
menuitem.setAttribute('command', "cmd_print");
menupopup.appendChild(menuitem);
menuitem = document.createXULElement('menuitem');
menuitem.id = "context-print-menu-preview";
menuitem.setAttribute('label', "Druckvorschau");
menuitem.setAttribute('accesskey', "v");
menuitem.setAttribute('oncommand', "PrintUtils.printPreview(PrintPreviewListener)");
menupopup.appendChild(menuitem);
menuseparator = document.createXULElement('menuseparator');
menupopup.appendChild(menuseparator);
menuitem = document.createXULElement('menuitem');
menuitem.id = "context-print-menu-printSetup";
menuitem.setAttribute('label', "Seite einrichten…");
menuitem.setAttribute('accesskey', "e");
menuitem.setAttribute('command', "cmd_pageSetup");
menupopup.appendChild(menuitem);
})();
Alles anzeigen
Schnelleinstellungen.uc.js:
Code
(function() {
if (location != 'chrome://browser/content/browser.xhtml')
return;
try {
CustomizableUI.createWidget({
id: 'pwuco-toolbarbutton',
type: 'custom',
defaultArea: CustomizableUI.AREA_NAVBAR,
onBuild: function(aDocument) {
var toolbaritem = aDocument.createElementNS('http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul', 'toolbarbutton');
var attrs = {
id: 'pwuco-toolbarbutton',
class: 'chromeclass-toolbar-additional',
type: 'menu',
removable: true,
label: 'Passwörter usw. öffnen',
tooltiptext: 'Cookies und Zertifikate öffnen oder Chronik löschen'
};
for (var a in attrs)
toolbaritem.setAttribute(a, attrs[a]);
return toolbaritem;
}
});
CustomizableUI.registerToolbarNode(tb);
} catch(e) { };
var css = '\
#pwuco-toolbarbutton {list-style-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAq9JREFUeNp0U0toE1EUPW/mTWYSOya1FaU/0daFIEgRQbS1pQuFugiIFlyIUhdF3CpKKYKb0iK40JVo7cqNgh9cKH7A4kKQ0gqlurGCmiJBTfpLMpP3Ge9MKhQbB+4b3nv3c86597Hh24/wv09p/VhKldY6oF2w5obBMBg4N5/waoFBEEQmhExfGjgBJdQ6H9MyMXrrQbpqAsYYpJRkCp5fxvtP36jmavLVZd+ulsiH/624roJpQgcCIfzNtfWVBKziG55JJREy45p4KqXTlSTBmjKAZRq4PvYwCmLMQI3rEnSbgjVOpw9SAg0e8jx/thdGoGCsRlY0qOQJqyjGUVYWbo49x8njR6GUgk/wA01CKoLiez72DmdQVxtHTY2FuGMhETOQMAGHqBhUfbBuBAPufbCXV2ivoXecgo+dEQUUij42Jh2kam2CGUPC5khYBpywVYaNnt+jcBdeo+FAF4yYDUiBn59f4ZA7Dx7CXS74sBM2WQzxhANNVaUFlEm1YmCjPX8XTfv7SBQHz8YmCAHDkf5O7Mm9oQSEYLnggcdclEiFfIlBEQUiDuXTXREQkuR3UlEblFeAZuE+STpUuoD8isASOS2WiC9pwEyCSR2QQsMzDHj0F7ksnXP09vfQFJK4uR+00ByEM5YrSHw4l6QD2gVl6kAZGhYE24D8nW1o6OgGj3MUs/OwYjQ61IXvc18xXWgHL64sTcxOT3UNTU4ipBNqIgMTXhDHxfqraGnvhtvShqXMHGbeTcG2GCxO2jT34W1mdzRgrWQhQQzduDfppOrR1NiAjrljSDVux6bmViwuFjE/O42R7BB1RpCI4cwoiOLCBLtwbTwaHiEE8r+y48m6LWfKpHyn9RRtsY8IqI3LJfni8OWZwSrPZoH9c9BItrWKY57sS7WH90eAAQCzXjnOEP9Z6gAAAABJRU5ErkJggg==)}\
#pwuco-toolbarbutton > dropmarker {display: none}\
';
var stylesheet = document.createProcessingInstruction('xml-stylesheet', 'type="text/css" href="data:text/css;utf-8,' + encodeURIComponent(css) + '"');
document.insertBefore(stylesheet, document.documentElement);
var menu, menuitem, menuseparator, menupopup;
// menupopup of toolbarbutton
menupopup = document.createXULElement('menupopup');
menupopup.id = "pwuco-button-popup";
document.getElementById('pwuco-toolbarbutton').appendChild(menupopup);
/*
menuitem = document.createXULElement('menuitem');
menuitem.setAttribute('label', "Passwörter öffnen");
menuitem.setAttribute('tooltiptext', "Passwörter anzeigen");
// menuitem.setAttribute('accesskey', "P");
menuitem.setAttribute('oncommand', "window.open('chrome://passwordmgr/content/passwordManager.xul', 'Toolkit:PasswordManager', 'chrome,resizable=yes');");
menupopup.appendChild(menuitem);
menuitem = document.createXULElement('menuitem');
menuitem.setAttribute('label', "Cookies öffnen");
menuitem.setAttribute('tooltiptext', "Cookies anzeigen");
// menuitem.setAttribute('accesskey', "C");
menuitem.setAttribute('oncommand', "window.open('chrome://settings/content/cookies', 'Browser:Cookies', 'chrome,resizable=yes');");
menupopup.appendChild(menuitem);
*/
menuitem = document.createXULElement('menuitem');
menuitem.setAttribute('label', "Zertifikate öffnen");
menuitem.setAttribute('tooltiptext', "Zertifikate anzeigen");
// menuitem.setAttribute('accesskey', "z");
menuitem.setAttribute('oncommand', "window.open('chrome://pippki/content/certManager.xhtml', 'mozilla:certmanager', 'chrome,resizable=yes,all,width=830,height=400');");
menupopup.appendChild(menuitem);
menuseparator = document.createXULElement('menuseparator');
menupopup.appendChild(menuseparator);
menuitem = document.createXULElement('menuitem');
menuitem.setAttribute('label', "Chronik löschen");
menuitem.setAttribute('tooltiptext', "Chronik löschen");
// menuitem.setAttribute('accesskey', "l");
menuitem.setAttribute('oncommand', "window.open('chrome://browser/content/sanitize.xhtml', 'Toolkit:SanitizeDialog', 'chrome,resizable=yes');");
menupopup.appendChild(menuitem);
menuitem = document.createXULElement('menuitem');
menuitem.setAttribute('label', "Cookies öffnen");
menuitem.setAttribute('tooltiptext', "Cookies anzeigen");
//menuitem.setAttribute('accesskey', "C");
menuitem.setAttribute('oncommand', "window.open('chrome://browser/content/preferences/dialogs/siteDataSettings.xhtml', 'Browser:Cookies', 'chrome,resizable=yes');");
menupopup.appendChild(menuitem);
menuitem = document.createXULElement('menuitem');
menuitem.setAttribute('label', "Ausnahmen - Cookies öffnen");
menuitem.setAttribute('tooltiptext', "Ausnahmen - Cookies anzeigen");
//menuitem.setAttribute('accesskey', "A");
menuitem.setAttribute('oncommand', "window.open('chrome://browser/content/preferences/dialogs/permissions.xhtml', 'Browser:permissions', 'chrome,resizable=yes');");
menupopup.appendChild(menuitem);
// submenu of context menu
menu = document.createXULElement('menu');
menu.id = "context-pwuco-menu";
menu.setAttribute('label', "Schnelleinstellungen");
// menu.setAttribute('accesskey', "e");
document.getElementById('contentAreaContextMenu')
.insertBefore(menu, document.getElementById('context-sep-viewbgimage').nextSibling);
menupopup = document.createXULElement('menupopup');
menu.appendChild(menupopup);
menuitem = document.createXULElement('menuitem');
menuitem.id = "context-opencookies";
menuitem.setAttribute('label', "Cookies öffnen");
// menuitem.setAttribute('accesskey', "C");
menuitem.setAttribute('oncommand', "window.open('chrome://browser/content/preferences/dialogs/siteDataSettings.xhtml', 'Browser:Cookies', 'chrome,resizable=yes');");
menupopup.appendChild(menuitem);
menuitem = document.createXULElement('menuitem');
menuitem.setAttribute('label', "Ausnahmen - Cookies öffnen");
menuitem.setAttribute('tooltiptext', "Ausnahmen - Cookies anzeigen");
//menuitem.setAttribute('accesskey', "A");
menuitem.setAttribute('oncommand', "window.open('chrome://browser/content/preferences/dialogs/permissions.xhtml', 'Browser:permissions', 'chrome,resizable=yes');");
menupopup.appendChild(menuitem);
menuseparator = document.createXULElement('menuseparator');
menupopup.appendChild(menuseparator)
menuitem = document.createXULElement('menuitem');
menuitem.id = "context-opencert";
menuitem.setAttribute('label', "Zertifikate öffnen");
// menuitem.setAttribute('accesskey', "z");
menuitem.setAttribute('oncommand', "window.open('chrome://pippki/content/certManager.xhtml', 'mozilla:certmanager', 'chrome,resizable=yes,all,width=830,height=400');");
menupopup.appendChild(menuitem);
menuseparator = document.createXULElement('menuseparator');
menupopup.appendChild(menuseparator);
menuitem = document.createXULElement('menuitem');
menuitem.setAttribute('label', "Chronik löschen");
menuitem.setAttribute('tooltiptext', "Chronik löschen");
// menuitem.setAttribute('accesskey', "l");
menuitem.setAttribute('oncommand', "window.open('chrome://browser/content/sanitize.xhtml', 'Toolkit:SanitizeDialog', 'chrome,resizable=yes');");
menupopup.appendChild(menuitem);
})();
Alles anzeigen
Wenn ich auf Page rechte Maus klicke, kommen diese Funktionen für 91 Version nicht aber für 78 Version sind da:
78 Version:
91 Version:
Aber für beide in Toolbars sind Icons da und funktionieren!
Kann jemand bitte helfen?
Vielen Dank
Mfg