Skip to content

Instantly share code, notes, and snippets.

@triacontane
Created June 21, 2021 17:00
Show Gist options
  • Save triacontane/71064daf535160d4d355aeb9bc3c49f9 to your computer and use it in GitHub Desktop.
Save triacontane/71064daf535160d4d355aeb9bc3c49f9 to your computer and use it in GitHub Desktop.
プラグインパス取得
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