Is there any way to modify chrome tabs to remove the button that closes the tab?
I've read through chrome develope tab. but I don't see any mention of the close button.
Press Ctrl + W (Windows) or ⌘ Command + W (Mac) on your computer's keyboard to close the tab you're currently using.
First, open the Chrome Browser on your Windows, Mac, or Linux computer. Next, right-click anywhere on the Bookmarks Bar or the “Apps” button itself. This will open a menu, from which you should unselect “Show Apps Shortcut.”
Oops did you mistakenly close a tab you didn't want to? Press Ctrl + Shift + T to undo a closed tab. Pressing this key combination more than once brings back multiple closed tabs.
Not possible at the moment without forking the whole chromium project. See bug report #50913 (Status: WontFix
).
Possible workarounds:
Pin Tab
. This will remove the close button but you can still close it with ctrl+w. Unfortunately, this will also remove the window title.Have a look at the same question on SuperUser: How to disable the close (X) button on Google Chrome tabs?.
Maybe you like to look at the source code of Chromium and fix this? I think you have to start here: tab.cc
.
Edit: The fix below only worked between Chrome version 69 and 71.
It IS possible now for inactive tabs!
I have had lots of problems while trying to switch tab while having 10-15 of them opened, accidentally closing some important tab with lots of text typed which isn't recovered by Ctrl+Shift+T
Here how to do that:
1) Open the Google Chrome browser and type the following text into the address bar:
chrome://flags/#close-buttons-inactive-tabs
This will open the flags page directly with the relevant setting.
2) Set the option named Close buttons on inactive tabs. Set it to Disabled using the drop down list next to the flag's name.
3) Restart Google Chrome by closing it manually or you can also use the Relaunch button which will appear at the very bottom of the page.
4) The close buttons will disappear from inactive tabs.
Before:
After:
That's it!
Source - https://winaero.com/blog/remove-close-buttons-inactive-tabs-google-chrome/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With