Achtung
es ging mir darum
nich jeder ist so affin in den Anpassungen unterwegs
da hat mir der Beitrag von Sören Hentzschel gut gefallen
gruß uni
Achtung
es ging mir darum
nich jeder ist so affin in den Anpassungen unterwegs
da hat mir der Beitrag von Sören Hentzschel gut gefallen
gruß uni
:klasse:
das ist keine Belehrung oder deren gleichen
dient nur zu Info
aber wer kein Script oder dergleichen will
es gibt es auch als WebExtension
178 Erweiterungen für „JavaScript“
gruß uni
:grr:
„Na, nu wird doch der Hund in der Pfanne verrückt!“
[attachment=0]NoScript Camp meldung grrrrrrrrr.png[/attachment]
Gegentest mit uMatrix ---> nix (Quantum58beta)
sehr sehr komisch
diese Extension hab ich garnich!?
:-???
gruß uni
ok
Seite im Malwarebytes freigegeben
danke für die Aufklärung EffPeh
gruß uni
:-??
[attachment=0]http ffc.square7.ch.png[/attachment]
da is was nich iO
oder blockt der nur bei mir?
[Blockierte Grafik: http://www.cosgan.de/images/smilie/konfus/a050.gif]
min
frage
wo steht das im "Code/Skript"
ZitatProfil_%profilename%_%day%_%month%_%year%_%time%
find es nicht (oder bin ich blind :wink: )
sonst könnte man(n) ja die Reihenfolge ändern
// ==UserScript==
// @name BackupProfile.uc.js
// @namespace BackupProfile.github.com
// @description Schaltfläche zum Sichern des Firefoxprofils
// @charset UTF-8
// @author ywzhaiqi、defpt
// @version v2017.12.28b
// @note Vorlage Script von ywzhaiqi
// @note Sicherungsdatei enthaelt auch Profilname (v2017.12.23); Ersatz veralteter Funktionen (v2017.12.28b)
// @reviewURL http://bbs.kafan.cn/thread-1758785-1-1.html
(function () {
Components.utils.import("resource:///modules/CustomizableUI.jsm");
CustomizableUI.createWidget({
id : "Backup-button",
defaultArea : CustomizableUI.AREA_NAVBAR,
label : "Profilsicherung",
tooltiptext : "Sichern der aktuellen Konfiguration",
onClick: function(){
// Speicherort - Ordner festlegen - Sichern funktioniert nur wenn Speicherort- bzw. Ordner vorhanden ist!!
var path = "E:\\Firefox\\";
// var path = "";
// Ausschlussliste
var excludes = 'bookmarkbackups *cache* crashes fftmp *healthreport* minidumps safebrowsing *webapps* saved-telemetry-pings *thumbnails* *session* *Telemetry* *hotfix* *.sqlite-shm *.sqlite-wal *.bak parent.lock blocklist.xml content-prefs.sqlite directoryLinks.json mimeTypes.rdf compatibility.ini parent.lock formhistory.sqlite';
if (!path) {
var nsIFilePicker = Ci.nsIFilePicker;
var FP = Cc['@mozilla.org/filepicker;1'].createInstance(nsIFilePicker);
FP.init(window, 'Sicherungspfad wählen', nsIFilePicker.modeGetFolder);
if (FP.show() == nsIFilePicker.returnOK) {
path = FP.file.path;
} else {
return false;
}
}
excludes = excludes.replace(/\./g, '\\.').replace(/\*/g, '.*').replace(/\s+/g, '|');
excludes = new RegExp(excludes, 'i');
var zw = Cc['@mozilla.org/zipwriter;1'].createInstance(Ci.nsIZipWriter);
var pr = {PR_RDONLY: 0x01, PR_WRONLY: 0x02, PR_RDWR: 0x04, PR_CREATE_FILE: 0x08, PR_APPEND: 0x10, PR_TRUNCATE: 0x20, PR_SYNC: 0x40, PR_EXCL: 0x80};
var fu = Cu.import('resource://gre/modules/FileUtils.jsm').FileUtils;
var dir = fu.getFile('ProfD', []);
var localnow = new Date().toLocaleString();
localnow = localnow.replace(/\W+/g, "_");
var archiveName = 'Profil_' + bupgetCurrentProfileName()+ '_' + localnow + '.zip';
var xpi = fu.File(path + '\\' + archiveName);
zw.open(xpi, pr.PR_RDWR | pr.PR_CREATE_FILE | pr.PR_TRUNCATE);
var dirArr = [dir];
for (var i=0; i<dirArr.length; i++) {
var dirEntries = dirArr[i].directoryEntries;
while (dirEntries.hasMoreElements()) {
var entry = dirEntries.getNext().QueryInterface(Ci.nsIFile);
if (entry.path == xpi.path) {
continue;
}
if (entry.isDirectory()) {
dirArr.push(entry);
}
var relPath = entry.path.replace(dirArr[0].path, '');
if (relPath.match(excludes)) {
continue;
}
var saveInZipAs = relPath.substr(1);
saveInZipAs = saveInZipAs.replace(/\\/g,'/');
// Konfigurationsdateien können gesperrt werden
try {
zw.addEntryFile(saveInZipAs, Ci.nsIZipWriter.COMPRESSION_FASTEST, entry, false);
} catch (e) {}
}
}
zw.close();
alert('Die aktuelle Konfiguration wurde als:\n'+ archiveName +'\ngesichert in:\n' + path);
function alert(aString, aTitle) {
Cc['@mozilla.org/alerts-service;1'].getService(Ci.nsIAlertsService).showAlertNotification("", aTitle, aString, false, "", null);
}
function bupgetCurrentProfileName(){
function readFile(aFile){
var stream = Cc["@mozilla.org/network/file-input-stream;1"].createInstance(Ci.nsIFileInputStream); stream.init(aFile, 0x01, 0, 0);
var cvstream = Cc["@mozilla.org/intl/converter-input-stream;1"].createInstance(Ci.nsIConverterInputStream);
cvstream.init(stream, "UTF-8", 1024, Ci.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER);
var content = "", data = {};
while (cvstream.readString(4096, data)) {
content += data.value;
}
cvstream.close();
return content.replace(/\r\n?/g, "\n");
}
var PrefD = Components.classes["@mozilla.org/file/directory_service;1"].getService(Components.interfaces.nsIProperties).get("PrefD", Components.interfaces.nsIFile);
var ini = Components.classes["@mozilla.org/file/directory_service;1"].getService(Components.interfaces.nsIProperties).get("AppRegD", Components.interfaces.nsIFile);
ini.append("profiles.ini");
var ini = readFile(ini);
var profiles = ini.match(/Name=.+/g);
var profilesD = ini.match(/Path=.+/g);
for ( var i = 0; i < profiles.length;i++) {
if ((profilesD[i]+"$").indexOf(PrefD.leafName+"$") >= 0) {
profiles[i].match(/Name=(.+)$/);
return RegExp.$1;
}
}
return null;
}
},
});
var cssStr = '@-moz-document url("chrome://browser/content/browser.xul"){'
+ '#Backup-button .toolbarbutton-icon {'
+ 'list-style-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1%2B%2FAAAABZ0RVh0Q3JlYXRpb24gVGltZQAwNC8xMS8wOGGVBZQAAAAcdEVYdFNvZnR3YXJlAEFkb2JlIEZpcmV3b3JrcyBDUzQGstOgAAABxklEQVQ4ja2UMUgbURjHfxeSFBzuBEuCkkAgIA5JDdzWohVnQe3UpRDE2UXpKKXdWro4ixlcdNJAydxiyHZkCIKIOEnLpZQSRFFz%2Bjqk73nvuDtb2j883nv%2F73u%2F%2B%2B69ewf%2FWUZgbgEFYDgiPw18B86An8DtQw%2BYdF1XRLVGoyGEEKJara4Bj0MKIhGYDxuGQVSTqtVqH0ql0uzvNzLigCQSicjmeZ7K63Q6u5VKZRoYigXGVWhZlpbbbrfrwKjfS4ZVGKVCoUCz2aTX65FOp6WdA04igf69CsqyLMrlctAWsRXGAf9EavXyFELEZT4A2TwYsLQKF%2BYXAJhb3VPep4%2BLzK3uqd7vS9Xr%2B2qsAW9u4eyoxcZSFoCVLZfTwxaA6v2xjaUsuYmnWrU60IOr%2FmD8etvl%2Fausikl%2FZcsFULEbD02hwPUdl7cvs1qiBAb9eOCdwdjEM2AABdh88wJA%2BbK%2FX6MDtVPmHyRPOfjRPfc87%2FPfgJLJ5AzwRc0BbNseB8a63e6TuKsXpnw%2BP5nJZAzgq%2BM4x3IPzwFM07woFovv%2Bv3%2BUDTiXqlU6tI0zQs%2FI%2FSe2bYt%2FyCPgJFA%2BAdwDeA4zrfg2l%2BwUqCoC1F3YQAAAABJRU5ErkJggg%3D%3D)'
+ '}}';
var sss = Cc["@mozilla.org/content/style-sheet-service;1"].getService(Ci.nsIStyleSheetService);
var ios = Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService);
sss.loadAndRegisterSheet(ios.newURI("data:text/css;base64," + btoa(cssStr), null, null), sss.USER_SHEET);
})();
Alles anzeigen
gruß uni
hi
es gibt 2 Wege
1. Bild in 16.16 *.png machen (vorsichtshalber) den Link zum *.png im "code" gegen das Base64 austauschen
oder
2. das Bild zu Base64 machen im Netz ein Base64 Editor suchen und wandeln lassen und den dann gegen das "alte" base64 tauschen
oder auf Andreas ... oder oder oder warten
tschö
nö
ich speichere immer UTF8 ohne BOM
<;)
Alles anzeigen
Hallo universum.
Bitte teste mal die neueste Version davon.
Die soll demnächst hochgeladen werden.
Hier zur Zeit noch in meinem Zwischenlager:
https://github.com/Endor8/userChr…tusModoki.uc.jsMfg.
Endor
erst mal :klasse: bis auf das "ö" in Lö(?)schen und das "ß" "schlie(?)ßen
gruß uni
werde noch mal selbst drin rum morkeln <;)
moin
es geht um
siehe ewtl. Bild
// ==UserScript==
// @name ucjsDownloadsStatusModoki.uc.js
// @namespace http://space.geocities.yahoo.co.jp/gl/alice0775
// @description Downloads Status Modoki
// @include main
// @compatibility Firefox 26+
// @author Alice0775
// @version 2016/06/10 12:00 modify style independent of font-family
// @version 2016/06/10 07:00 modify style of close button, fix typo
// @version 2016/06/10 00:00 Workaround Bug 1279329. adjust some padding
// @version 2015/05/08 00:00 remove padding due to Bug 1160734
// @version 2014/03/31 00:00 fix for browser.download.manager.showWhenStarting
// @version 2013/12/22 13:00 chromehidden
// @version 2013/12/19 17:10 rename REMEMBERHISTOTY to DO_NOT_DELETE_HISTORY
// @version 2013/12/16 23:28 fixed initialize numDls
// @version 2013/12/16 23:24 open only download added
// @version 2013/12/16 23:10 open only download started
// @version 2013/12/16 21:20 modify css Windows7 Aero
// @version 2013/12/16 21:00 modify css
// @version 2013/12/16 19:30 add autocheck false
// @version 2013/12/16 18:31 fix pref name
// @version 2013/12/16 18:30
// @note
// ==/UserScript==
var ucjsDownloadsStatusModoki = {
_summary: null,
_list: null,
get downloadsStatusModokiBar() {
delete downloadsStatusModokiBar;
return this.downloadsStatusModokiBar = document.getElementById("downloadsStatusModokiBar");
},
get toggleMenuitem() {
delete toggleMenuitem;
return this.toggleMenuitem = document.getElementById("toggle_downloadsStatusModokiBar");
},
init: function() {
if (document.documentElement.getAttribute("chromehidden") !="" )
return;
XPCOMUtils.defineLazyModuleGetter(window, "Downloads",
"resource://gre/modules/Downloads.jsm");
var style = ' \
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul); \
#ucjsDownloadsStatusModoki { \
width: 100%; \
max-height: 100px; \
height: 35px; \
} \
'.replace(/\s+/g, " ");
var sspi = document.createProcessingInstruction(
'xml-stylesheet',
'type="text/css" href="data:text/css,' + encodeURIComponent(style) + '"'
);
document.insertBefore(sspi, document.documentElement);
sspi.getAttribute = function(name) {
return document.documentElement.getAttribute(name);
};
var toolbar = document.createElement("vbox");
toolbar.setAttribute("id", "downloadsStatusModokiBar");
toolbar.setAttribute("collapsed", true);
var bottombox = document.getElementById("browser-bottombox");
bottombox.appendChild(toolbar);
var browser = toolbar.appendChild(document.createElement("browser"));
browser.setAttribute("disablehistory", true);
browser.setAttribute("remote", false);
browser.setAttribute("id", "ucjsDownloadsStatusModoki");
browser.addEventListener("load", function(event){ucjsDownloadsStatusModoki.onload(event)}, true);
browser.setAttribute("src", "chrome://browser/content/downloads/contentAreaDownloadsView.xul");
var menuitem = document.createElement("menuitem");
menuitem.setAttribute("id", "toggle_downloadsStatusModokiBar");
menuitem.setAttribute("type", "checkbox");
menuitem.setAttribute("autocheck", false);
menuitem.setAttribute("label", "Downloads Statusbar");
menuitem.setAttribute("checked", false);
menuitem.setAttribute("accesskey", "D");
menuitem.setAttribute("oncommand", "ucjsDownloadsStatusModoki.toggleDownloadsStatusModokiBar()");
var ref = document.getElementById("menu_customizeToolbars");
ref.parentNode.insertBefore(menuitem, ref.previousSibling);
// Ensure that the DownloadSummary object will be created asynchronously.
if (!this._summary) {
Downloads.getSummary(Downloads.ALL).then(summary => {
this._summary = summary;
return this._summary.addView(this);
}).then(null, Cu.reportError);
}
if (!this._list) {
Downloads.getList(Downloads.ALL).then(list => {
this._list = list;
return this._list.addView(this);
}).then(null, Cu.reportError);
}
window.addEventListener("unload", this, false);
},
uninit: function() {
window.removeEventListener("unload", this, false);
if (this._summary) {
this._summary.removeView(this);
}
if (this._list) {
this._list.removeView(this);
}
},
handleEvent: function(event) {
switch (event.type) {
case "unload":
this.uninit();
break;
}
},
toggleDownloadsStatusModokiBar: function() {
var collapsed = this.downloadsStatusModokiBar.collapsed;
this.downloadsStatusModokiBar.collapsed = !collapsed;
this.toggleMenuitem.setAttribute("checked", collapsed);
},
openDownloadsStatusModoki: function() {
this.downloadsStatusModokiBar.collapsed = false;
this.toggleMenuitem.setAttribute("checked", true);
},
hideDownloadsStatusModoki: function() {
this.downloadsStatusModokiBar.collapsed = true;
this.toggleMenuitem.setAttribute("checked", false);
},
onDownloadAdded: function (aDownload) {
Cu.import("resource://gre/modules/Services.jsm");
var showWhenStarting = true;
try {
showWhenStarting = Services.prefs.getBoolPref("userChrome.downloadsStatusModoki.showWhenStarting");
} catch(e) {}
this.numDls = 0;
if (showWhenStarting) {
if (this._list) {
this._list.getAll().then(downloads => {
for (let download of downloads) {
if (!download.stopped)
this.numDls++;
}
if (this.numDls > 0)
this.openDownloadsStatusModoki(false);
}).then(null, Cu.reportError);
}
}
},
onSummaryChanged: function () {
Cu.import("resource://gre/modules/Services.jsm");
if (!this._summary)
return;
if (this._summary.allHaveStopped || this._summary.progressTotalBytes == 0) {
var closeWhenDone = false;
try {
closeWhenDone = Services.prefs.getBoolPref("userChrome.downloadsStatusModoki.closeWhenDone");
} catch(e) {}
if (closeWhenDone) {
this.hideDownloadsStatusModoki();
}
}
},
// chrome://browser/content/downloads/contentAreaDownloadsView.xul
onload: function(event) {
var doc = event.originalTarget;
var win = doc.defaultView;
var style = ' \
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul); \
#contentAreaDownloadsView { \
-moz-box-orient: horizontal; \
padding: 0; \
} \
\
#downloadsRichListBox { \
max-height:35px; \
background-color: -moz-dialog; \
} \
\
#downloadsRichListBox .scrollbox-innerbox { \
display:inline !important; \
} \
\
richlistitem { \
min-width:200px; \
max-width:200px; \
max-height:33px; \
font-size: 13px; \
padding-right: 1px; \
} \
\
richlistitem vbox { \
} \
\
.downloadTypeIcon { \
height:16px; \
width: 24px; \
-moz-margin-end: 0px; \
-moz-margin-start: 1px; \
padding-right: 0; \
padding-left: 1px; \
} \
\
.downloadTarget { \
margin-top:2px; \
padding-bottom:16px; \
max-width: calc(100% - 50px) !important; \
min-width: calc(100% - 50px) !important; \
} \
\
.downloadTarget:-moz-system-metric(windows-default-theme) { \
margin-top:2px; \
padding-bottom:10px; \
} \
\
.downloadProgress { \
margin-top:-16px; \
margin-bottom: -1px; \
} \
\
.progress-bar { \
-moz-appearance:none !important; \
background-color: lime !important; \
} \
\
.progress-remainder { \
} \
\
.downloadDetails { \
margin-top:-17px; \
} \
\
richlistitem[selected] .downloadDetails { \
opacity: 1; \
} \
\
.downloadButton { \
padding: 0; \
margin: 0; \
} \
\
.button-box { \
-moz-padding-start: 0px; \
-moz-padding-end: 1px; \
padding-right: 0 !important; \
padding-left: 0 !important; \
} \
\
#downloadFilter { \
width: 150px; \
} \
\
#ucjsDownloadsStatusModoki-closebutton { \
border: none; \
width:20px;\
padding: 0 5px; \
list-style-image: url("chrome://global/skin/icons/close.png"); \
-moz-appearance: none; \
-moz-image-region: rect(0, 20px, 20px, 0); \
} \
\
#ucjsDownloadsStatusModoki-closebutton:hover { \
-moz-image-region: rect(0px, 40px, 20px, 20px); \
} \
\
@media (-moz-windows-classic) { \
#ucjsDownloadsStatusModoki-closebutton { \
border: none; \
padding: 0 5px; \
list-style-image: url("chrome://global/skin/icons/close.png"); \
-moz-appearance: none; \
-moz-image-region: rect(0, 16px, 16px, 0); \
} \
\
#ucjsDownloadsStatusModoki-closebutton:hover { \
-moz-image-region: rect(0px, 32px, 16px, 16px); \
} \
} \
'.replace(/\s+/g, " ");
var sspi = doc.createProcessingInstruction(
'xml-stylesheet',
'type="text/css" href="data:text/css,' + encodeURIComponent(style) + '"'
);
doc.insertBefore(sspi, doc.documentElement);
sspi.getAttribute = function(name) {
return doc.documentElement.getAttribute(name);
};
var button = doc.createElement("button");
button.setAttribute("label", "Löschen");
button.setAttribute("accesskey", "L");
button.setAttribute("oncommand", "ucjsDownloadsStatusModoki_clearDownloads();");
var ref = doc.getElementById("downloadCommands");
var vbox = doc.createElement("vbox");
var box = vbox.appendChild(doc.createElement("hbox"));
box.appendChild(button);
box.appendChild(doc.createElement("spacer")).setAttribute("flex", 1);
var textbox = doc.createElement("textbox");
textbox.setAttribute("id", "downloadFilter");
textbox.setAttribute("clickSelectsAll", true);
textbox.setAttribute("type", "search");
textbox.setAttribute("placeholder", "Suchen...");
textbox.setAttribute("oncommand", "ucjsDownloadsStatusModoki_doSearch(this.value);");
box.appendChild(textbox);
var closebtn = doc.createElement("toolbarbutton");
closebtn.setAttribute("id", "ucjsDownloadsStatusModoki-closebutton");
closebtn.setAttribute("tooltiptext", "Download-Leiste schließen");
closebtn.setAttribute("oncommand", "ucjsDownloadsStatusModoki_doClose();");
box.appendChild(closebtn);
ref.parentNode.insertBefore(vbox, ref);
// xxx Bug 1279329 "Copy Download Link" of context menu in Library is grayed out
var listBox = doc.getElementById("downloadsRichListBox");
var placesView = listBox._placesView;
if (placesView) {
var place = placesView.place;
placesView.place= null;
placesView.place = place;
}
win.ucjsDownloadsStatusModoki_clearDownloads = function ucjs_clearDownloads() {
var DO_NOT_DELETE_HISTORY = true; /* custmizable true or false */
Cu.import("resource://gre/modules/Services.jsm");
var places = [];
function addPlace(aURI, aTitle, aVisitDate) {
places.push({
uri: aURI,
title: aTitle,
visits: [{
visitDate: aVisitDate,
transitionType: Ci.nsINavHistoryService.TRANSITION_LINK
}]
});
}
function moveDownloads2History() {
var richListBox = doc.getElementById("downloadsRichListBox");
if (DO_NOT_DELETE_HISTORY) {
var cont = richListBox._placesView.result.root;
cont.containerOpen = true;
for (let i = cont.childCount - 1; i > -1; i--) {
let node = cont.getChild(i);
let aURI = makeURI(node.uri);
let aTitle = node.title;
let aVisitDate = node.time;
addPlace(aURI, aTitle, aVisitDate)
}
}
// Clear List
richListBox._placesView.doCommand('downloadsCmd_clearDownloads');
if (DO_NOT_DELETE_HISTORY) {
if (places.length > 0) {
var asyncHistory = Components.classes["@mozilla.org/browser/history;1"]
.getService(Components.interfaces.mozIAsyncHistory);
asyncHistory.updatePlaces(places);
}
}
}
moveDownloads2History();
// close toolbar
var closeWhenDone = false;
try {
closeWhenDone = Services.prefs.getBoolPref("userChrome.downloadsStatusModoki.closeWhenDone");
} catch(e) {}
if (closeWhenDone) {
top.ucjsDownloadsStatusModoki.hideDownloadsStatusModoki();
}
};
win.ucjsDownloadsStatusModoki_doSearch = function ucjs_doSearch(filterString) {
var richListBox = doc.getElementById("downloadsRichListBox");
richListBox._placesView.searchTerm = filterString;
};
win.ucjsDownloadsStatusModoki_doClose = function ucjs_doClose() {
top.ucjsDownloadsStatusModoki.hideDownloadsStatusModoki();
};
}
}
ucjsDownloadsStatusModoki.init();
Alles anzeigen
[attachment=0]DownloadsStatusModoki.uc.js.png[/attachment]
mein Problem ist das ich nicht das L(ö)oeschen" mit ö hinbekomme (ö = ?)
und das die schließen (ß = ?) kreuzt zu sehen ist
!Achtung hat zeit!
Gruß uni
wünsch erst mal ein guten rutsch ins neue
ps. andreas - das selbe Prinzip wie mit meinem "Thunderbird" - läuft jetzt aber .... das ist ein anderes Thema ...
Testet mal das, Mädels...
Code Alles anzeigen// ==UserScript== // @name BackupProfile29+_JS版.uc.js // @namespace BackupProfile29+_JS版@github.com // @description 备份配置按钮,更适合配置较小情况 // @charset UTF-8 // @author ywzhaiqi、defpt // @version v2017.12.23 // @note Vorlage Script von ywzhaiqi // @note Sicherungsdatei enthaelt auch Profilname (v2017.12.23) // @reviewURL http://bbs.kafan.cn/thread-1758785-1-1.html (function () { Components.utils.import("resource:///modules/CustomizableUI.jsm"); CustomizableUI.createWidget({ id : "Backup-button", defaultArea : CustomizableUI.AREA_NAVBAR, label : "Profilsicherung", tooltiptext : "Sichern der aktuellen Konfiguration", onClick: function(){ // Speicherort - Ordner festlegen - Sichern funktioniert nur wenn Speicherort- bzw. Ordner vorhanden ist!! var path = "c:\\xampp\\htdocs\\firefox\\test-backup"; // var path = ""; // Ausschlussliste var excludes = 'bookmarkbackups *cache* crashes fftmp *healthreport* minidumps safebrowsing *webapps* saved-telemetry-pings *thumbnails* *session* *Telemetry* *hotfix* *.sqlite-shm *.sqlite-wal *.bak parent.lock blocklist.xml *content* directoryLinks.json mimeTypes.rdf compatibility.ini parent.lock formhistory.sqlite'; if (!path) { var nsIFilePicker = Ci.nsIFilePicker; var FP = Cc['@mozilla.org/filepicker;1'].createInstance(nsIFilePicker); FP.init(window, 'Sicherungspfad wählen', nsIFilePicker.modeGetFolder); if (FP.show() == nsIFilePicker.returnOK) { path = FP.file.path; } else { return false; } } excludes = excludes.replace(/\./g, '\\.').replace(/\*/g, '.*').replace(/\s+/g, '|'); excludes = new RegExp(excludes, 'i'); var zw = Cc['@mozilla.org/zipwriter;1'].createInstance(Ci.nsIZipWriter); var pr = {PR_RDONLY: 0x01, PR_WRONLY: 0x02, PR_RDWR: 0x04, PR_CREATE_FILE: 0x08, PR_APPEND: 0x10, PR_TRUNCATE: 0x20, PR_SYNC: 0x40, PR_EXCL: 0x80}; var fu = Cu.import('resource://gre/modules/FileUtils.jsm').FileUtils; var dir = fu.getFile('ProfD', []); var localnow = new Date().toLocaleString(); localnow = localnow.replace(/\W+/g, "_"); var archiveName = 'Profil_' + bupgetCurrentProfileName()+ '_' + localnow + '.zip'; var xpi = fu.File(path + '\\' + archiveName); zw.open(xpi, pr.PR_RDWR | pr.PR_CREATE_FILE | pr.PR_TRUNCATE); var dirArr = [dir]; for (var i=0; i<dirArr.length; i++) { var dirEntries = dirArr[i].directoryEntries; while (dirEntries.hasMoreElements()) { var entry = dirEntries.getNext().QueryInterface(Ci.nsIFile); if (entry.path == xpi.path) { continue; } if (entry.isDirectory()) { dirArr.push(entry); } var relPath = entry.path.replace(dirArr[0].path, ''); if (relPath.match(excludes)) { continue; } var saveInZipAs = relPath.substr(1); saveInZipAs = saveInZipAs.replace(/\\/g,'/'); // Konfigurationsdateien können gesperrt werden try { zw.addEntryFile(saveInZipAs, Ci.nsIZipWriter.COMPRESSION_FASTEST, entry, false); } catch (e) {} } } zw.close(); alert('Die aktuelle Konfiguration wurde als:\n'+ archiveName +'\ngesichert in:\n' + path); function alert(aString, aTitle) { Cc['@mozilla.org/alerts-service;1'].getService(Ci.nsIAlertsService).showAlertNotification("", aTitle, aString, false, "", null); } function bupgetCurrentProfileName(){ function readFile(aFile){ var stream = Cc["@mozilla.org/network/file-input-stream;1"].createInstance(Ci.nsIFileInputStream); stream.init(aFile, 0x01, 0, 0); var cvstream = Cc["@mozilla.org/intl/converter-input-stream;1"].createInstance(Ci.nsIConverterInputStream); cvstream.init(stream, "UTF-8", 1024, Ci.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER); var content = "", data = {}; while (cvstream.readString(4096, data)) { content += data.value; } cvstream.close(); return content.replace(/\r\n?/g, "\n"); } var PrefD = Components.classes["@mozilla.org/file/directory_service;1"].getService(Components.interfaces.nsIProperties).get("PrefD", Components.interfaces.nsIFile); var ini = Components.classes["@mozilla.org/file/directory_service;1"].getService(Components.interfaces.nsIProperties).get("AppRegD", Components.interfaces.nsIFile); ini.append("profiles.ini"); var ini = readFile(ini); var profiles = ini.match(/Name=.+/g); var profilesD = ini.match(/Path=.+/g); for ( var i = 0; i < profiles.length;i++) { if ((profilesD[i]+"$").indexOf(PrefD.leafName+"$") >= 0) { profiles[i].match(/Name=(.+)$/); return RegExp.$1; } } return null; } }, }); var cssStr = '@-moz-document url("chrome://browser/content/browser.xul"){' + '#Backup-button .toolbarbutton-icon {' + 'list-style-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1%2B%2FAAAABZ0RVh0Q3JlYXRpb24gVGltZQAwNC8xMS8wOGGVBZQAAAAcdEVYdFNvZnR3YXJlAEFkb2JlIEZpcmV3b3JrcyBDUzQGstOgAAABxklEQVQ4ja2UMUgbURjHfxeSFBzuBEuCkkAgIA5JDdzWohVnQe3UpRDE2UXpKKXdWro4ixlcdNJAydxiyHZkCIKIOEnLpZQSRFFz%2Bjqk73nvuDtb2j883nv%2F73u%2F%2B%2B69ewf%2FWUZgbgEFYDgiPw18B86An8DtQw%2BYdF1XRLVGoyGEEKJara4Bj0MKIhGYDxuGQVSTqtVqH0ql0uzvNzLigCQSicjmeZ7K63Q6u5VKZRoYigXGVWhZlpbbbrfrwKjfS4ZVGKVCoUCz2aTX65FOp6WdA04igf69CsqyLMrlctAWsRXGAf9EavXyFELEZT4A2TwYsLQKF%2BYXAJhb3VPep4%2BLzK3uqd7vS9Xr%2B2qsAW9u4eyoxcZSFoCVLZfTwxaA6v2xjaUsuYmnWrU60IOr%2FmD8etvl%2Fausikl%2FZcsFULEbD02hwPUdl7cvs1qiBAb9eOCdwdjEM2AABdh88wJA%2BbK%2FX6MDtVPmHyRPOfjRPfc87%2FPfgJLJ5AzwRc0BbNseB8a63e6TuKsXpnw%2BP5nJZAzgq%2BM4x3IPzwFM07woFovv%2Bv3%2BUDTiXqlU6tI0zQs%2FI%2FSe2bYt%2FyCPgJFA%2BAdwDeA4zrfg2l%2BwUqCoC1F3YQAAAABJRU5ErkJggg%3D%3D)' + '}}'; var sss = Cc["@mozilla.org/content/style-sheet-service;1"].getService(Ci.nsIStyleSheetService); var ios = Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService); sss.loadAndRegisterSheet(ios.newURI("data:text/css;base64," + btoa(cssStr), null, null), sss.USER_SHEET); })();
localnow bedurfte noch ein wenig Behandlung:
Diese Zeile entfernt die (Doppel)-Punkte, die anscheinend stören.
funzt soweit auf Nightly und Beta (Quantum)
soweit so gut
nur das dieses
[attachment=0]skriptmeldung.jpg[/attachment]
2-4 mal erscheint
[Blockierte Grafik: http://www.cosgan.de/images/smilie/konfus/a050.gif]
jep
kann ich bestätigen
uni
UpDate: Mit den jeweiligen Doppel-Slashs klappt es nun, wie gewünscht, allerdings nur im Profil für 57.0.2.. es funktioniert nicht in der Beta + Nightlyversion und erstaunlicherweise auch nicht im Firefox Portable... hier habe ich überhaupt keinen Button in der Leiste, den ich betätigen könnte... :-??Code Alles anzeigen// ==UserScript== // @name BackupProfile29+_JS版.uc.js // @namespace BackupProfile29+_JS版@github.com // @description 备份配置按钮,更适合配置较小情况 // @charset UTF-8 // @author ywzhaiqi、defpt // @version v2017.12.23 // @note Vorlage Script von ywzhaiqi // @note Sicherungsdatei enthaelt auch Profilname (v2017.12.23) // @reviewURL http://bbs.kafan.cn/thread-1758785-1-1.html (function () { CustomizableUI.createWidget({ id : "Backup-button", defaultArea : CustomizableUI.AREA_NAVBAR, label : "Profilsicherung", tooltiptext : "Sichern der aktuellen Konfiguration", onClick: function(){ // Speicherort - Ordner festlegen - Sichern funktioniert nur wenn Speicherort- bzw. Ordner vorhanden ist!! var path = "G:\\Name\\Sicherungen\\Firefox\\Firefox Sicherung\\Portable "; // var path = ""; // Ausschlussliste var excludes = 'bookmarkbackups *cache* crashes fftmp *healthreport* minidumps safebrowsing *webapps* saved-telemetry-pings *thumbnails* *session* *Telemetry* *hotfix* *.sqlite-shm *.sqlite-wal *.bak parent.lock blocklist.xml *content* directoryLinks.json mimeTypes.rdf compatibility.ini parent.lock formhistory.sqlite'; if (!path) { var nsIFilePicker = Ci.nsIFilePicker; var FP = Cc['@mozilla.org/filepicker;1'].createInstance(nsIFilePicker); FP.init(window, 'Sicherungspfad wählen', nsIFilePicker.modeGetFolder); if (FP.show() == nsIFilePicker.returnOK) { path = FP.file.path; } else { return false; } } excludes = excludes.replace(/\./g, '\\.').replace(/\*/g, '.*').replace(/\s+/g, '|'); excludes = new RegExp(excludes, 'i'); var zw = Cc['@mozilla.org/zipwriter;1'].createInstance(Ci.nsIZipWriter); var pr = {PR_RDONLY: 0x01, PR_WRONLY: 0x02, PR_RDWR: 0x04, PR_CREATE_FILE: 0x08, PR_APPEND: 0x10, PR_TRUNCATE: 0x20, PR_SYNC: 0x40, PR_EXCL: 0x80}; var fu = Cu.import('resource://gre/modules/FileUtils.jsm').FileUtils; var dir = fu.getFile('ProfD', []); var localnow = new Date().toLocaleFormat("%d%m%Y"); var archiveName = 'Profil_' + bupgetCurrentProfileName()+ '_' + localnow + '.zip'; var xpi = fu.File(path + '\\' + archiveName); zw.open(xpi, pr.PR_RDWR | pr.PR_CREATE_FILE | pr.PR_TRUNCATE); var dirArr = [dir]; for (var i=0; i<dirArr.length; i++) { var dirEntries = dirArr[i].directoryEntries; while (dirEntries.hasMoreElements()) { var entry = dirEntries.getNext().QueryInterface(Ci.nsIFile); if (entry.path == xpi.path) { continue; } if (entry.isDirectory()) { dirArr.push(entry); } var relPath = entry.path.replace(dirArr[0].path, ''); if (relPath.match(excludes)) { continue; } var saveInZipAs = relPath.substr(1); saveInZipAs = saveInZipAs.replace(/\\/g,'/'); // Konfigurationsdateien können gesperrt werden try { zw.addEntryFile(saveInZipAs, Ci.nsIZipWriter.COMPRESSION_FASTEST, entry, false); } catch (e) {} } } zw.close(); alert('Die aktuelle Konfiguration wurde als:\n'+ archiveName +'\ngesichert in:\n' + path); function alert(aString, aTitle) { Cc['@mozilla.org/alerts-service;1'].getService(Ci.nsIAlertsService).showAlertNotification("", aTitle, aString, false, "", null); } function bupgetCurrentProfileName(){ function readFile(aFile){ var stream = Cc["@mozilla.org/network/file-input-stream;1"].createInstance(Ci.nsIFileInputStream); stream.init(aFile, 0x01, 0, 0); var cvstream = Cc["@mozilla.org/intl/converter-input-stream;1"].createInstance(Ci.nsIConverterInputStream); cvstream.init(stream, "UTF-8", 1024, Ci.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER); var content = "", data = {}; while (cvstream.readString(4096, data)) { content += data.value; } cvstream.close(); return content.replace(/\r\n?/g, "\n"); } var PrefD = Components.classes["@mozilla.org/file/directory_service;1"].getService(Components.interfaces.nsIProperties).get("PrefD", Components.interfaces.nsIFile); var ini = Components.classes["@mozilla.org/file/directory_service;1"].getService(Components.interfaces.nsIProperties).get("AppRegD", Components.interfaces.nsIFile); ini.append("profiles.ini"); var ini = readFile(ini); var profiles = ini.match(/Name=.+/g); var profilesD = ini.match(/Path=.+/g); for ( var i = 0; i < profiles.length;i++) { if ((profilesD[i]+"$").indexOf(PrefD.leafName+"$") >= 0) { profiles[i].match(/Name=(.+)$/); return RegExp.$1; } } return null; } }, }); var cssStr = '@-moz-document url("chrome://browser/content/browser.xul"){' + '#Backup-button .toolbarbutton-icon {' + 'list-style-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1%2B%2FAAAABZ0RVh0Q3JlYXRpb24gVGltZQAwNC8xMS8wOGGVBZQAAAAcdEVYdFNvZnR3YXJlAEFkb2JlIEZpcmV3b3JrcyBDUzQGstOgAAABxklEQVQ4ja2UMUgbURjHfxeSFBzuBEuCkkAgIA5JDdzWohVnQe3UpRDE2UXpKKXdWro4ixlcdNJAydxiyHZkCIKIOEnLpZQSRFFz%2Bjqk73nvuDtb2j883nv%2F73u%2F%2B%2B69ewf%2FWUZgbgEFYDgiPw18B86An8DtQw%2BYdF1XRLVGoyGEEKJara4Bj0MKIhGYDxuGQVSTqtVqH0ql0uzvNzLigCQSicjmeZ7K63Q6u5VKZRoYigXGVWhZlpbbbrfrwKjfS4ZVGKVCoUCz2aTX65FOp6WdA04igf69CsqyLMrlctAWsRXGAf9EavXyFELEZT4A2TwYsLQKF%2BYXAJhb3VPep4%2BLzK3uqd7vS9Xr%2B2qsAW9u4eyoxcZSFoCVLZfTwxaA6v2xjaUsuYmnWrU60IOr%2FmD8etvl%2Fausikl%2FZcsFULEbD02hwPUdl7cvs1qiBAb9eOCdwdjEM2AABdh88wJA%2BbK%2FX6MDtVPmHyRPOfjRPfc87%2FPfgJLJ5AzwRc0BbNseB8a63e6TuKsXpnw%2BP5nJZAzgq%2BM4x3IPzwFM07woFovv%2Bv3%2BUDTiXqlU6tI0zQs%2FI%2FSe2bYt%2FyCPgJFA%2BAdwDeA4zrfg2l%2BwUqCoC1F3YQAAAABJRU5ErkJggg%3D%3D)' + '}}'; var sss = Cc["@mozilla.org/content/style-sheet-service;1"].getService(Ci.nsIStyleSheetService); var ios = Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService); sss.loadAndRegisterSheet(ios.newURI("data:text/css;base64," + btoa(cssStr), null, null), sss.USER_SHEET); })();
bestätigt
genau so ist es bei mir
:-??
gruß uni
[Blockierte Grafik: http://www.smilies.4-user.de/include/Schilder/smilie_m_006.gif]
für Windows User
vielleicht bisschen verständlicher <;)
firefox-anpassungen meine mit Beispiel
Bitte aber vorher überprüfen!
<:o
[Blockierte Grafik: http://www.smilies.4-user.de/include/Schilder/smilie_m_010.gif]
haste mal ein neues "Profil" angelegt
und darüber versucht "update" auszuführen
oder komplett Installation zu machen 57.0.2 win64 de
ZitatAlles anzeigenDie Profilverwaltung bei geschlossenem Firefox starten
Schließen Sie Firefox, falls er noch geöffnet ist:
Klicken Sie auf die Menüschaltfläche Fx57Menu und wählen Sie close 29 Beenden.
Drücken Sie auf der Tastatur die Tasten Windows Key +R. Der Dialog „Ausführen” öffnet sich.
Geben Sie im Dialog „Ausführen” folgenden Text ein: firefox.exe -P
Hinweis: Sie können entweder -P, -p oder -ProfileManager verwenden (jede dieser Möglichkeiten sollte funktionieren).
Klicken Sie auf OK. Die Firefox-Profilverwaltung (das Fenster „Firefox - Benutzerprofil wählen”) öffnet sich.Profilverwaltung öffnen
Hinweis: Sie können die Profilverwaltung auch mithilfe des Suchfelds im Windows-Startmenü öffnen: Schließen Sie Firefox, falls er noch geöffnet ist, drücken Sie die Taste Windows Key , tippen Sie firefox.exe -P in das Suchfeld und drücken Sie die Eingabe-Taste.
Falls sich die Profilverwaltung nicht öffnet, versuchen Sie den vollständigen Pfad zur Firefox-Programmdatei zwischen zwei Anführungszeichen mit dem Leerzeichen zwischen dem Pfad und dem -P einzugeben:Bei Verwendung eines 32-Bit-Firefox mit 64-Bit-Windows:
"C:\Programme (x86)\Mozilla Firefox\firefox.exe" -P
Bei Verwendung eines 32-Bit-Firefox mit 32-Bit-Windows oder des 64-Bit-Firefox mit 64-Bit-Windows:
"C:\Programme\Mozilla Firefox\firefox.exe" -P
ansonsten liegt was am "PC" im argen (Firewall?)
<:o
moin
ZitatAlles anzeigenFehler-Live-Übertragung – Die Medienwiedergabe wurde wegen Korruption abgebrochen.…
Ein Fehler, die Kopfschmerzen für viele Nutzer geben, Also MacOS sowie die Linux oder sogar Windows, ist nicht in der Lage Zugriff auf Sender Live-Übertragung Von Internet-browser.
Ob du redest Mozilla Firefox, Google Chrome oder Oper, Wenn Sie eine live-Übertragung Kanal zugreifen, Es scheint eine der Fehlermeldungen:
Die Medienwiedergabe wurde abgebrochen wegen Korruptionsproblem oder weil die Medien Funktionen verwendet Ihr Browser nicht unterstützt.
oder
Js Fehler HLS.: networkError – tödliche: True – manifestLoadError
Die einfachste Variante, um diesen Fehler zu vermeiden, in den meisten Fällen, besteht in der Installation Flash-Player. Natürlich, wenn, Live broadcast-Kanal unterstützt Flash-Technologie.
Ist dies keine Variante, Du musst Inelegem wo dieser Fehler herkommt und versuchen, den Ursachen zu beheben, die eine Ursache.Offenbar, verantwortlich für beide Fehlermeldungen, ist HLS JS. Eine Bibliothek JavaScript verantwortlich für die Umsetzung der HTTP Live Streaming, Worauf basiert die HTML5-Technologie für Video und Erweiterungen Media Source Erweiterungen für die Wiedergabe. Dies ermöglicht Wiedergabe von Videoinhalten in einem Web-browser ohne die Notwendigkeit einer Media-player ordnungsgemäße. Video kann durch das Element gesteuert werden <Videos> im code.
Ein Stream HLS-Adresse finden Sie unter: HTTPS://Video-dev.github.IO/HLS.js/Demo/, und detaillierte Informationen, wie Sie diese Fehler Browser Datum HLS JS lösen können, finden Sie in: HTTPS://GitHub.com/Video-dev/HLS.js.
Fehler “Die Medienwiedergabe wurde abgebrochen wegen Korruptionsproblem oder weil die Medien Funktionen verwendet Ihr Browser nicht unterstützt. ” und “Js Fehler HLS.: networkError – tödliche: True – manifestLoadError” sind typisch für Web-Browser Chrome, IE, Firefox und in seltenen Fällen, erscheinen auf Safari.
Offenbar, Sie erscheinen vor allem auf Linux-Betriebssystemen und MacOS Sierra / MacOS Hohe Sierra.
Fehler-Live-Übertragung – Die Medienwiedergabe wurde wegen Korruption abgebrochen.…
http://ihowto.tips/de/osx-apps-do…corruption.html,
https://github.com/video-dev/hls.js/issues/177
gefunden dazu
nich mich fragen - keine Ahnung von dem Thema
gruß uni
so vom "Fußball" zurück
dank euch beiden
getestet und funzt wirklich nicht unter e10s
na dann warten wir noch ein bisschen
is ja bald Weihnachten <;)
schönes Adventswochennde noch