Kann mir einer verraten, wie ich die Einstellung, dass jeder Link in einem neuen Tab geöffnet wird, und das immer der Tab nach vorne springt, über den die Maus huscht - wie ich diese Einstellungen zurück bekommen kann? Ich bins eit jahren daran gewöhnt.
jeder Link in einem neuen Tab geöffnet wird
-
Lorischlomo -
3. Dezember 2017 um 19:42 -
Erledigt
-
-
Hallo und Willkommen hier im Forum.
Beides funktioniert nur noch per Script:
Code
Alles anzeigen// ==UserScript== // @name openNewTab.uc.js // @namespace opennewtab@haoutil.com // @include main // @include chrome://browser/content/places/places.xul // @description Open Bookmarks/History/Search in New Tab // @downloadURL https://raw.githubusercontent.com/Harv/userChromeJS/master/openNewTab.uc.js // @version 1.3.2 // ==/UserScript== (function() { var b_urlbar = true; var b_searchbar = true; function whereToOpenLinkMod() { { var b_bookmarks = true; var b_history = true; if (!e) return 'current'; var win = window.opener || window; if (win.isTabEmpty(win.gBrowser.mCurrentTab)) return 'current'; var node = e.originalTarget; while (node) { switch (node.id) { case 'bookmarksMenuPopup': // menubar bookmarks case 'BMB_bookmarksPopup': // navibar bookmarks case 'bookmarksPanel': // sidebar bookmarks case 'PersonalToolbar': // toolbar bookmarks return b_bookmarks ? 'tab' : 'current'; case 'goPopup': // menubar history case 'PanelUI-history': // navibar history case 'history-panel': // sidebar history return b_history ? 'tab' : 'current'; case 'placeContent': // library bookmarks&history var collection = window.document.getElementById('searchFilter').getAttribute('collection'); var tab = collection === "bookmarks" && b_bookmarks || collection === "history" && b_history; return tab ? 'tab' : 'current'; } node = node.parentNode; } return 'current'; } } if (location == 'chrome://browser/content/browser.xul') { /* :::: Open Bookmarks/History in New Tab :::: */ eval('whereToOpenLink = ' + whereToOpenLink.toString().replace(/return "current";/g, whereToOpenLinkMod.toString().replace(/^.*{|}$/g, ''))); window.document.getElementById('sidebar').addEventListener('DOMContentLoaded', function(event) { var doc = event.originalTarget; var win = doc.defaultView.window; if (win.location == 'chrome://browser/content/bookmarks/bookmarksPanel.xul' || win.location == 'chrome://browser/content/history/history-panel.xul') { eval('win.whereToOpenLink=' + win.whereToOpenLink.toString().replace(/return "current";/g, whereToOpenLinkMod.toString().replace(/^.*{|}$/g, ''))); } else if (win.location == 'chrome://browser/content/readinglist/sidebar.xhtml') { /* :::: Open Sidebar ReadingList in New Tab :::: */ eval('win.RLSidebar.openURL = ' + win.RLSidebar.openURL.toString().replace(/log\.debug\(.*\);/, '').replace(/mainWindow\.openUILink\(url, event\);/, (function() { var where = isTabEmpty(gBrowser.mCurrentTab) ? 'current' : 'tab'; }).toString().replace(/^.*{|}$/g, '') + '$&')); } }); /* :::: Open Url in New Tab :::: */ if (b_urlbar) { var urlbar = document.getElementById('urlbar'); eval('urlbar.handleCommand=' + urlbar.handleCommand.toString().replace(/let where = openUILinkWhere;/, (function() { let where = isTabEmpty(gBrowser.mCurrentTab) ? 'current' : 'tab'; }).toString().replace(/^.*{|}$/g, ''))); } /* :::: Open Search in New Tab :::: */ if (b_searchbar) { var searchbar = document.getElementById('searchbar'); eval('searchbar.handleSearchCommand=' + searchbar.handleSearchCommand.toString().replace(/this\.doSearch\(textValue, where(, aEngine)?\);|this\.handleSearchCommandWhere\(aEvent, aEngine, where, params\);/, (function() { where = isTabEmpty(gBrowser.mCurrentTab) ? 'current' : 'tab'; }).toString().replace(/^.*{|}$/g, '') + '$&')); var oneOffButtons = document.getElementById('PopupSearchAutoComplete').oneOffButtons; oneOffButtons && eval('oneOffButtons.handleSearchCommand=' + oneOffButtons.handleSearchCommand.toString().replace(/this\.popup\.handleOneOffSearch\(aEvent, aEngine, where, params\);/, (function() { where = isTabEmpty(gBrowser.mCurrentTab) ? 'current' : 'tab'; }).toString().replace(/^.*{|}$/g, '') + '$&')); var oneOffSearchButtons = document.getElementById('PopupAutoCompleteRichResult').input.popup.oneOffSearchButtons; oneOffSearchButtons && eval('oneOffSearchButtons.handleSearchCommand=' + oneOffSearchButtons.handleSearchCommand.toString().replace(/this\.popup\.handleOneOffSearch\(aEvent, aEngine, where, params\);/, (function() { where = isTabEmpty(gBrowser.mCurrentTab) ? 'current' : 'tab'; }).toString().replace(/^.*{|}$/g, '') + '$&')); } } else if (location == 'chrome://browser/content/places/places.xul') { /* :::: Open Bookmarks/History in New Tab :::: */ eval('whereToOpenLink = ' + whereToOpenLink.toString().replace(/return "current";/g, whereToOpenLinkMod.toString().replace(/^.*{|}$/g, ''))); } })();
Code
Alles anzeigenvar tab_hover={ event:null, tid:null, onLoad: function() { gBrowser.tabContainer.addEventListener("mouseout", tab_hover.onMouseOut, false); gBrowser.tabContainer.addEventListener("mouseover", tab_hover.onMouseOver, false); }, onUnload: function() { gBrowser.tabContainer.removeEventListener("mouseover", tab_hover.onMouseOver, false); gBrowser.tabContainer.removeEventListener("mouseout", tab_hover.onMouseOut, false); }, onMouseOver: function(event) { tab_hover.event=event.target; tab_hover.tid=setTimeout( function(){ gBrowser.selectedTab=tab_hover.event; } , 250); }, onMouseOut: function() { clearTimeout(tab_hover.tid); } }; tab_hover.onLoad();
Und hier wird beschrieben welche Vorbereitungen du dazu machen musst:
-
Oder man nimmt Open Link with New Tab.
https://addons.mozilla.org/de/firefox/add…ew-tab/?src=api