Skip to content

Instantly share code, notes, and snippets.

@anekos
Last active September 26, 2015 02:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anekos/1028562 to your computer and use it in GitHub Desktop.
Save anekos/1028562 to your computer and use it in GitHub Desktop.
autocmd 駆動時のエコーをやめる
js <<EOM
let (original = liberator.echomsg)
liberator.echomsg = function (msg) {
const REAC = RegExp('-> liberator://template/chrome://liberator/content/as\\.js:\\d+');
if (Error().stack.split(/\n/).some(RegExp.prototype.test.bind(REAC)) && /Executing .* Auto commands for .*/.test(msg))
liberator.log(msg);
else
original.apply(liberator, arguments);
};
EOM
@anekos
Copy link
Author

anekos commented Jun 16, 2011

rc ファイルに入れておけばOK ( :js <<EOM ... EOM などとすること)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment