Last active
May 23, 2020 23:05
-
-
Save hyuki/5bc01c42ea13b367417fa3691bbfea1a to your computer and use it in GitHub Desktop.
EsaBacklogCommand.js
This file contains 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
/* | |
* 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(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Command:
https://gist.github.com/hyuki/e67b456e3d9604200eb63de3fb9093ec