Skip to content

Instantly share code, notes, and snippets.

@anekos
Created May 17, 2010 15:24
Show Gist options
  • Save anekos/403876 to your computer and use it in GitHub Desktop.
Save anekos/403876 to your computer and use it in GitHub Desktop.
;F で開くべきタブをバッファし、最後に一気に開く
js <<EOM
liberator.registerObserver(
'enter',
function () {
let scheduled = [];
plugins.libly.$U.around(
events,
'onEscape',
function (next) {
try {
if (scheduled.length)
scheduled.forEach(function (elem) buffer.followLink(elem, liberator.NEW_BACKGROUND_TAB));
} finally {
scheduled = [];
return next();
}
}
);
hints._hintModes['F'].action = function (elem) (liberator.log(elem),scheduled.push(elem), hints.show("F"));
}
);
EOM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment