Created
October 12, 2012 06:02
-
-
Save eagletmt/3877563 to your computer and use it in GitHub Desktop.
:tabopen したときに、about:newtab があったらそこに開く
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
let U = liberator.plugins.libly.$U; | |
let tabopen = commands.get('tabopen'); | |
let open = commands.get('open'); | |
U.around(tabopen, 'action', function(next, args) { | |
for each ([idx, tab] in tabs.browsers) { | |
if (tab.currentURI.spec == 'about:newtab') { | |
tabs.select(idx); | |
return open.action.apply(open, args); | |
} | |
} | |
return next(); | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment