Hallo!
Ich suche eine Erweiterung oder sowas, mit der ich 2 Lesezeichen in die Statusbar legen kann, und das nur als kleines Icon jeweils 16x16 Pixel!
Gibt es sowas oder wie kann man das machen?
Also
ich habe die Erweiterung Goocal 0.1 installiert und da die Adresse geändert also editiert damit kann ich schon mal 1 Seite aufrufen,
leider kann ich die Erweiterung nicht so modifizieren dass ich damit wahlweise 2 Adressen / Lesezeichen öffnen kann.
Am liebsten hätte ich da dann noch zusätzlich diese Adresse:
http://www.wdr.de/themen/global/…TETIQ?seite=161
Hier mal der Code davon: (von der Datei goocal.js die ich geändert habe also http://www.wetteronline.de/feature/trend.htm)
function goocal() {
}
goocal.prototype.openMiddleClick = function(aEvent) {
//middle click should open in new tab
if ((aEvent) && (aEvent.button == 0)) {
this.loadCalendar(0);
} else if ((aEvent) && (aEvent.button == 1)) {
this.loadCalendar(1);
} else if ((aEvent) && (aEvent.button == 2)) {
this.loadCalendar(2);
}
}
/**
* Opens calendar into the browser, depending on the preference value:
* 0 - current tab
* 1 - new tab
* 2 - new window
* 3 - unfocused tab
*/
goocal.prototype.loadCalendar = function(location) {
var calendarUrl = "www.wetteronline.de/feature/trend.htm";
var url = this.createURL(calendarUrl);
if (location == 1) {
window.open(url);
} else if ((location == 0 ) || (location == 2)) {
var myTab = getBrowser().addTab(url, null, null);
// focus tab only if location is 1
if (location == 0)
getBrowser().selectedTab = myTab;
} else {
getBrowser().loadURI(url);
}
}
goocal.prototype.createURL = function(aUrl) {
var url = aUrl;
if (aUrl.indexOf("http://") == -1 && aUrl.indexOf("https://") == -1) {
//if (this.wm_prefs.getBoolPref(this.wm_prefs.PREF_UNSECURED_CONNECTION))
url = "http://" + url;
//else
// url = "https://" + url;
}
return url;
}
goocal.prototype.onload = function() {
window.removeEventListenter("load", gc.onload, false);
}
var gc = new goocal();
window.addEventListener("load", gc.onload, false);
Alles anzeigen
*edit* hier gibts die Erweiterung Goocal: https://addons.mozilla.org/de/firefox/addon/2378