diff --git a/build/chrome/background/background.js b/build/chrome/background/background.js index 0a96363..9f7bff6 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.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 +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.1",version:"0.1.1"},version:"0.1.1"},n="chrome",r="firefox",o="edge",t="safari",i="https://dissenter.com/discussion/begin-extension?url=",s=function(e){return!l(e)&&!a(e)&&(null!==e&&"object"==typeof e)},c=function(e){return"string"==typeof e||e instanceof String},a=function(e){return!c(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 73c378c..b99c6e8 100644 --- a/build/chrome/manifest.json +++ b/build/chrome/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"],"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 +{"manifest_version":2,"name":"Dissenter Extension","short_name":"Dissenter","description":"Dissenter is the comment section of the Internet.","homepage_url":"https://dissenter.com","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.1","version":"0.1.1"} \ No newline at end of file diff --git a/build/chrome/popup/popup.js b/build/chrome/popup/popup.js index 827fd71..59db136 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.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 +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.1",version:"0.1.1"},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 30826b7..91316e8 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:{"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 +var e={name:"Microsoft Edge",slug:"edge",scriptVariableMap:{BROWSER:"browser",MESSENGER:"runtime"},manifestMap:{"background.persistent":!1,version:"0.1.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 166199a..2924311 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"],"persistent":false},"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","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/*","version":"0.1.1"} \ No newline at end of file diff --git a/build/edge/popup/popup.js b/build/edge/popup/popup.js index 9053e33..03383a5 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:{"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 +var t={name:"Microsoft Edge",slug:"edge",scriptVariableMap:{BROWSER:"browser",MESSENGER:"runtime"},manifestMap:{"background.persistent":!1,version:"0.1.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 diff --git a/build/firefox/background/background.js b/build/firefox/background/background.js index bf7b917..b9854c7 100644 --- a/build/firefox/background/background.js +++ b/build/firefox/background/background.js @@ -1 +1 @@ -var r={name:"Mozilla Firefox",slug:"firefox",scriptVariableMap:{BROWSER:"browser",MESSENGER:"runtime"},manifestMap:{},version:"0.1.0"},e="chrome",n="firefox",t="edge",i="safari",o="https://dissenter.com/discussion/begin-extension?url=",s=function(r){return!u(r)&&!c(r)&&(null!==r&&"object"==typeof r)},a=function(r){return"string"==typeof r||r instanceof String},c=function(r){return!a(r)&&!u(r)&&null!=r&&null!=r&&(r&&"[object Date]"===Object.prototype.toString.call(r)&&!isNaN(r))},u=function(r){return Array.isArray(r)};browser.browserAction.onClicked.addListener(function(){browser.tabs.create({url:"index.html"})}); \ No newline at end of file +var r={name:"Mozilla Firefox",slug:"firefox",scriptVariableMap:{BROWSER:"browser",MESSENGER:"runtime"},manifestMap:{version:"0.1.0"},version:"0.1.0"},e="chrome",n="firefox",t="edge",i="safari",o="https://dissenter.com/discussion/begin-extension?url=",s=function(r){return!u(r)&&!c(r)&&(null!==r&&"object"==typeof r)},a=function(r){return"string"==typeof r||r instanceof String},c=function(r){return!a(r)&&!u(r)&&null!=r&&null!=r&&(r&&"[object Date]"===Object.prototype.toString.call(r)&&!isNaN(r))},u=function(r){return Array.isArray(r)};browser.browserAction.onClicked.addListener(function(){browser.tabs.create({url:"index.html"})}); \ No newline at end of file diff --git a/build/firefox/manifest.json b/build/firefox/manifest.json index 6a1e95e..0f8c125 100644 --- a/build/firefox/manifest.json +++ b/build/firefox/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","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/*","version":"0.1.0"} \ No newline at end of file diff --git a/build/firefox/popup/popup.js b/build/firefox/popup/popup.js index baeff8e..b1e02c0 100644 --- a/build/firefox/popup/popup.js +++ b/build/firefox/popup/popup.js @@ -1 +1 @@ -var t={name:"Mozilla Firefox",slug:"firefox",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:"Mozilla Firefox",slug:"firefox",scriptVariableMap:{BROWSER:"browser",MESSENGER:"runtime"},manifestMap:{version:"0.1.0"},version:"0.1.0"},e="chrome",n="firefox",i="edge",r="safari",o="https://dissenter.com/discussion/begin-extension?url=",u=function(e){return!c(e)&&!s(e)&&(null!==e&&"object"==typeof e)},a=function(e){return"string"==typeof e||e instanceof String},s=function(e){return!a(e)&&!c(e)&&null!=e&&null!=e&&(e&&"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e))},c=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