!function e(n,o,t){function r(i,c){if(!o[i]){if(!n[i]){var s="function"==typeof require&&require;if(!c&&s)return s(i,!0);if(a)return a(i,!0);var d=new Error("Cannot find module '"+i+"'");throw d.code="MODULE_NOT_FOUND",d}var u=o[i]={exports:{}};n[i][0].call(u.exports,function(e){var o=n[i][1][e];return r(o||e)},u,u.exports,e,n,o,t)}return o[i].exports}for(var a="function"==typeof require&&require,i=0;i<t.length;i++)r(t[i]);return r}({1:[function(e,n,o){n.exports={1:{name:"adblock_wall",description:"adblock_wall_description",warning:!0},2:{name:"paywall",description:"paywall_description",warning:!0},3:{name:"ad_reinjection",description:"ad_reinjection_description",warning:!0},4:{name:"adblock_warning",description:"adblock_warning_description"},5:{name:"disable_ads",description:"disable_ads_description"}}},{}],2:[function(e,n,o){"use strict";var t=e("./common/js/settings"),r=function(e){return e&&e.__esModule?e:{default:e}}(e("./_data/categories.json")),a=function(e,n,o){chrome.browserAction.setIcon({tabId:e,path:n},function(){if(chrome.runtime.lastError)return!1}),chrome.browserAction.setBadgeBackgroundColor({color:o})},i=function(e,n){var o=t.settings.unknownIcon,i=t.settings.badgeBackgroundColor;e.data&&(o=t.settings.okIcon,e.data.categories.forEach(function(e){r.default[e].warning&&(o=t.settings.notOkIcon)})),a(n.tab.id,o,i)},c=function(e,n){chrome.tabs.query({active:!0,currentWindow:!0},function(o){chrome.tabs.sendMessage(o[0].id,{requestType:e,data:n},function(){if(chrome.runtime.lastError)return!1})})},s=function(e){if(!e.location)return!1;var n=e.location.origin||e.location.href;if(!n)return!1;var o=new XMLHttpRequest;o.open("GET",n,!0),o.onreadystatechange=function(){4===o.readyState&&c("showReadMode",o.responseText)},o.send()},d=function(){var e=new XMLHttpRequest;e.open("GET","https://spreadsheets.google.com/feeds/list/1e2qnCK1PzmQiAaH1UjqYjetxV6cwAeoYxKohGOJkNtc/od6/public/values?alt=json",!0),e.onreadystatechange=function(){4===e.readyState&&c("dataFromSpredSheet",e.responseText)},e.send()};chrome.runtime.onMessage.addListener(function(e,n){switch(e.subject){case"readmode":"popup"===e.from&&c("prepareReadMode"),s(e);break;case"showPageAction":i(e,n);break;case"getDataFromSpreadSheet":d()}})},{"./_data/categories.json":1,"./common/js/settings":3}],3:[function(e,n,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0});o.settings={DEBUG:!0,MINIMUM_VISIBLE_HEIGHT_TO_HIGHLIGHTING:250,badgeBackgroundColor:"#555",okIcon:"./common/img/logo.png",notOkIcon:"./common/img/logo-not-ok.png",unknownIcon:"./common/img/logo-unknown.png"}},{}]},{},[2]);