use $.setValue for hiddenReply

This commit is contained in:
James Campos 2011-04-06 05:36:03 -07:00
parent df8bd7dd1a
commit db251aee8b
2 changed files with 6 additions and 6 deletions

View File

@ -500,14 +500,14 @@
}
id = reply.id;
g.hiddenReply[id] = Date.now();
return GM_setValue("hiddenReply/" + g.BOARD + "/", JSON.stringify(g.hiddenReply));
return $.setValue("hiddenReply/" + g.BOARD + "/", g.hiddenReply);
},
show: function(table) {
var id;
$.show(table);
id = $('td[id]', table).id;
delete g.hiddenReply[id];
return GM_setValue("hiddenReply/" + g.BOARD + "/", JSON.stringify(g.hiddenReply));
return $.setValue("hiddenReply/" + g.BOARD + "/", g.hiddenReply);
}
};
imageHover = {
@ -1695,7 +1695,7 @@
} else {
g.PAGENUM = parseInt(temp) || 0;
}
g.hiddenReply = JSON.parse(GM_getValue("hiddenReply/" + g.BOARD + "/", '{}'));
g.hiddenReply = $.getValue("hiddenReply/" + g.BOARD + "/", {});
tzOffset = (new Date()).getTimezoneOffset() / 60;
g.chanOffset = 5 - tzOffset;
if ($.isDST()) {

View File

@ -345,14 +345,14 @@ replyHiding =
id = reply.id
g.hiddenReply[id] = Date.now()
GM_setValue "hiddenReply/#{g.BOARD}/", JSON.stringify g.hiddenReply
$.setValue "hiddenReply/#{g.BOARD}/", g.hiddenReply
show: (table) ->
$.show table
id = $('td[id]', table).id
delete g.hiddenReply[id]
GM_setValue "hiddenReply/#{g.BOARD}/", JSON.stringify g.hiddenReply
$.setValue "hiddenReply/#{g.BOARD}/", g.hiddenReply
imageHover =
init: ->
@ -1313,7 +1313,7 @@ if temp is 'res'
g.THREAD_ID = pathname[2]
else
g.PAGENUM = parseInt(temp) || 0
g.hiddenReply = JSON.parse GM_getValue "hiddenReply/#{g.BOARD}/", '{}'
g.hiddenReply = $.getValue "hiddenReply/#{g.BOARD}/", {}
tzOffset = (new Date()).getTimezoneOffset() / 60
# GMT -8 is given as +480; would GMT +8 be -480 ?
g.chanOffset = 5 - tzOffset# 4chan = EST = GMT -5