- Firefox-Version
- 85
- Betriebssystem
- Win 10 Pro
Hallo,
ich habe 2 Scripte die in Firefox Version 58 nicht funktionieren.
Zeigt die Anzalh der enthalten Links als Zahl
Code
(function() {
setTimeout(function() {
if (!window.PlacesViewBase)
return;
let str = PlacesViewBase.prototype._mayAddCommandsItems.toString()
.replace('gNav' , '" " + aPopup._placesNode.childCount + " <- " + gNav');
eval('PlacesViewBase.prototype._mayAddCommandsItems = ' + str);
}, 100);
})();
Alles anzeigen
und
Suchfeldeingabe Automatisch Löschen
das löscht den eingetragenen Suchbegriff direkt nach Anzeige der einträge
Code
setTimeout(function() {
if (!window.BrowserSearch)
return;
var searchbar = BrowserSearch.searchBar;
if (!searchbar)
return;
var textbox = searchbar.getElementsByClassName('searchbar-textbox')[0];
var input = document.getAnonymousElementByAttribute(textbox, 'anonid', 'input');
var tId;
input.addEventListener('input', function() {
clearTimeout(tId);
tId = setTimeout(function() {
input.value = '';
document.getElementById('PopupSearchAutoComplete').hidePopup();
}, 5000);
});
}, 0);
(function() {
var searchbar = document.getElementById("searchbar");
searchbar.doSearch = function(aData, aWhere, aEngine, aParams, aOneOff) {
let textBox = this._textbox;
if (aData && !PrivateBrowsingUtils.isWindowPrivate(window) && this.FormHistory.enabled) {
this.FormHistory.update({
op: "bump",
fieldname: textBox.getAttribute("autocompletesearchparam"),
value: aData,
}, {
handleError(aError) {
Cu.reportError("Saving search to form history failed: " + aError.message);
},
});
}
let engine = aEngine || this.currentEngine;
let submission = engine.getSubmission(aData, null, "searchbar");
let telemetrySearchDetails = this.telemetrySearchDetails;
this.telemetrySearchDetails = null;
if (telemetrySearchDetails && telemetrySearchDetails.index == -1) {
telemetrySearchDetails = null;
}
const details = {
isOneOff: aOneOff,
isSuggestion: (!aOneOff && telemetrySearchDetails),
selection: telemetrySearchDetails,
};
BrowserSearch.recordSearchInTelemetry(engine, "searchbar", details);
let params = {
postData: submission.postData,
};
if (aParams) {
for (let key in aParams) {
params[key] = aParams[key];
}
}
openTrustedLinkIn(submission.uri.spec, "tab", params);
this.value = '';
this.currentEngine = this.engines ? this.engines[0] : this._engines[0];
};
}());
Alles anzeigen
könnte jemand das wieder zum laufen bekommen ?