फ़ायरफ़ॉक्स में मैं URL बार में "स्विच टू टैब" को कैसे अक्षम कर सकता हूं?


13

फ़ायरफ़ॉक्स 4 में, URL बार स्वत: पूर्ण पॉप-डाउन में अब एक प्रविष्टि है जिसका नाम "स्विच टू टैब" है, उन यूआरएल के लिए जो पहले से ही अन्य टैब में खुले हैं।

मैं यह कभी नहीं चाहता, और हमेशा इसे गलती से मारना समाप्त करता हूं। क्या इसे निष्क्रिय करने का कोई तरीका है?

एफएफ की अधिकांश नई विशेषताओं में about:configउन्हें बंद करने के लिए एक स्विच है, लेकिन मुझे इसके लिए कुछ भी स्पष्ट नहीं दिख रहा है।


1
+1। मैं 1000 सूर्यों के रोष के साथ इस सुविधा को समाप्त करता हूं।
RJFalconer

जवाबों:


3

गूगल पर एक त्वरित खोज ने mozillazine.org पर ज्योति का एक बड़ा ढेर दिखाया। ( http://forums.mozillazine.org/viewtopic.php?f=23&t=1977593 )

लिथोस्पियन द्वारा कोड (मूल रूप से http://forums.mozillazine.org/viewtopic.php?f=23&t=1977593&start=30 पर )

यह स्पष्ट रूप से एक मौजूदा एक्सटेंशन के अंदर है, लेकिन कोड को आप कहीं भी रखें।

सीएसएस इस तरह:

#urlbar
{
    -moz-binding: url("chrome://NoTabs/content/NoTabs.xml#NoTabsUrlbar");
}

.autocomplete-richlistitem
{
    -moz-binding: url("chrome://NoTabs/content/NoTabs.xml#NoTabsRichlistitem");
}

और दो प्रमुख तरीकों को बदलने के लिए इस तरह से बाइंडिंग:

<?xml version="1.0" encoding="UTF-8"?>
<bindings id="NoTabs-urlbarBindings"
      xmlns="http://www.mozilla.org/xbl"
      xmlns:html="http://www.w3.org/1999/xhtml"
      xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
      xmlns:xbl="http://www.mozilla.org/xbl">

  <binding id="NoTabsUrlbar" extends="chrome://browser/content/urlbarBindings.xml#urlbar">
    <implementation implements="nsIObserver, nsIDOMEventListener">

      <!--
        onBeforeValueSet is called by the base-binding's .value setter.
        It should return the value that the setter should use.
      -->
      <method name="onBeforeValueSet">
        <parameter name="aValue"/>
        <body><![CDATA[
          this.removeAttribute("actiontype");
          this._value = aValue;
          var returnValue = aValue;
          var action = this._parseActionUrl(aValue);
          if (action) returnValue = action.param;
          return returnValue;
        ]]></body>
      </method>

    </implementation>
  </binding>

  <binding id="NoTabsRichlistitem" extends="chrome://global/content/bindings/autocomplete.xml#autocomplete-richlistitem">
    <implementation implements="nsIDOMXULSelectControlItemElement">

      <method name="_adjustAcItem">
        <body>
          <![CDATA[
          var url = this.getAttribute("url");
          var title = this.getAttribute("title");
          var type = this.getAttribute("type");

          this.removeAttribute("actiontype");

          var setupUrl = true;

          // If the type includes an action, set up the item appropriately.
          var types = type.split(/\s+/);
          var actionIndex = types.indexOf("action");
          if (actionIndex >= 0) {
            let [,action, param] = url.match(/^moz-action:([^,]+),(.*)$/);
            url = param;

            // Remove the "action" substring so that the correct style, if any,
            // is applied below.
            types.splice(actionIndex, 1);
            type = types.join(" ");
          }

          // If we have a tag match, show the tags and icon
          if (type == "tag") {
            // Configure the extra box for tags display
            this._extraBox.hidden = false;
            this._extraBox.childNodes[0].hidden = false;
            this._extraBox.childNodes[1].hidden = true;
            this._extraBox.pack = "end";
            this._titleBox.flex = 1;

            // The title is separated from the tags by an endash
            let tags;
            [, title, tags] = title.match(/^(.+) \u2013 (.+)$/);

            // Each tag is split by a comma in an undefined order, so sort it
            let sortedTags = tags.split(",").sort().join(", ");

            // Emphasize the matching text in the tags
            this._setUpDescription(this._extra, sortedTags);

            // Treat tagged matches as bookmarks for the star
            type = "bookmark";
          } else if (type == "keyword") {
            // Configure the extra box for keyword display
            this._extraBox.hidden = false;
            this._extraBox.childNodes[0].hidden = true;
            this._extraBox.childNodes[1].hidden = false;
            this._extraBox.pack = "start";
            this._titleBox.flex = 0;

            // Put the parameters next to the title if we have any
            let search = this.getAttribute("text");
            let params = "";
            let paramsIndex = search.indexOf(' ');
            if (paramsIndex != -1)
              params = search.substr(paramsIndex + 1);

            // Emphasize the keyword parameters
            this._setUpDescription(this._extra, params);

            // Don't emphasize keyword searches in the title or url
            this.setAttribute("text", "");
          } else {
            // Hide the title's extra box if we don't need extra stuff
            this._extraBox.hidden = true;
            this._titleBox.flex = 1;
          }

          // Give the image the icon style and a special one for the type
          this._typeImage.className = "ac-type-icon" +
            (type ? " ac-result-type-" + type : "");

          // Show the url as the title if we don't have a title
          if (title == "")
            title = url;

          // Emphasize the matching search terms for the description
          this._setUpDescription(this._title, title);
          if (setupUrl)
            this._setUpDescription(this._url, url);

          // Set up overflow on a timeout because the contents of the box
          // might not have a width yet even though we just changed them
          setTimeout(this._setUpOverflow, 0, this._titleBox, this._titleOverflowEllipsis);
          setTimeout(this._setUpOverflow, 0, this._urlBox, this._urlOverflowEllipsis);
          ]]>
        </body>
      </method>
    </implementation>
  </binding>
</bindings>

1
वाह, यह डरावना है। मुझे उम्मीद है कि किसी न किसी दिन यह एक विस्तार में है।
केन

@Ken: किसी ने इसे एक एक्सटेंशन में बनाया है, लेकिन यह बीटा 12 के बाद से काम नहीं करता है, और लेखक ने इसे अपडेट नहीं किया है।
साशा चोडगोव

डाउनवोट किया गया क्योंकि यह समाधान पुराना है। फ़ायरफ़ॉक्स के आधुनिक संस्करणों के लिए Our_Benefactors 'समाधान काम करता है।
हमारा ०१:०enef एक्टेक्टर्स

2

फ़ायरफ़ॉक्स क्वांटम (परीक्षण संस्करण 68) के लिए इसे अक्षम कैसे करें

  1. हैमबर्गर मेनू
  2. विकल्प (मैक / लिनक्स पर प्राथमिकताएं) ( about:preferences)
  3. गोपनीयता और सुरक्षा ( about:preferences#privacy)
  4. पता पट्टी
  5. ओपन टैब अनचेक करें

बस!


2
यह इन उत्तरों में से केवल एक है जो वास्तव में वर्तमान फ़ायरफ़ॉक्स के साथ चाल करता है।
फूजएक्सएक्सएल
हमारी साइट का प्रयोग करके, आप स्वीकार करते हैं कि आपने हमारी Cookie Policy और निजता नीति को पढ़ और समझा लिया है।
Licensed under cc by-sa 3.0 with attribution required.