diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 18d8bec..1b8b2ef 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,4 +1,4 @@ -### Installed Version: 1.X.X Environment: Chrome/Tampermonkey +e### Installed Version: 1.X.X Environment: Chrome/Tampermonkey ### Current Behaviour diff --git a/sox.common.js b/sox.common.js index 8eeb007..182f40e 100644 --- a/sox.common.js +++ b/sox.common.js @@ -45,7 +45,6 @@ } }; - //var Stack = (typeof StackExchange === "undefined" ? window.eval('if (typeof StackExchange != "undefined") StackExchange') : StackExchange) | undefined; let Chat; let Stack; if (location.href.indexOf('github.com') === -1) { //need this so it works on FF -- CSP blocks window.eval() it seems @@ -256,6 +255,50 @@ const siteMatch = link.replace(/https?:\/\//, '').match(siteRegex); return siteMatch ? siteMatch[1] : null; }, + createModal: function (params) { + const $dialog = $('