Don't reset all of 4chan's settings, just disable it.
This commit is contained in:
parent
e451696b3c
commit
673a3e08d2
@ -5003,7 +5003,7 @@
|
|||||||
|
|
||||||
Main = {
|
Main = {
|
||||||
init: function() {
|
init: function() {
|
||||||
var cutoff, hiddenThreads, id, key, now, path, pathname, temp, timestamp, val, _ref;
|
var cutoff, hiddenThreads, id, key, now, path, pathname, settings, temp, timestamp, val, _ref;
|
||||||
Main.flatten(null, Config);
|
Main.flatten(null, Config);
|
||||||
path = location.pathname;
|
path = location.pathname;
|
||||||
pathname = path.slice(1).split('/');
|
pathname = path.slice(1).split('/');
|
||||||
@ -5054,7 +5054,9 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (Conf['Disable 4chan\'s extension']) {
|
if (Conf['Disable 4chan\'s extension']) {
|
||||||
localStorage.setItem('4chan-settings', '{"disableAll":true}');
|
settings = JSON.parse(localStorage.getItem('4chan-settings')) || {};
|
||||||
|
settings.disableAll = true;
|
||||||
|
localStorage.setItem('4chan-settings', JSON.stringify(settings));
|
||||||
}
|
}
|
||||||
Options.init();
|
Options.init();
|
||||||
if (Conf['Quick Reply'] && Conf['Hide Original Post Form']) {
|
if (Conf['Quick Reply'] && Conf['Hide Original Post Form']) {
|
||||||
|
|||||||
@ -4037,7 +4037,9 @@ Main =
|
|||||||
return
|
return
|
||||||
|
|
||||||
if Conf['Disable 4chan\'s extension']
|
if Conf['Disable 4chan\'s extension']
|
||||||
localStorage.setItem '4chan-settings', '{"disableAll":true}'
|
settings = JSON.parse(localStorage.getItem '4chan-settings') or {}
|
||||||
|
settings.disableAll = true
|
||||||
|
localStorage.setItem '4chan-settings', JSON.stringify settings
|
||||||
|
|
||||||
Options.init()
|
Options.init()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user