最近搜索


没有最近搜索

Jonathan Coleman's Avatar

Jonathan Coleman

已加入2021年4月16日

·

最后活动2021年10月27日

关注

0

关注者

0

活动总数

5

投票

2

订阅

1

活动概览

的最新活动 Jonathan Coleman

Jonathan Coleman 进行了评论,

社区评论 Q&A - Tickets and email

@Andriy

You will need to install an extension which allows user scripts. For example Tampermonkey for Chrome. From the extension, add a new script and copy/paste in the code.

The shortcut key combo I assigned in the script is CTRL + SHIFT + Z.

查看评论 · 已于 2018年11月13日 发布 · Jonathan Coleman

0

关注者

0

投票

0

评论


Jonathan Coleman 进行了评论,

社区评论 Q&A - Tickets and email

This should work in Chrome (probably any other modern browser too) and prevents the issue Olaf describes.

javascript:(function () {[...document.querySelectorAll('li.tab .close')].reverse().forEach(btn => btn.click())})()
 
and if you want to close all but the selected tab:
 
javascript:(function () {[...document.querySelectorAll('li.tab:not(.selected) .close')].reverse().forEach(btn => btn.click())})()
 
And if you want to use it with a keyboard shortcut, you can use this user script I created:
 
 
Thanks Andrew for the inspiration

查看评论 · 已于 2018年8月30日 发布 · Jonathan Coleman

0

关注者

0

投票

0

评论