Tab renamer 的评价
Tab renamer 作者: Yassine badri
1 条评价
- 评分 4 / 5来自 insertname1, 3 年前No-frills tab renamer. I'll give 5 stars if you fix the bug where pressing "cancel" on the popup renames the tab to "null". Should be easy to fix.
I read the source code and I suggest something like this:
var ttl = prompt("Enter new title");
/*Only renames tab if prompt returns a "truthy" value, aka not an empty string, null, undefined, etc.*/
if(ttl){
document.title = ttl;
}