Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
プラグインパス取得
const name = document.currentScript.src.replace(/^.*\/plugins\/(.*).js$/,
(s, a1)=> decodeURIComponent(a1));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment