/* eslint-disable no-native-reassign */
/* global addToPage, setTitle */

// Makes regular text have the regular text size
document.body.style.fontSize = "1.33333333em";

const oldSetTitle = setTitle;
setTitle = () => {
    window.top.postMessage({action: "setTitle", title: arguments[0]}, "*");
    oldSetTitle.apply(window, arguments);
}

const result = JSON.parse(localStorage["result_" + location.hash.substr(1)]);
addToPage(result[2][1]);
setTitle(result[1]);

@@ -164,16 +164,63 @@
 33em%22;%0A%0A
+document.body.className = %22light sans-serif%22;%0A%0A
 const ol
@@ -501,12 +501,140 @@
 result%5B1%5D);%0A
+%0Achrome.storage.sync.get(%7Btheme: %22light%22, font: %22sans-serif%22%7D, (%7Btheme, font%7D) =%3E %7B%0A%09useTheme(theme);%0A%09useFontFamily(font);%0A%7D);%0A

Handle themes and fonts in viewer