From 59b8cf9924cd87c5698584758370529f8d5cb874 Mon Sep 17 00:00:00 2001
From: mgabdev <47340266+mgabdev@users.noreply.github.com>
Date: Wed, 13 Mar 2019 02:17:43 -0400
Subject: [PATCH] Ran npm build script
---
build/chrome/background/background.js | 2 +-
build/chrome/content/all/script/script.js | 4 ----
build/chrome/content/reddit/script/script.js | 2 +-
build/chrome/content/twitter/script/script.js | 2 +-
build/chrome/content/youtube/script/script.js | 2 +-
build/chrome/manifest.json | 2 +-
build/chrome/options/options.html | 2 +-
build/chrome/options/options.js | 2 +-
build/chrome/popup/popup.js | 2 +-
build/edge/background/background.js | 2 +-
build/edge/content/all/script/script.js | 4 ----
build/edge/content/reddit/script/script.js | 2 +-
build/edge/content/twitter/script/script.js | 2 +-
build/edge/content/youtube/script/script.js | 2 +-
build/edge/manifest.json | 2 +-
build/edge/options/options.html | 2 +-
build/edge/options/options.js | 2 +-
build/edge/popup/popup.js | 2 +-
build/firefox/background/background.js | 2 +-
build/firefox/content/all/script/script.js | 4 ----
build/firefox/content/reddit/script/script.js | 2 +-
build/firefox/content/twitter/script/script.js | 2 +-
build/firefox/content/youtube/script/script.js | 2 +-
build/firefox/manifest.json | 2 +-
build/firefox/options/options.html | 2 +-
build/firefox/options/options.js | 2 +-
build/firefox/popup/popup.js | 2 +-
build/firefox/sidebar/sidebar.js | 2 +-
build/safari/dissenter.safariextension/Info.plist | 2 +-
build/safari/dissenter.safariextension/popup/popup.js | 2 +-
30 files changed, 27 insertions(+), 39 deletions(-)
delete mode 100644 build/chrome/content/all/script/script.js
delete mode 100644 build/edge/content/all/script/script.js
delete mode 100644 build/firefox/content/all/script/script.js
diff --git a/build/chrome/background/background.js b/build/chrome/background/background.js
index 85694cc..97a83da 100644
--- a/build/chrome/background/background.js
+++ b/build/chrome/background/background.js
@@ -1,4 +1,4 @@
/* Automatically generated file. Do not edit directly.
Copyright (C) 2019 Gab AI, Inc.
All Rights Reserved */
-var BROWSER_CONFIG={name:"Google Chrome",slug:"chrome",version:"0.1.3"},BROWSER_CHROME_SLUG="chrome",BROWSER_FIREFOX_SLUG="firefox",BROWSER_EDGE_SLUG="edge",BROWSER_SAFARI_SLUG="safari",BASE_URI="https://dissenter.com/discussion/begin-extension?url=",BACKGROUND_ACTION_OPEN_POPUP="open_popup",BACKGROUND_ACTION_GET_KEY="get_key",BACKGROUND_ACTION_SET_KEY="set_key",COLOR_GAB_GREEN="#21cf7b",STORAGE_BASE="gab_dissenter_extension_data",TWITTER_BUTTONS_ENABLED="twitter_buttons_enabled",REDDIT_BUTTONS_ENABLED="reddit_buttons_enabled",YOUTUBE_BUTTONS_ENABLED="youtube_buttons_enabled",WINDOW_SIDEBAR_UNAVAILABLE_ENABLED="window_sidebar_unavailable_enabled",STORAGE_DEFAULT_PARAMS={};STORAGE_DEFAULT_PARAMS[TWITTER_BUTTONS_ENABLED]=!0,STORAGE_DEFAULT_PARAMS[REDDIT_BUTTONS_ENABLED]=!0,STORAGE_DEFAULT_PARAMS[YOUTUBE_BUTTONS_ENABLED]=!0,STORAGE_DEFAULT_PARAMS[WINDOW_SIDEBAR_UNAVAILABLE_ENABLED]=!0;var STORAGE_KEY_ALL="all",isObject=function(e){return!isArray(e)&&!isDate(e)&&(null!==e&&"object"==typeof e)},isString=function(e){return"string"==typeof e||e instanceof String},isDate=function(e){return!isString(e)&&!isArray(e)&&null!=e&&null!=e&&(e&&"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e))},isArray=function(e){return Array.isArray(e)};function ready(e){var t=document;"loading"==t.readyState?t.addEventListener("DOMContentLoaded",e):e()}function getQueryStringValue(e){return decodeURIComponent(window.location.search.replace(new RegExp("^(?:.*[&\\?]"+encodeURIComponent(e).replace(/[\.\+\*]/g,"\\$&")+"(?:\\=([^&]*))?)?.*$","i"),"$1"))}function GDEStorage(){var e=this;function r(){return null!=window.localStorage&&(window.localStorage[STORAGE_BASE]||isObject(window.localStorage[STORAGE_BASE])||(window.localStorage[STORAGE_BASE]=JSON.stringify(STORAGE_DEFAULT_PARAMS)),!0)}e.init=function(){return r(),!0},e.getValue=function(e){r();var t=window.localStorage[STORAGE_BASE];return t=JSON.parse(t),e===STORAGE_KEY_ALL?t:t[e]},e.setValue=function(e,t){r();var n=window.localStorage[STORAGE_BASE];return(n=JSON.parse(n))[e]=t,window.localStorage[STORAGE_BASE]=JSON.stringify(n),!0},e.logout=function(){return null!=window.localStorage&&(e.setValue(STORAGE_KEY_LOGGED_IN,!1),!0)}}chrome.browserAction.onClicked.addListener(function(){chrome.tabs.create({url:"index.html"})}),chrome.runtime.onMessage.addListener(function(e,t,n){var r=e.action||"";if(r===BACKGROUND_ACTION_OPEN_POPUP){var o=e.url||"",_=e.height||0,E=screen.width,i=screen.height-_,A=chrome.extension.getURL("popup/popup.html?url="+o),a=gdes.getValue(WINDOW_SIDEBAR_UNAVAILABLE_ENABLED);if(BROWSER_CONFIG.slug===BROWSER_FIREFOX_SLUG&&!a)return chrome.runtime.sendMessage({url:o}),!0;chrome.windows.create({url:A,width:420,height:_,top:i,left:E,type:"popup"})}else if(r===BACKGROUND_ACTION_GET_KEY){if(!(l=e.key||""))return n&&n(null),!0;var S=gdes.getValue(l);n&&n(S)}else if(r===BACKGROUND_ACTION_SET_KEY){var l=e.key||"";S=e.value||"";if(!l)return!0;gdes.setValue(l,S)}return!0});var gdes=new GDEStorage;gdes.init();
\ No newline at end of file
+var BROWSER_CONFIG={name:"Google Chrome",slug:"chrome",version:"0.1.4"},BROWSER_CHROME_SLUG="chrome",BROWSER_FIREFOX_SLUG="firefox",BROWSER_EDGE_SLUG="edge",BROWSER_SAFARI_SLUG="safari",BASE_URI="https://dissenter.com/discussion/begin-extension?url=",BACKGROUND_ACTION_OPEN_POPUP="open_popup",BACKGROUND_ACTION_GET_KEY="get_key",BACKGROUND_ACTION_SET_KEY="set_key",COLOR_GAB_GREEN="#21cf7b",STORAGE_BASE="gab_dissenter_extension_data",TWITTER_BUTTONS_ENABLED="twitter_buttons_enabled",REDDIT_BUTTONS_ENABLED="reddit_buttons_enabled",YOUTUBE_BUTTONS_ENABLED="youtube_buttons_enabled",WINDOW_SIDEBAR_UNAVAILABLE_ENABLED="window_sidebar_unavailable_enabled",STORAGE_DEFAULT_PARAMS={};STORAGE_DEFAULT_PARAMS[TWITTER_BUTTONS_ENABLED]=!0,STORAGE_DEFAULT_PARAMS[REDDIT_BUTTONS_ENABLED]=!0,STORAGE_DEFAULT_PARAMS[YOUTUBE_BUTTONS_ENABLED]=!0,STORAGE_DEFAULT_PARAMS[WINDOW_SIDEBAR_UNAVAILABLE_ENABLED]=!0;var STORAGE_KEY_ALL="all",isObject=function(e){return!isArray(e)&&!isDate(e)&&(null!==e&&"object"==typeof e)},isString=function(e){return"string"==typeof e||e instanceof String},isDate=function(e){return!isString(e)&&!isArray(e)&&null!=e&&null!=e&&(e&&"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e))},isArray=function(e){return Array.isArray(e)};function ready(e){var t=document;"loading"==t.readyState?t.addEventListener("DOMContentLoaded",e):e()}function getQueryStringValue(e){return decodeURIComponent(window.location.search.replace(new RegExp("^(?:.*[&\\?]"+encodeURIComponent(e).replace(/[\.\+\*]/g,"\\$&")+"(?:\\=([^&]*))?)?.*$","i"),"$1"))}function GDEStorage(){var e=this;function r(){return null!=window.localStorage&&(window.localStorage[STORAGE_BASE]||isObject(window.localStorage[STORAGE_BASE])||(window.localStorage[STORAGE_BASE]=JSON.stringify(STORAGE_DEFAULT_PARAMS)),!0)}e.init=function(){return r(),!0},e.getValue=function(e){r();var t=window.localStorage[STORAGE_BASE];return t=JSON.parse(t),e===STORAGE_KEY_ALL?t:t[e]},e.setValue=function(e,t){r();var n=window.localStorage[STORAGE_BASE];return(n=JSON.parse(n))[e]=t,window.localStorage[STORAGE_BASE]=JSON.stringify(n),!0},e.logout=function(){return null!=window.localStorage&&(e.setValue(STORAGE_KEY_LOGGED_IN,!1),!0)}}chrome.browserAction.onClicked.addListener(function(){chrome.tabs.create({url:"index.html"})}),chrome.runtime.onMessage.addListener(function(e,t,n){var r=e.action||"";if(r===BACKGROUND_ACTION_OPEN_POPUP){var o=e.url||"",_=e.height||0,E=screen.width,i=screen.height-_,A=chrome.extension.getURL("popup/popup.html?url="+o),a=gdes.getValue(WINDOW_SIDEBAR_UNAVAILABLE_ENABLED);if(BROWSER_CONFIG.slug===BROWSER_FIREFOX_SLUG&&!a)return chrome.runtime.sendMessage({url:o}),!0;chrome.windows.create({url:A,width:420,height:_,top:i,left:E,type:"popup"})}else if(r===BACKGROUND_ACTION_GET_KEY){if(!(l=e.key||""))return n&&n(null),!0;var S=gdes.getValue(l);n&&n(S)}else if(r===BACKGROUND_ACTION_SET_KEY){var l=e.key||"";S=e.value||"";if(!l)return!0;gdes.setValue(l,S)}return!0});var gdes=new GDEStorage;gdes.init();
\ No newline at end of file
diff --git a/build/chrome/content/all/script/script.js b/build/chrome/content/all/script/script.js
deleted file mode 100644
index e9de73c..0000000
--- a/build/chrome/content/all/script/script.js
+++ /dev/null
@@ -1,4 +0,0 @@
-/* Automatically generated file. Do not edit directly.
-Copyright (C) 2019 Gab AI, Inc.
-All Rights Reserved */
-var BROWSER_CONFIG={name:"Google Chrome",slug:"chrome",version:"0.1.3"},BROWSER_CHROME_SLUG="chrome",BROWSER_FIREFOX_SLUG="firefox",BROWSER_EDGE_SLUG="edge",BROWSER_SAFARI_SLUG="safari",BASE_URI="https://dissenter.com/discussion/begin-extension?url=",BACKGROUND_ACTION_OPEN_POPUP="open_popup",COLOR_GAB_GREEN="#21cf7b",isObject=function(t){return!isArray(t)&&!isDate(t)&&(null!==t&&"object"==typeof t)},isString=function(t){return"string"==typeof t||t instanceof String},isDate=function(t){return!isString(t)&&!isArray(t)&&null!=t&&null!=t&&(t&&"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(t))},isArray=function(t){return Array.isArray(t)};function ready(t){var e=document;"loading"==e.readyState?e.addEventListener("DOMContentLoaded",t):t()}function getQueryStringValue(t){return decodeURIComponent(window.location.search.replace(new RegExp("^(?:.*[&\\?]"+encodeURIComponent(t).replace(/[\.\+\*]/g,"\\$&")+"(?:\\=([^&]*))?)?.*$","i"),"$1"))}var GDAll=function(){var t=function(){function t(){var t=document.getElementById("disqus_thread");if(!t)return!1;var e=function(){var t=document.createElement("div");t.style.setProperty("display","block","important"),t.style.setProperty("width","100%","important"),t.style.setProperty("height","80px","important"),t.style.setProperty("padding","20px 0","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("box-sizing","border-box","important");var e=document.createElement("a");return e.textContent="View Comments on Dissenter",e.style.setProperty("display","block","important"),e.style.setProperty("width","100%","important"),e.style.setProperty("height","40px","important"),e.style.setProperty("background-color",COLOR_GAB_GREEN,"important"),e.style.setProperty("color","#fff","important"),e.style.setProperty("border-radius","4px","important"),e.style.setProperty("text-align","center","important"),e.style.setProperty("margin","0 auto","important"),e.style.setProperty("line-height","40px","important"),e.style.setProperty("font-size","14px","important"),e.style.setProperty("box-sizing","border-box","important"),e.style.setProperty("cursor","pointer","important"),t.appendChild(e),t}();return t.parentElement.insertBefore(e,t),e.onclick=r,!0}function r(){var t=window.location.href,e=window.innerHeight;chrome.runtime.sendMessage({action:BACKGROUND_ACTION_OPEN_POPUP,url:t,height:e})}this.init=function(){t()}};this.init=function(){(new t).init()}};ready(function(){setTimeout(function(){(new GDAll).init()},5e3)});
\ No newline at end of file
diff --git a/build/chrome/content/reddit/script/script.js b/build/chrome/content/reddit/script/script.js
index 87bf2fb..ceb438f 100644
--- a/build/chrome/content/reddit/script/script.js
+++ b/build/chrome/content/reddit/script/script.js
@@ -1,4 +1,4 @@
/* Automatically generated file. Do not edit directly.
Copyright (C) 2019 Gab AI, Inc.
All Rights Reserved */
-var BROWSER_CONFIG={name:"Google Chrome",slug:"chrome",version:"0.1.3"},BROWSER_CHROME_SLUG="chrome",BROWSER_FIREFOX_SLUG="firefox",BROWSER_EDGE_SLUG="edge",BROWSER_SAFARI_SLUG="safari",BASE_URI="https://dissenter.com/discussion/begin-extension?url=",BACKGROUND_ACTION_OPEN_POPUP="open_popup",BACKGROUND_ACTION_GET_KEY="get_key",BACKGROUND_ACTION_SET_KEY="set_key",COLOR_GAB_GREEN="#21cf7b",STORAGE_BASE="gab_dissenter_extension_data",TWITTER_BUTTONS_ENABLED="twitter_buttons_enabled",REDDIT_BUTTONS_ENABLED="reddit_buttons_enabled",YOUTUBE_BUTTONS_ENABLED="youtube_buttons_enabled",WINDOW_SIDEBAR_UNAVAILABLE_ENABLED="window_sidebar_unavailable_enabled",STORAGE_DEFAULT_PARAMS={};STORAGE_DEFAULT_PARAMS[TWITTER_BUTTONS_ENABLED]=!0,STORAGE_DEFAULT_PARAMS[REDDIT_BUTTONS_ENABLED]=!0,STORAGE_DEFAULT_PARAMS[YOUTUBE_BUTTONS_ENABLED]=!0,STORAGE_DEFAULT_PARAMS[WINDOW_SIDEBAR_UNAVAILABLE_ENABLED]=!0;var STORAGE_KEY_ALL="all",isObject=function(t){return!isArray(t)&&!isDate(t)&&(null!==t&&"object"==typeof t)},isString=function(t){return"string"==typeof t||t instanceof String},isDate=function(t){return!isString(t)&&!isArray(t)&&null!=t&&null!=t&&(t&&"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(t))},isArray=function(t){return Array.isArray(t)};function ready(t){var e=document;"loading"==e.readyState?e.addEventListener("DOMContentLoaded",t):t()}function getQueryStringValue(t){return decodeURIComponent(window.location.search.replace(new RegExp("^(?:.*[&\\?]"+encodeURIComponent(t).replace(/[\.\+\*]/g,"\\$&")+"(?:\\=([^&]*))?)?.*$","i"),"$1"))}var GDReddit=function(){var a=[];function s(){var t=document.querySelectorAll('a[data-click-id="comments"][data-test-id="comments-page-link-num-comments"]');if(!t)return!1;for(var e=0;e
Dissenter Extension - Options
\ No newline at end of file
+Access to the tab lasts while the you are on that page, and is revoked when the you navigates away or closes the tab.