Open in new tab 的评价
Open in new tab 作者: Ramkumar K R
Mirko 的评价
评分 5 / 5
来自 Mirko,7 年前Please, change tabify.js this way:
for(var item in items){
var re = new RegExp( '^'+item.replace('*','.*')+'$' );
if (re.test(hostName)){
addTarget();
}
}
This would allow us to specify domain* or *domain or even * as hostname (to allow all opening in new tab for all domains).
A secondary field "exclude domains" would improve this further. If Allowed (*) and not Denied, thus addTarget.
Thank you
for(var item in items){
var re = new RegExp( '^'+item.replace('*','.*')+'$' );
if (re.test(hostName)){
addTarget();
}
}
This would allow us to specify domain* or *domain or even * as hostname (to allow all opening in new tab for all domains).
A secondary field "exclude domains" would improve this further. If Allowed (*) and not Denied, thus addTarget.
Thank you
开发者回应
发布于 7 年前Hi,
Thanks for the suggestion. It is a wonderful idea to define a regex for the hostname.
However, there are few concerns such as the actions to be shown in the popup when a regex matches the url
Can you send a pull request so that we can discuss more about it there?
Link to the repo- https://github.com/ramkumar-kr/open-in-new-tab
Thanks
Thanks for the suggestion. It is a wonderful idea to define a regex for the hostname.
However, there are few concerns such as the actions to be shown in the popup when a regex matches the url
Can you send a pull request so that we can discuss more about it there?
Link to the repo- https://github.com/ramkumar-kr/open-in-new-tab
Thanks