diff --git a/build/chrome/background/background.js b/build/chrome/background/background.js index 1d9483b..0a96363 100644 --- a/build/chrome/background/background.js +++ b/build/chrome/background/background.js @@ -1 +1 @@ -var e={name:"Google Chrome",slug:"chrome",scriptVariableMap:{BROWSER:"chrome",MESSENGER:"extension"},manifestMap:{"background.persistent":!1,incognito:"not_allowed",offline_enabled:!1,version_name:"0.1.0"},version:"0.1.0"},n="chrome",r="firefox",t="edge",o="safari",i="https://dissenter.com/discussion/begin-extension?url=",c=function(e){return!l(e)&&!a(e)&&(null!==e&&"object"==typeof e)},s=function(e){return"string"==typeof e||e instanceof String},a=function(e){return!s(e)&&!l(e)&&null!=e&&null!=e&&(e&&"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e))},l=function(e){return Array.isArray(e)};chrome.browserAction.onClicked.addListener(function(){chrome.tabs.create({url:"index.html"})}); \ No newline at end of file +var e={name:"Google Chrome",slug:"chrome",scriptVariableMap:{BROWSER:"chrome",MESSENGER:"extension"},manifestMap:{"background.persistent":!1,incognito:"not_allowed",offline_enabled:!1,version_name:"0.1.0"},version:"0.1.1"},n="chrome",r="firefox",t="edge",o="safari",i="https://dissenter.com/discussion/begin-extension?url=",c=function(e){return!l(e)&&!a(e)&&(null!==e&&"object"==typeof e)},s=function(e){return"string"==typeof e||e instanceof String},a=function(e){return!s(e)&&!l(e)&&null!=e&&null!=e&&(e&&"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e))},l=function(e){return Array.isArray(e)};chrome.browserAction.onClicked.addListener(function(){chrome.tabs.create({url:"index.html"})}); \ No newline at end of file diff --git a/build/chrome/manifest.json b/build/chrome/manifest.json index fa1799a..73c378c 100644 --- a/build/chrome/manifest.json +++ b/build/chrome/manifest.json @@ -1 +1 @@ -{"background.persistent":false,"incognito":"not_allowed","offline_enabled":false,"version_name":"0.1.0","manifest_version":2,"name":"Dissenter Extension","short_name":"Dissenter","description":"Dissenter is the comment section of the Internet.","homepage_url":"https://dissenter.com","version":"0.1.0","icons":{"16":"assets/images/logo/icon-16.png","48":"assets/images/logo/icon-48.png","128":"assets/images/logo/icon-128.png"},"permissions":["activeTab","https://*.dissenter.com/*"],"browser_action":{"default_icon":"assets/images/logo/icon-128.png","default_popup":"popup/popup.html"},"commands":{"_execute_browser_action":{"suggested_key":{"default":"Alt+Shift+D","mac":"Alt+Shift+D"}}},"background":{"scripts":["background/background.js"]},"content_security_policy":"script-src 'self' 'unsafe-eval'; object-src 'self' https://*.dissenter.com/*"} \ No newline at end of file +{"manifest_version":2,"name":"Dissenter Extension","short_name":"Dissenter","description":"Dissenter is the comment section of the Internet.","homepage_url":"https://dissenter.com","version":"0.1.0","icons":{"16":"assets/images/logo/icon-16.png","48":"assets/images/logo/icon-48.png","128":"assets/images/logo/icon-128.png"},"permissions":["activeTab","https://*.dissenter.com/*"],"browser_action":{"default_icon":"assets/images/logo/icon-128.png","default_popup":"popup/popup.html"},"commands":{"_execute_browser_action":{"suggested_key":{"default":"Alt+Shift+D","mac":"Alt+Shift+D"}}},"background":{"scripts":["background/background.js"],"persistent":false},"content_security_policy":"script-src 'self' 'unsafe-eval'; object-src 'self' https://*.dissenter.com/*","incognito":"not_allowed","offline_enabled":false,"version_name":"0.1.0"} \ No newline at end of file diff --git a/build/chrome/popup/popup.js b/build/chrome/popup/popup.js index 25c1fcf..827fd71 100644 --- a/build/chrome/popup/popup.js +++ b/build/chrome/popup/popup.js @@ -1 +1 @@ -var n={name:"Google Chrome",slug:"chrome",scriptVariableMap:{BROWSER:"chrome",MESSENGER:"extension"},manifestMap:{"background.persistent":!1,incognito:"not_allowed",offline_enabled:!1,version_name:"0.1.0"},version:"0.1.0"},e="chrome",t="firefox",i="edge",o="safari",r="https://dissenter.com/discussion/begin-extension?url=",a=function(e){return!s(e)&&!u(e)&&(null!==e&&"object"==typeof e)},c=function(e){return"string"==typeof e||e instanceof String},u=function(e){return!c(e)&&!s(e)&&null!=e&&null!=e&&(e&&"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e))},s=function(e){return Array.isArray(e)},l=function(){document.body,document.getElementById("popup");var i=document.getElementById("popup-iframe");function t(e,t){t,setTimeout(function(){var e=encodeURIComponent(t),n=r+e;i.setAttribute("src",n),i.classList.remove("hidden")},250)}this.init=function(){if(n.slug===o){var e=safari.application.activeBrowserWindow.activeTab;a(e)||(e={});e.title;t(0,e.url||"")}else chrome.tabs.query({active:!0,currentWindow:!0},function(e){if(!e)return!1;var n=e[0]||{};n.title;t(0,n.url||"")})}};document.addEventListener("DOMContentLoaded",function(){(new l).init()}); \ No newline at end of file +var n={name:"Google Chrome",slug:"chrome",scriptVariableMap:{BROWSER:"chrome",MESSENGER:"extension"},manifestMap:{"background.persistent":!1,incognito:"not_allowed",offline_enabled:!1,version_name:"0.1.0"},version:"0.1.1"},e="chrome",t="firefox",i="edge",o="safari",r="https://dissenter.com/discussion/begin-extension?url=",a=function(e){return!s(e)&&!u(e)&&(null!==e&&"object"==typeof e)},c=function(e){return"string"==typeof e||e instanceof String},u=function(e){return!c(e)&&!s(e)&&null!=e&&null!=e&&(e&&"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e))},s=function(e){return Array.isArray(e)},l=function(){document.body,document.getElementById("popup");var i=document.getElementById("popup-iframe");function t(e,t){t,setTimeout(function(){var e=encodeURIComponent(t),n=r+e;i.setAttribute("src",n),i.classList.remove("hidden")},250)}this.init=function(){if(n.slug===o){var e=safari.application.activeBrowserWindow.activeTab;a(e)||(e={});e.title;t(0,e.url||"")}else chrome.tabs.query({active:!0,currentWindow:!0},function(e){if(!e)return!1;var n=e[0]||{};n.title;t(0,n.url||"")})}};document.addEventListener("DOMContentLoaded",function(){(new l).init()}); \ No newline at end of file diff --git a/build/edge/background/background.js b/build/edge/background/background.js index 5def7bd..30826b7 100644 --- a/build/edge/background/background.js +++ b/build/edge/background/background.js @@ -1 +1 @@ -var e={name:"Microsoft Edge",slug:"edge",scriptVariableMap:{BROWSER:"browser",MESSENGER:"runtime"},manifestMap:{},version:"0.1.0"},r="chrome",n="firefox",t="edge",i="safari",o="https://dissenter.com/discussion/begin-extension?url=",s=function(e){return!u(e)&&!c(e)&&(null!==e&&"object"==typeof e)},a=function(e){return"string"==typeof e||e instanceof String},c=function(e){return!a(e)&&!u(e)&&null!=e&&null!=e&&(e&&"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e))},u=function(e){return Array.isArray(e)};browser.browserAction.onClicked.addListener(function(){browser.tabs.create({url:"index.html"})}); \ No newline at end of file +var e={name:"Microsoft Edge",slug:"edge",scriptVariableMap:{BROWSER:"browser",MESSENGER:"runtime"},manifestMap:{"background.persistent":!1},version:"0.1.1"},r="chrome",n="firefox",t="edge",i="safari",o="https://dissenter.com/discussion/begin-extension?url=",s=function(e){return!u(e)&&!c(e)&&(null!==e&&"object"==typeof e)},a=function(e){return"string"==typeof e||e instanceof String},c=function(e){return!a(e)&&!u(e)&&null!=e&&null!=e&&(e&&"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e))},u=function(e){return Array.isArray(e)};browser.browserAction.onClicked.addListener(function(){browser.tabs.create({url:"index.html"})}); \ No newline at end of file diff --git a/build/edge/manifest.json b/build/edge/manifest.json index 6a1e95e..166199a 100644 --- a/build/edge/manifest.json +++ b/build/edge/manifest.json @@ -1 +1 @@ -{"manifest_version":2,"name":"Dissenter Extension","short_name":"Dissenter","description":"Dissenter is the comment section of the Internet.","homepage_url":"https://dissenter.com","version":"0.1.0","icons":{"16":"assets/images/logo/icon-16.png","48":"assets/images/logo/icon-48.png","128":"assets/images/logo/icon-128.png"},"permissions":["activeTab","https://*.dissenter.com/*"],"browser_action":{"default_icon":"assets/images/logo/icon-128.png","default_popup":"popup/popup.html"},"commands":{"_execute_browser_action":{"suggested_key":{"default":"Alt+Shift+D","mac":"Alt+Shift+D"}}},"background":{"scripts":["background/background.js"]},"content_security_policy":"script-src 'self' 'unsafe-eval'; object-src 'self' https://*.dissenter.com/*"} \ No newline at end of file +{"manifest_version":2,"name":"Dissenter Extension","short_name":"Dissenter","description":"Dissenter is the comment section of the Internet.","homepage_url":"https://dissenter.com","version":"0.1.0","icons":{"16":"assets/images/logo/icon-16.png","48":"assets/images/logo/icon-48.png","128":"assets/images/logo/icon-128.png"},"permissions":["activeTab","https://*.dissenter.com/*"],"browser_action":{"default_icon":"assets/images/logo/icon-128.png","default_popup":"popup/popup.html"},"commands":{"_execute_browser_action":{"suggested_key":{"default":"Alt+Shift+D","mac":"Alt+Shift+D"}}},"background":{"scripts":["background/background.js"],"persistent":false},"content_security_policy":"script-src 'self' 'unsafe-eval'; object-src 'self' https://*.dissenter.com/*"} \ No newline at end of file diff --git a/build/edge/popup/popup.js b/build/edge/popup/popup.js index 408f49b..9053e33 100644 --- a/build/edge/popup/popup.js +++ b/build/edge/popup/popup.js @@ -1 +1 @@ -var t={name:"Microsoft Edge",slug:"edge",scriptVariableMap:{BROWSER:"browser",MESSENGER:"runtime"},manifestMap:{},version:"0.1.0"},e="chrome",n="firefox",i="edge",r="safari",o="https://dissenter.com/discussion/begin-extension?url=",u=function(e){return!s(e)&&!c(e)&&(null!==e&&"object"==typeof e)},a=function(e){return"string"==typeof e||e instanceof String},c=function(e){return!a(e)&&!s(e)&&null!=e&&null!=e&&(e&&"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e))},s=function(e){return Array.isArray(e)},f=function(){document.body,document.getElementById("popup");var i=document.getElementById("popup-iframe");function n(e,n){n,setTimeout(function(){var e=encodeURIComponent(n),t=o+e;i.setAttribute("src",t),i.classList.remove("hidden")},250)}this.init=function(){if(t.slug===r){var e=safari.application.activeBrowserWindow.activeTab;u(e)||(e={});e.title;n(0,e.url||"")}else browser.tabs.query({active:!0,currentWindow:!0},function(e){if(!e)return!1;var t=e[0]||{};t.title;n(0,t.url||"")})}};document.addEventListener("DOMContentLoaded",function(){(new f).init()}); \ No newline at end of file +var t={name:"Microsoft Edge",slug:"edge",scriptVariableMap:{BROWSER:"browser",MESSENGER:"runtime"},manifestMap:{"background.persistent":!1},version:"0.1.1"},e="chrome",n="firefox",i="edge",r="safari",o="https://dissenter.com/discussion/begin-extension?url=",u=function(e){return!c(e)&&!a(e)&&(null!==e&&"object"==typeof e)},s=function(e){return"string"==typeof e||e instanceof String},a=function(e){return!s(e)&&!c(e)&&null!=e&&null!=e&&(e&&"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e))},c=function(e){return Array.isArray(e)},d=function(){document.body,document.getElementById("popup");var i=document.getElementById("popup-iframe");function n(e,n){n,setTimeout(function(){var e=encodeURIComponent(n),t=o+e;i.setAttribute("src",t),i.classList.remove("hidden")},250)}this.init=function(){if(t.slug===r){var e=safari.application.activeBrowserWindow.activeTab;u(e)||(e={});e.title;n(0,e.url||"")}else browser.tabs.query({active:!0,currentWindow:!0},function(e){if(!e)return!1;var t=e[0]||{};t.title;n(0,t.url||"")})}};document.addEventListener("DOMContentLoaded",function(){(new d).init()}); \ No newline at end of file