From 2ce1e03270fc5dd669cd24dfbfb92c3e65530596 Mon Sep 17 00:00:00 2001 From: hover-inc Date: Tue, 28 Jul 2020 21:01:05 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=A6=20v2.2.1=20published?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- dist/asset-manifest.json | 6 +++--- dist/manifest.json | 2 +- dist/popup.html | 2 +- ...cache-manifest.a330f22b254970a63823ee2ca8c83a5d.js} | 8 ++++---- dist/service-worker.js | 2 +- .../{main.0cfabc6b.chunk.js => main.16eb4adc.chunk.js} | 2 +- src/App.js | 6 +++--- src/{DonateBtn.js => ReportBtn.js} | 10 +++++----- 9 files changed, 21 insertions(+), 21 deletions(-) rename dist/{precache-manifest.713e848bfd266a29babd6b3698f8d6c2.js => precache-manifest.a330f22b254970a63823ee2ca8c83a5d.js} (76%) rename dist/static/js/{main.0cfabc6b.chunk.js => main.16eb4adc.chunk.js} (64%) rename src/{DonateBtn.js => ReportBtn.js} (64%) diff --git a/README.md b/README.md index e63c2a4..46e303d 100644 --- a/README.md +++ b/README.md @@ -19,8 +19,8 @@ Blocks ads on websites without getting detected. Fork the repository and improve Hover! Make edits in src folder, and then run ```npm run build```. This will create the dist folder, which is used by browsers. -Current stable version: 2.2.0 -Dev version: 2.2.1 +Current stable version: 2.2.1 +Dev version: 2.2.2 ## Next Steps Transfer into a Firefox extension. \ No newline at end of file diff --git a/dist/asset-manifest.json b/dist/asset-manifest.json index 855702b..24ba144 100644 --- a/dist/asset-manifest.json +++ b/dist/asset-manifest.json @@ -1,11 +1,11 @@ { "files": { "main.css": "/static/css/main.bfd9321d.chunk.css", - "main.js": "/static/js/main.0cfabc6b.chunk.js", + "main.js": "/static/js/main.16eb4adc.chunk.js", "runtime-main.js": "/static/js/runtime-main.a7c909dd.js", "static/js/2.2f5ddc2b.chunk.js": "/static/js/2.2f5ddc2b.chunk.js", "index.html": "/index.html", - "precache-manifest.713e848bfd266a29babd6b3698f8d6c2.js": "/precache-manifest.713e848bfd266a29babd6b3698f8d6c2.js", + "precache-manifest.a330f22b254970a63823ee2ca8c83a5d.js": "/precache-manifest.a330f22b254970a63823ee2ca8c83a5d.js", "service-worker.js": "/service-worker.js", "static/js/2.2f5ddc2b.chunk.js.LICENSE.txt": "/static/js/2.2f5ddc2b.chunk.js.LICENSE.txt", "static/media/hover_logo.jpg": "/static/media/hover_logo.d2a9c858.jpg" @@ -14,6 +14,6 @@ "static/js/runtime-main.a7c909dd.js", "static/js/2.2f5ddc2b.chunk.js", "static/css/main.bfd9321d.chunk.css", - "static/js/main.0cfabc6b.chunk.js" + "static/js/main.16eb4adc.chunk.js" ] } \ No newline at end of file diff --git a/dist/manifest.json b/dist/manifest.json index 05f02cc..6a75066 100644 --- a/dist/manifest.json +++ b/dist/manifest.json @@ -2,7 +2,7 @@ "name": "Hover - Bypass Paywalls & Subscription Walls", "description": "Hover is an undetectable, lightweight extension that automatically bypasses paywalls and blocks all ads.", "manifest_version": 2, - "version": "2.2.0", + "version": "2.2.1", "background": { "scripts": ["bg_scripts/tab_data.js", "bg_scripts/adblock_scripts/ad_domains.js", diff --git a/dist/popup.html b/dist/popup.html index 329fb0d..0efa53b 100644 --- a/dist/popup.html +++ b/dist/popup.html @@ -1 +1 @@ -React App
\ No newline at end of file +React App
\ No newline at end of file diff --git a/dist/precache-manifest.713e848bfd266a29babd6b3698f8d6c2.js b/dist/precache-manifest.a330f22b254970a63823ee2ca8c83a5d.js similarity index 76% rename from dist/precache-manifest.713e848bfd266a29babd6b3698f8d6c2.js rename to dist/precache-manifest.a330f22b254970a63823ee2ca8c83a5d.js index c7ac645..dffd85a 100644 --- a/dist/precache-manifest.713e848bfd266a29babd6b3698f8d6c2.js +++ b/dist/precache-manifest.a330f22b254970a63823ee2ca8c83a5d.js @@ -1,10 +1,10 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([ { - "revision": "0a74db074cfc418722b86e1bd9d9437e", + "revision": "1613891ffeec961695a975d780b87059", "url": "/index.html" }, { - "revision": "f84383bc27009d7bb72e", + "revision": "ef756f8278375e132ec6", "url": "/static/css/main.bfd9321d.chunk.css" }, { @@ -16,8 +16,8 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([ "url": "/static/js/2.2f5ddc2b.chunk.js.LICENSE.txt" }, { - "revision": "f84383bc27009d7bb72e", - "url": "/static/js/main.0cfabc6b.chunk.js" + "revision": "ef756f8278375e132ec6", + "url": "/static/js/main.16eb4adc.chunk.js" }, { "revision": "9dc1355d6503cab5a502", diff --git a/dist/service-worker.js b/dist/service-worker.js index 31ed845..596675a 100644 --- a/dist/service-worker.js +++ b/dist/service-worker.js @@ -14,7 +14,7 @@ importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js"); importScripts( - "/precache-manifest.713e848bfd266a29babd6b3698f8d6c2.js" + "/precache-manifest.a330f22b254970a63823ee2ca8c83a5d.js" ); self.addEventListener('message', (event) => { diff --git a/dist/static/js/main.0cfabc6b.chunk.js b/dist/static/js/main.16eb4adc.chunk.js similarity index 64% rename from dist/static/js/main.0cfabc6b.chunk.js rename to dist/static/js/main.16eb4adc.chunk.js index da834e7..76dd148 100644 --- a/dist/static/js/main.0cfabc6b.chunk.js +++ b/dist/static/js/main.16eb4adc.chunk.js @@ -1 +1 @@ -(this.webpackJsonphover=this.webpackJsonphover||[]).push([[0],{22:function(e,t,a){e.exports=a.p+"static/media/hover_logo.d2a9c858.jpg"},24:function(e,t,a){e.exports=a(34)},29:function(e,t,a){},30:function(e,t,a){},34:function(e,t,a){"use strict";a.r(t);var n=a(0),l=a.n(n),o=a(15),r=a.n(o),i=(a(29),a(7)),c=a(8),s=a(5),d=a(10),u=a(9),m=a(14),h=a(12),b=a(6),g=a(23),k=a(18),p=a(16),f=a(17),v=a.n(f),E=function(e){Object(d.a)(a,e);var t=Object(u.a)(a);function a(e){var n;return Object(i.a)(this,a),(n=t.call(this,e)).toggleAdblock=function(e){chrome.extension.getBackgroundPage().adblockEnabled=e,e?n.removeFromWhitelist():n.addToWhitelist(),n.setState((function(){return{enabled:e}})),chrome.tabs.reload()},n.addToWhitelist=function(){var e=chrome.extension.getBackgroundPage();e.getCurrentTabRoot(e.addToAdblockWhitelist),e.adblockEnabled=!1,e.adblockInWhitelist=!0,n.setState((function(){return{enabled:!1,inWhitelist:!0}})),n.props.rerenderParentCallback(),chrome.tabs.reload()},n.removeFromWhitelist=function(){var e=chrome.extension.getBackgroundPage();e.getCurrentTabRoot(e.removeFromAdblockWhitelist),e.adblockEnabled=!0,e.adblockInWhitelist=!1,n.setState((function(){return{enabled:!0,inWhitelist:!1}})),n.props.rerenderParentCallback(),chrome.tabs.reload()},n.addToWhitelist=n.addToWhitelist.bind(Object(s.a)(n)),n.removeFromWhitelist=n.removeFromWhitelist.bind(Object(s.a)(n)),n.state={enabled:chrome.extension.getBackgroundPage().adblockEnabled,inWhitelist:chrome.extension.getBackgroundPage().adblockInWhitelist},n}return Object(c.a)(a,[{key:"render",value:function(){var e,t=chrome.extension.getBackgroundPage();return console.log("inWhitelist Adblock: "+t.adblockInWhitelist),e=l.a.createElement(v.a,{onChange:this.toggleAdblock,checked:this.state.enabled,onlabel:"On ",offlabel:"Off",width:65,onstyle:"info"}),l.a.createElement(m.a,{fluid:!0},l.a.createElement(k.a,null,l.a.createElement(p.a,{xs:7},l.a.createElement("b",null,"AdBlock: "),l.a.createElement("br",null),l.a.createElement("p",{style:{fontSize:"14px"}},"(On Site):")),l.a.createElement(p.a,{xs:5},e)))}}]),a}(n.Component),y=function(e){Object(d.a)(a,e);var t=Object(u.a)(a);function a(e){var n;return Object(i.a)(this,a),(n=t.call(this,e)).addToBlacklist=function(){var e=chrome.extension.getBackgroundPage();e.getCurrentTabRoot(e.addToPaywallBlacklist),e.paywallInBlacklist=!0,e.paywallEnabled=!0,n.setState((function(){return{enabled:!0,inBlacklist:!0}})),n.props.rerenderParentCallback(),chrome.tabs.reload()},n.removeFromBlacklist=function(){var e=chrome.extension.getBackgroundPage();e.getCurrentTabRoot(e.removeFromPaywallBlacklist),e.paywallInBlacklist=!1,n.setState((function(t){return{enabled:e.paywallEnabled,inBlacklist:!1}})),n.props.rerenderParentCallback(),chrome.tabs.reload()},n.togglePaywall=function(e){chrome.extension.getBackgroundPage().paywallEnabled=e,e?n.addToBlacklist():n.removeFromBlacklist(),n.setState((function(){return{enabled:e}}))},n.removeFromBlacklist=n.removeFromBlacklist.bind(Object(s.a)(n)),n.addToBlacklist=n.addToBlacklist.bind(Object(s.a)(n)),n.state={enabled:chrome.extension.getBackgroundPage().paywallEnabled,inBlacklist:chrome.extension.getBackgroundPage().paywallInBlacklist},n}return Object(c.a)(a,[{key:"render",value:function(){var e,t=chrome.extension.getBackgroundPage();console.log("Paywall Enabled: "+t.paywallEnabled);var a=t.paywallEnabled;return e=l.a.createElement(v.a,{onChange:this.togglePaywall,checked:a,onlabel:"On ",offlabel:"Off",width:65,onstyle:"info"}),l.a.createElement(m.a,{fluid:!0},l.a.createElement(k.a,null,l.a.createElement(p.a,{xs:7},l.a.createElement("b",null,"Bypass Paywalls"),l.a.createElement("br",null),l.a.createElement("p",{style:{fontSize:"14px"}},"(On Site):")),l.a.createElement(p.a,{xs:5},e)))}}]),a}(n.Component),C=a(11),P=function(e){Object(d.a)(a,e);var t=Object(u.a)(a);function a(e){var n;return Object(i.a)(this,a),(n=t.call(this,e)).addToSpoofWhitelist=function(){var e=chrome.extension.getBackgroundPage();e.getCurrentTabRoot(e.addToPaywallSpoofWhitelist),e.paywallInSpoofWhitelist=!0,n.setState((function(){return{inSpoofWhitelist:!0}})),n.props.rerenderParentCallback()},n.removeFromSpoofWhitelist=function(){var e=chrome.extension.getBackgroundPage();e.getCurrentTabRoot(e.removeFromPaywallSpoofWhitelist),e.paywallInSpoofWhitelist=!1,n.setState((function(e){return{inSpoofWhitelist:!1}})),n.props.rerenderParentCallback()},n.removeFromSpoofWhitelist=n.removeFromSpoofWhitelist.bind(Object(s.a)(n)),n.addToSpoofWhitelist=n.addToSpoofWhitelist.bind(Object(s.a)(n)),n.state={inSpoofWhitelist:chrome.extension.getBackgroundPage().paywallInSpoofWhitelist},n}return Object(c.a)(a,[{key:"render",value:function(){var e;return e=chrome.extension.getBackgroundPage().paywallEnabled?this.state.inSpoofWhitelist?l.a.createElement(C.a,{onClick:this.removeFromSpoofWhitelist,variant:"warning",style:{fontSize:"15px"}},"Spoof Site for Paywall"):l.a.createElement(C.a,{onClick:this.addToSpoofWhitelist,variant:"outline-info",style:{fontSize:"15px"}},"Unspoof Site for Paywall"):l.a.createElement(C.a,{onClick:this.addToSpoofWhitelist,variant:"outline-info",style:{fontSize:"15px"},disabled:!0},"Paywall Bypass Disabled"),l.a.createElement("div",null,e)}}]),a}(n.Component),W=function(e){Object(d.a)(a,e);var t=Object(u.a)(a);function a(e){var n;return Object(i.a)(this,a),(n=t.call(this,e)).addToCookieWhitelist=function(){var e=chrome.extension.getBackgroundPage();e.getCurrentTabRoot(e.addToPaywallCookieWhitelist),e.paywallInCookieWhitelist=!0,n.setState((function(){return{inCookieWhitelist:!0}})),n.props.rerenderParentCallback()},n.removeFromCookieWhitelist=function(){var e=chrome.extension.getBackgroundPage();e.getCurrentTabRoot(e.removeFromPaywallCookieWhitelist),e.paywallInCookieWhitelist=!1,n.setState((function(e){return{inCookieWhitelist:!1}})),n.props.rerenderParentCallback()},n.removeFromCookieWhitelist=n.removeFromCookieWhitelist.bind(Object(s.a)(n)),n.addToCookieWhitelist=n.addToCookieWhitelist.bind(Object(s.a)(n)),n.state={inCookieWhitelist:chrome.extension.getBackgroundPage().paywallInCookieWhitelist},n}return Object(c.a)(a,[{key:"render",value:function(){var e;return e=chrome.extension.getBackgroundPage().paywallEnabled?this.state.inCookieWhitelist?l.a.createElement(C.a,{onClick:this.removeFromCookieWhitelist,variant:"warning",style:{fontSize:"15px"}},"Block Cookies for Paywall"):l.a.createElement(C.a,{onClick:this.addToCookieWhitelist,variant:"outline-info",style:{fontSize:"15px"}},"Unblock Cookies for Paywall"):l.a.createElement(C.a,{variant:"outline-info",style:{fontSize:"15px"},disabled:!0},"Paywall Bypass Disabled"),l.a.createElement("div",null,e)}}]),a}(n.Component),w=function(e){Object(d.a)(a,e);var t=Object(u.a)(a);function a(){var e;return Object(i.a)(this,a),(e=t.call(this)).donate=function(){chrome.tabs.create({url:"https://www.paypal.me/sponsorhover",active:!0})},e.state={},e}return Object(c.a)(a,[{key:"render",value:function(){return l.a.createElement("div",null,l.a.createElement(C.a,{onClick:this.donate,variant:"outline-info"},"Sponsor"))}}]),a}(n.Component),B=a(22),x=a.n(B),S=(a(30),function(e){Object(d.a)(a,e);var t=Object(u.a)(a);function a(e){var n;return Object(i.a)(this,a),(n=t.call(this,e)).rerenderParentCallback=n.rerenderParentCallback.bind(Object(s.a)(n)),n}return Object(c.a)(a,[{key:"rerenderParentCallback",value:function(){this.forceUpdate()}},{key:"render",value:function(){var e=chrome.extension.getBackgroundPage();return l.a.createElement(m.a,null,l.a.createElement("div",{class:"text-center"},l.a.createElement("br",null),l.a.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",paddingBottom:"10px"}},l.a.createElement("div",{style:{width:"170px"}},l.a.createElement(g.a,{src:x.a,fluid:!0}))),l.a.createElement("p",{style:{fontSize:"15px"}},"An undetectable, lightweight extension that automatically bypasses paywalls and blocks all ads.")),l.a.createElement("div",{class:"text-center"}),l.a.createElement(h.a,{defaultActiveKey:"1"},l.a.createElement(b.a,null,l.a.createElement(h.a.Toggle,{as:b.a.Header,eventKey:"1"},"Settings"),l.a.createElement(h.a.Collapse,{eventKey:"1"},l.a.createElement(b.a.Body,null,l.a.createElement("ul",{class:"list-group list-group-flush"},l.a.createElement("li",{class:"list-group-item text-center"},l.a.createElement(E,{rerenderParentCallback:this.rerenderParentCallback})),l.a.createElement("li",{class:"list-group-item text-center"},l.a.createElement(y,{rerenderParentCallback:this.rerenderParentCallback})))))),l.a.createElement(b.a,null,l.a.createElement(h.a.Toggle,{as:b.a.Header,eventKey:"0"},"Metrics"),l.a.createElement(h.a.Collapse,{eventKey:"0"},l.a.createElement(b.a.Body,null,l.a.createElement("b",null,"Total Items Blocked: ",l.a.createElement("span",{style:{color:"#31afb4"}},e.blockedCount)," "),l.a.createElement("p",{style:{fontSize:"14px"}},"(Blocking Ads and Tracking Modules)")))),l.a.createElement(b.a,null,l.a.createElement(h.a.Toggle,{as:b.a.Header,eventKey:"2"},"Advanced"),l.a.createElement(h.a.Collapse,{eventKey:"2"},l.a.createElement(b.a.Body,null,l.a.createElement("ul",{class:"list-group list-group-flush"},l.a.createElement("li",{class:"list-group-item text-center"},l.a.createElement(P,{rerenderParentCallback:this.rerenderParentCallback})),l.a.createElement("li",{class:"list-group-item text-center"},l.a.createElement(W,{rerenderParentCallback:this.rerenderParentCallback})))))),l.a.createElement(b.a,null,l.a.createElement(h.a.Toggle,{as:b.a.Header,eventKey:"3"},"More"),l.a.createElement(h.a.Collapse,{eventKey:"3"},l.a.createElement(b.a.Body,null,l.a.createElement("ul",{class:"list-group list-group-flush"},l.a.createElement("li",{class:"list-group-item text-center",style:{fontSize:"14px"}},"Liking The Features? Consider Donating A Dollar To The Project!"),l.a.createElement("li",{class:"list-group-item text-center"},l.a.createElement(w,null))))))),l.a.createElement("br",null))}}]),a}(l.a.Component));Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));r.a.render(l.a.createElement(l.a.StrictMode,null,l.a.createElement(S,null)),document.getElementById("root")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(e){e.unregister()})).catch((function(e){console.error(e.message)}))}},[[24,1,2]]]); \ No newline at end of file +(this.webpackJsonphover=this.webpackJsonphover||[]).push([[0],{22:function(e,t,a){e.exports=a.p+"static/media/hover_logo.d2a9c858.jpg"},24:function(e,t,a){e.exports=a(34)},29:function(e,t,a){},30:function(e,t,a){},34:function(e,t,a){"use strict";a.r(t);var n=a(0),l=a.n(n),o=a(15),r=a.n(o),i=(a(29),a(7)),c=a(8),s=a(5),d=a(10),u=a(9),m=a(14),h=a(12),b=a(6),g=a(23),k=a(18),p=a(16),f=a(17),v=a.n(f),E=function(e){Object(d.a)(a,e);var t=Object(u.a)(a);function a(e){var n;return Object(i.a)(this,a),(n=t.call(this,e)).toggleAdblock=function(e){chrome.extension.getBackgroundPage().adblockEnabled=e,e?n.removeFromWhitelist():n.addToWhitelist(),n.setState((function(){return{enabled:e}})),chrome.tabs.reload()},n.addToWhitelist=function(){var e=chrome.extension.getBackgroundPage();e.getCurrentTabRoot(e.addToAdblockWhitelist),e.adblockEnabled=!1,e.adblockInWhitelist=!0,n.setState((function(){return{enabled:!1,inWhitelist:!0}})),n.props.rerenderParentCallback(),chrome.tabs.reload()},n.removeFromWhitelist=function(){var e=chrome.extension.getBackgroundPage();e.getCurrentTabRoot(e.removeFromAdblockWhitelist),e.adblockEnabled=!0,e.adblockInWhitelist=!1,n.setState((function(){return{enabled:!0,inWhitelist:!1}})),n.props.rerenderParentCallback(),chrome.tabs.reload()},n.addToWhitelist=n.addToWhitelist.bind(Object(s.a)(n)),n.removeFromWhitelist=n.removeFromWhitelist.bind(Object(s.a)(n)),n.state={enabled:chrome.extension.getBackgroundPage().adblockEnabled,inWhitelist:chrome.extension.getBackgroundPage().adblockInWhitelist},n}return Object(c.a)(a,[{key:"render",value:function(){var e,t=chrome.extension.getBackgroundPage();return console.log("inWhitelist Adblock: "+t.adblockInWhitelist),e=l.a.createElement(v.a,{onChange:this.toggleAdblock,checked:this.state.enabled,onlabel:"On ",offlabel:"Off",width:65,onstyle:"info"}),l.a.createElement(m.a,{fluid:!0},l.a.createElement(k.a,null,l.a.createElement(p.a,{xs:7},l.a.createElement("b",null,"AdBlock: "),l.a.createElement("br",null),l.a.createElement("p",{style:{fontSize:"14px"}},"(On Site):")),l.a.createElement(p.a,{xs:5},e)))}}]),a}(n.Component),y=function(e){Object(d.a)(a,e);var t=Object(u.a)(a);function a(e){var n;return Object(i.a)(this,a),(n=t.call(this,e)).addToBlacklist=function(){var e=chrome.extension.getBackgroundPage();e.getCurrentTabRoot(e.addToPaywallBlacklist),e.paywallInBlacklist=!0,e.paywallEnabled=!0,n.setState((function(){return{enabled:!0,inBlacklist:!0}})),n.props.rerenderParentCallback(),chrome.tabs.reload()},n.removeFromBlacklist=function(){var e=chrome.extension.getBackgroundPage();e.getCurrentTabRoot(e.removeFromPaywallBlacklist),e.paywallInBlacklist=!1,n.setState((function(t){return{enabled:e.paywallEnabled,inBlacklist:!1}})),n.props.rerenderParentCallback(),chrome.tabs.reload()},n.togglePaywall=function(e){chrome.extension.getBackgroundPage().paywallEnabled=e,e?n.addToBlacklist():n.removeFromBlacklist(),n.setState((function(){return{enabled:e}}))},n.removeFromBlacklist=n.removeFromBlacklist.bind(Object(s.a)(n)),n.addToBlacklist=n.addToBlacklist.bind(Object(s.a)(n)),n.state={enabled:chrome.extension.getBackgroundPage().paywallEnabled,inBlacklist:chrome.extension.getBackgroundPage().paywallInBlacklist},n}return Object(c.a)(a,[{key:"render",value:function(){var e,t=chrome.extension.getBackgroundPage();console.log("Paywall Enabled: "+t.paywallEnabled);var a=t.paywallEnabled;return e=l.a.createElement(v.a,{onChange:this.togglePaywall,checked:a,onlabel:"On ",offlabel:"Off",width:65,onstyle:"info"}),l.a.createElement(m.a,{fluid:!0},l.a.createElement(k.a,null,l.a.createElement(p.a,{xs:7},l.a.createElement("b",null,"Bypass Paywalls"),l.a.createElement("br",null),l.a.createElement("p",{style:{fontSize:"14px"}},"(On Site):")),l.a.createElement(p.a,{xs:5},e)))}}]),a}(n.Component),C=a(11),P=function(e){Object(d.a)(a,e);var t=Object(u.a)(a);function a(e){var n;return Object(i.a)(this,a),(n=t.call(this,e)).addToSpoofWhitelist=function(){var e=chrome.extension.getBackgroundPage();e.getCurrentTabRoot(e.addToPaywallSpoofWhitelist),e.paywallInSpoofWhitelist=!0,n.setState((function(){return{inSpoofWhitelist:!0}})),n.props.rerenderParentCallback()},n.removeFromSpoofWhitelist=function(){var e=chrome.extension.getBackgroundPage();e.getCurrentTabRoot(e.removeFromPaywallSpoofWhitelist),e.paywallInSpoofWhitelist=!1,n.setState((function(e){return{inSpoofWhitelist:!1}})),n.props.rerenderParentCallback()},n.removeFromSpoofWhitelist=n.removeFromSpoofWhitelist.bind(Object(s.a)(n)),n.addToSpoofWhitelist=n.addToSpoofWhitelist.bind(Object(s.a)(n)),n.state={inSpoofWhitelist:chrome.extension.getBackgroundPage().paywallInSpoofWhitelist},n}return Object(c.a)(a,[{key:"render",value:function(){var e;return e=chrome.extension.getBackgroundPage().paywallEnabled?this.state.inSpoofWhitelist?l.a.createElement(C.a,{onClick:this.removeFromSpoofWhitelist,variant:"warning",style:{fontSize:"15px"}},"Spoof Site for Paywall"):l.a.createElement(C.a,{onClick:this.addToSpoofWhitelist,variant:"outline-info",style:{fontSize:"15px"}},"Unspoof Site for Paywall"):l.a.createElement(C.a,{onClick:this.addToSpoofWhitelist,variant:"outline-info",style:{fontSize:"15px"},disabled:!0},"Paywall Bypass Disabled"),l.a.createElement("div",null,e)}}]),a}(n.Component),W=function(e){Object(d.a)(a,e);var t=Object(u.a)(a);function a(e){var n;return Object(i.a)(this,a),(n=t.call(this,e)).addToCookieWhitelist=function(){var e=chrome.extension.getBackgroundPage();e.getCurrentTabRoot(e.addToPaywallCookieWhitelist),e.paywallInCookieWhitelist=!0,n.setState((function(){return{inCookieWhitelist:!0}})),n.props.rerenderParentCallback()},n.removeFromCookieWhitelist=function(){var e=chrome.extension.getBackgroundPage();e.getCurrentTabRoot(e.removeFromPaywallCookieWhitelist),e.paywallInCookieWhitelist=!1,n.setState((function(e){return{inCookieWhitelist:!1}})),n.props.rerenderParentCallback()},n.removeFromCookieWhitelist=n.removeFromCookieWhitelist.bind(Object(s.a)(n)),n.addToCookieWhitelist=n.addToCookieWhitelist.bind(Object(s.a)(n)),n.state={inCookieWhitelist:chrome.extension.getBackgroundPage().paywallInCookieWhitelist},n}return Object(c.a)(a,[{key:"render",value:function(){var e;return e=chrome.extension.getBackgroundPage().paywallEnabled?this.state.inCookieWhitelist?l.a.createElement(C.a,{onClick:this.removeFromCookieWhitelist,variant:"warning",style:{fontSize:"15px"}},"Block Cookies for Paywall"):l.a.createElement(C.a,{onClick:this.addToCookieWhitelist,variant:"outline-info",style:{fontSize:"15px"}},"Unblock Cookies for Paywall"):l.a.createElement(C.a,{variant:"outline-info",style:{fontSize:"15px"},disabled:!0},"Paywall Bypass Disabled"),l.a.createElement("div",null,e)}}]),a}(n.Component),B=function(e){Object(d.a)(a,e);var t=Object(u.a)(a);function a(){var e;return Object(i.a)(this,a),(e=t.call(this)).donate=function(){chrome.tabs.create({url:"https://github.com/hover-inc/hover-extension/issues/new",active:!0})},e.state={},e}return Object(c.a)(a,[{key:"render",value:function(){return l.a.createElement("div",null,l.a.createElement(C.a,{onClick:this.donate,variant:"outline-info"},"Report Bug"))}}]),a}(n.Component),x=a(22),w=a.n(x),S=(a(30),function(e){Object(d.a)(a,e);var t=Object(u.a)(a);function a(e){var n;return Object(i.a)(this,a),(n=t.call(this,e)).rerenderParentCallback=n.rerenderParentCallback.bind(Object(s.a)(n)),n}return Object(c.a)(a,[{key:"rerenderParentCallback",value:function(){this.forceUpdate()}},{key:"render",value:function(){var e=chrome.extension.getBackgroundPage();return l.a.createElement(m.a,null,l.a.createElement("div",{class:"text-center"},l.a.createElement("br",null),l.a.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",paddingBottom:"10px"}},l.a.createElement("div",{style:{width:"170px"}},l.a.createElement(g.a,{src:w.a,fluid:!0}))),l.a.createElement("p",{style:{fontSize:"15px"}},"An undetectable, lightweight extension that automatically bypasses paywalls and blocks all ads.")),l.a.createElement("div",{class:"text-center"}),l.a.createElement(h.a,{defaultActiveKey:"1"},l.a.createElement(b.a,null,l.a.createElement(h.a.Toggle,{as:b.a.Header,eventKey:"1"},"Settings"),l.a.createElement(h.a.Collapse,{eventKey:"1"},l.a.createElement(b.a.Body,null,l.a.createElement("ul",{class:"list-group list-group-flush"},l.a.createElement("li",{class:"list-group-item text-center"},l.a.createElement(E,{rerenderParentCallback:this.rerenderParentCallback})),l.a.createElement("li",{class:"list-group-item text-center"},l.a.createElement(y,{rerenderParentCallback:this.rerenderParentCallback})))))),l.a.createElement(b.a,null,l.a.createElement(h.a.Toggle,{as:b.a.Header,eventKey:"0"},"Metrics"),l.a.createElement(h.a.Collapse,{eventKey:"0"},l.a.createElement(b.a.Body,null,l.a.createElement("b",null,"Total Items Blocked: ",l.a.createElement("span",{style:{color:"#31afb4"}},e.blockedCount)," "),l.a.createElement("p",{style:{fontSize:"14px"}},"(Blocking Ads and Tracking Modules)")))),l.a.createElement(b.a,null,l.a.createElement(h.a.Toggle,{as:b.a.Header,eventKey:"2"},"Advanced"),l.a.createElement(h.a.Collapse,{eventKey:"2"},l.a.createElement(b.a.Body,null,l.a.createElement("ul",{class:"list-group list-group-flush"},l.a.createElement("li",{class:"list-group-item text-center"},l.a.createElement(P,{rerenderParentCallback:this.rerenderParentCallback})),l.a.createElement("li",{class:"list-group-item text-center"},l.a.createElement(W,{rerenderParentCallback:this.rerenderParentCallback})))))),l.a.createElement(b.a,null,l.a.createElement(h.a.Toggle,{as:b.a.Header,eventKey:"3"},"More"),l.a.createElement(h.a.Collapse,{eventKey:"3"},l.a.createElement(b.a.Body,null,l.a.createElement("ul",{class:"list-group list-group-flush"},l.a.createElement("li",{class:"list-group-item text-center",style:{fontSize:"14px"}},"Something Not Working?"),l.a.createElement("li",{class:"list-group-item text-center"},l.a.createElement(B,null))))))),l.a.createElement("br",null))}}]),a}(l.a.Component));Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));r.a.render(l.a.createElement(l.a.StrictMode,null,l.a.createElement(S,null)),document.getElementById("root")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(e){e.unregister()})).catch((function(e){console.error(e.message)}))}},[[24,1,2]]]); \ No newline at end of file diff --git a/src/App.js b/src/App.js index 4394be1..1895ffa 100755 --- a/src/App.js +++ b/src/App.js @@ -16,7 +16,7 @@ import EnablePaywallBtn from './paywall_buttons/EnablePaywallBtn.js' import PaywallSpoofBtn from './paywall_buttons/PaywallSpoofBtn.js' import PaywallCookieBtn from './paywall_buttons/PaywallCookieBtn.js' -import DonateBtn from './DonateBtn.js' +import ReportBtn from './ReportBtn.js' import logo from './hover_logo.jpg' import './App.css'; @@ -94,8 +94,8 @@ class App extends React.Component {
    -
  • Liking The Features? Consider Donating A Dollar To The Project!
  • -
  • +
  • Something Not Working?
  • +
diff --git a/src/DonateBtn.js b/src/ReportBtn.js similarity index 64% rename from src/DonateBtn.js rename to src/ReportBtn.js index 5679591..995660c 100644 --- a/src/DonateBtn.js +++ b/src/ReportBtn.js @@ -1,5 +1,5 @@ /* - * DonateBtn.js renders the button to use Donate to bypass paywalls + * ReportBtn.js renders the button to use report bugs */ @@ -9,7 +9,7 @@ import React, { Component } from "react"; import Button from 'react-bootstrap/Button'; -class DonateBtn extends Component { +class ReportBtn extends Component { constructor() { super(); this.state = { @@ -17,16 +17,16 @@ class DonateBtn extends Component { } donate = () => { - let url = "https://www.paypal.me/sponsorhover" + let url = "https://github.com/hover-inc/hover-extension/issues/new" chrome.tabs.create({url: url, active: true}); } render() { return (
- +
); } } -export default DonateBtn; \ No newline at end of file +export default ReportBtn; \ No newline at end of file