Skip to content

Instantly share code, notes, and snippets.

@hyuki
Last active May 23, 2020 23:05
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 hyuki/5bc01c42ea13b367417fa3691bbfea1a to your computer and use it in GitHub Desktop.
Save hyuki/5bc01c42ea13b367417fa3691bbfea1a to your computer and use it in GitHub Desktop.
EsaBacklogCommand.js
/*
* EsaBacklogCommand.js
*
* When you see:
* https://esa-pages.io/...
* Then show the following line:
* esa-backlog "https://esa-pages.io/..." | pbcopy
*/
function start() {
let url = location.href;
if (url.match(/^(https?:\/\/esa-pages\.io\/.*)/)) {
let cmd = 'esa-backlog "' + RegExp.$1 + '" | pbcopy';
window.prompt("EsaBacklogCommand.js", cmd);
} else {
alert("esa-pages.io URL is not found.\n" + url);
}
}
start();
@hyuki
Copy link
Author

hyuki commented May 23, 2020

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