use $.setValue for hiddenReply
This commit is contained in:
parent
df8bd7dd1a
commit
db251aee8b
@ -500,14 +500,14 @@
|
|||||||
}
|
}
|
||||||
id = reply.id;
|
id = reply.id;
|
||||||
g.hiddenReply[id] = Date.now();
|
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) {
|
show: function(table) {
|
||||||
var id;
|
var id;
|
||||||
$.show(table);
|
$.show(table);
|
||||||
id = $('td[id]', table).id;
|
id = $('td[id]', table).id;
|
||||||
delete g.hiddenReply[id];
|
delete g.hiddenReply[id];
|
||||||
return GM_setValue("hiddenReply/" + g.BOARD + "/", JSON.stringify(g.hiddenReply));
|
return $.setValue("hiddenReply/" + g.BOARD + "/", g.hiddenReply);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
imageHover = {
|
imageHover = {
|
||||||
@ -1695,7 +1695,7 @@
|
|||||||
} else {
|
} else {
|
||||||
g.PAGENUM = parseInt(temp) || 0;
|
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;
|
tzOffset = (new Date()).getTimezoneOffset() / 60;
|
||||||
g.chanOffset = 5 - tzOffset;
|
g.chanOffset = 5 - tzOffset;
|
||||||
if ($.isDST()) {
|
if ($.isDST()) {
|
||||||
|
|||||||
@ -345,14 +345,14 @@ replyHiding =
|
|||||||
|
|
||||||
id = reply.id
|
id = reply.id
|
||||||
g.hiddenReply[id] = Date.now()
|
g.hiddenReply[id] = Date.now()
|
||||||
GM_setValue "hiddenReply/#{g.BOARD}/", JSON.stringify g.hiddenReply
|
$.setValue "hiddenReply/#{g.BOARD}/", g.hiddenReply
|
||||||
|
|
||||||
show: (table) ->
|
show: (table) ->
|
||||||
$.show table
|
$.show table
|
||||||
|
|
||||||
id = $('td[id]', table).id
|
id = $('td[id]', table).id
|
||||||
delete g.hiddenReply[id]
|
delete g.hiddenReply[id]
|
||||||
GM_setValue "hiddenReply/#{g.BOARD}/", JSON.stringify g.hiddenReply
|
$.setValue "hiddenReply/#{g.BOARD}/", g.hiddenReply
|
||||||
|
|
||||||
imageHover =
|
imageHover =
|
||||||
init: ->
|
init: ->
|
||||||
@ -1313,7 +1313,7 @@ if temp is 'res'
|
|||||||
g.THREAD_ID = pathname[2]
|
g.THREAD_ID = pathname[2]
|
||||||
else
|
else
|
||||||
g.PAGENUM = parseInt(temp) || 0
|
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
|
tzOffset = (new Date()).getTimezoneOffset() / 60
|
||||||
# GMT -8 is given as +480; would GMT +8 be -480 ?
|
# GMT -8 is given as +480; would GMT +8 be -480 ?
|
||||||
g.chanOffset = 5 - tzOffset# 4chan = EST = GMT -5
|
g.chanOffset = 5 - tzOffset# 4chan = EST = GMT -5
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user