1. Home
  2. News
  3. Download
    1. Thunderbird Release Version
    2. Thunderbird 153 ESR (2026)
    3. Thunderbird 140 ESR (2025)
    4. Thunderbird Beta Version
    5. Language Pack (User Interface)
    6. Dictionaries (Spell Check)
  4. Help & Lexicon
    1. Instructions for Thunderbird
    2. Questions & Answers (FAQ) about Thunderbird
    3. Help for this Website
    4. Last Changes
  5. Forums
    1. Unresolved Threads
    2. Latest Posts
    3. Threads of the last 24 hours
  • Login
  • Register
  • 
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Forum
  • Lexicon
  • Articles
  • Pages
  • More Options
  1. Thunderbird Mail DE
  2. Forum
  3. Hilfe zu Add-ons und manuellen Anpassungen
  4. Manuelle Anpassungen per CSS oder Script

TabCloseMiddleclickOnPage.us.js

    • Betterbird
    • 153 ESR
  • seipe
  • September 17, 2026 at 5:38 PM
  • Thread is Unresolved
  • seipe
    Member
    Posts
    203
    Member since
    26. Sep. 2007
    • September 17, 2026 at 5:38 PM
    • #1
    Thunderbird product
    Thunderbird für Windows
    Thunderbird version
    153
    Operating system
    Windows 11 Pro

    Ist es möglich, diese Script auf Thunderbird bzw.. Betterbird umzuschreiben?

    Code
    // TabCloseMiddleclickOnPage.us.js
    // v. 0.2
    
    
    function closeThisTab (event) {
    
    
    if (event.button == 1 && !Cc['@mozilla.org/preferences-service;1'].getService(Ci.nsIPrefBranch).getBoolPref("general.autoScroll")) {
    var link = findLink (event.target);
    if (link == null)
    gBrowser.removeCurrentTab({animate: true});
    };
    
    
    function findLink (element) {
    switch (element.tagName) {
    case 'A':
    return element;
    case 'B': case 'I': case 'SPAN': case 'SMALL':
    case 'STRONG': case 'EM': case 'BIG': case 'SUB':
    case 'SUP': case 'IMG': case 'S':
    var parent = element.parentNode.parentNode;
    return parent && findLink (parent);
    default:
    return null;
    };
    };
    
    
    };
    
    
    gBrowser.addEventListener ("click", closeThisTab);
    if (Cc['@mozilla.org/preferences-service;1'].getService(Ci.nsIPrefBranch).getBoolPref("general.autoScroll"))
    alert("Das Skript TabCloseMiddleclickOnPage ist funktionslos, weil der automatische Bildlauf aktiviert ist.");
    Display More

    Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:153.0) Gecko/20100101 Thunderbird/153.4.0, Version Betterbird 153.4.0esr-bb10 (64-bit), Windows 11 Pro Version 26H2 (Build 26300.9550), IMAP Vodafone

Current app version

  • Thunderbird 157.0.1 veröffentlicht

    Thunder October 1, 2026 at 11:49 PM

Current 153 ESR version

  • Thunderbird 153.4.0 ESR veröffentlicht

    Thunder September 29, 2026 at 9:35 PM

Current 140 ESR version

  • Thunderbird 140.17.0 ESR veröffentlicht

    Thunder September 29, 2026 at 9:44 PM

No Advertisements

There are no advertisements here. Maybe you give the website owner (Alexander Ihrig - aka "Thunder") instead something to be able to finance these sites in the long run. Many Thanks!

Thank you for the support!

Coffee to be spent?

Donate now via Paypal*

*Forwarding to PayPal.Me

Thunderbird Mail DE
  1. Imprint & Contact
  2. Privacy Policy
    1. Cookie Policy
  3. Terms of Use
  4. Donation Call for Thunderbird
Help for this website
  • All website support articles
  • How to use website search
  • How to create a forums user account
  • How to create and edit a forums thread
  • How to reset your forums password
Copyright © 2003-2026 Thunderbird Mail DE

You are NOT on an official page of the Mozilla Foundation. Mozilla®, mozilla.org®, Firefox®, Thunderbird™, Bugzilla™, Sunbird®, Seamonkey®, XUL™ and the Thunderbird logo are (among others) registered trademarks of the Mozilla Foundation.

Powered by WoltLab Suite™