Dieses Skript lädt nicht mehr:
Teste bitte:
JavaScript
// ublock_in_new_tab.uc.js
(function() {
if (location != 'chrome://browser/content/browser.xhtml') return;
try {
CustomizableUI.createWidget({
id: 'ublock',
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 props = {
id: 'ublock',
class: 'toolbarbutton-1 chromeclass-toolbar-additional',
label: 'ublock-Button',
tooltiptext: 'uBlock Update',
style: 'list-style-image: url("file:///C:/Users/Barbaraz-/AppData/Roaming/Mozilla/Firefox/Profiles/"xyz".default/chrome/Icons/pencil.png");
};
for (var p in props)
toolbaritem.setAttribute(p, props[p]);
toolbaritem.addEventListener('click', event => {
if (event.button == 0) {
event.target.documentGlobal.openTrustedLinkIn("moz-extension://5ecb425e-9732-4036-b85d-5a22f246c4d4/dashboard.html#3p-filters.html", "tab");
}
});
return toolbaritem;
}
});
} catch(e) { };
})();
Alles anzeigen