disableMethods(HTMLDocument.prototype, 'document', ['write', 'writeln'], true);
// Disable history.
-window.history = {};
+Object.defineProperty(window, "history", { value: {} });
disableGetters(window.history, 'history', ['back', 'forward', 'go', 'length']);
// Disable find.