(()=>{"use strict";(()=>{let e,t=chrome;function n(n,o=null,s=[]){e.get(o,(c=>{t.runtime.lastError?(e=t.storage.local,e.get(o,(e=>{n(e,...s)}))):n(c,...s)}))}function o(n){e.set(n,(()=>{t.runtime.lastError&&(e=t.storage.local,e.set(n))}))}"object"==typeof browser&&"object"==typeof browser.runtime&&(t=browser),e=t.storage.local,"object"==typeof t.storage.sync&&(e=t.storage.sync);const s=document.documentElement;function c(e){const t=e.getElementsByClassName("check"),n=t[0];if(n.checked)return;let o=!1;for(let e=1;!o&&e{if("boolean"==typeof e[t]){const n=document.getElementById(t);n&&(n.checked=e[t]),"yt_on"===t&&s.setAttribute(t,e[t])}else Object.keys(e[t]).forEach((n=>{const o=document.getElementById(n);if(o&&(o.checked=e[t][n]),"dark_mode"===n||"yt_on"===n)s.setAttribute(n,e[t][n]);else{const o=document.getElementById(n).parentNode.parentNode.parentNode.getElementsByTagName("ul")[0];e[t][n]?o.classList.add("hidden"):o.classList.remove("hidden")}}))})),d(e.hide_feed,e.hide_subs);const t=document.getElementById("options").getElementsByTagName("ul");for(let e=1;e{if("boolean"==typeof e[n]){const o=document.getElementById(n).checked;e[n]!==o&&(t[n]=o)}})),Object.prototype.hasOwnProperty.call(t,"hide_feed")?d(t.hide_feed,e.hide_subs):Object.prototype.hasOwnProperty.call(t,"hide_subs")&&d(e.hide_feed,t.hide_subs),o(t)}function u(){const e=this.checked,t=this.parentNode.parentNode;if(t.classList.contains("check-tree")){const n=t.parentNode.getElementsByClassName("check");for(let t=1;t