From 15ad125124fc33c103c0c47895c6c668d8fed087 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sun, 4 Sep 2011 19:01:48 +0200 Subject: [PATCH] Simpler. Eh, I didn't know anything when I did this. --- 4chan_x.user.js | 2 +- script.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 67fd8c60d..6aef2d495 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2800,7 +2800,7 @@ return; } Favicon.halo = /ws/.test(Favicon["default"]) ? Favicon.haloSFW : Favicon.haloNSFW; - $('link[rel="shortcut icon"]', d.head).setAttribute('type', 'image/x-icon'); + $('link[rel="shortcut icon"]', d.head).type = 'image/x-icon'; g.hiddenReplies = $.get("hiddenReplies/" + g.BOARD + "/", {}); tzOffset = (new Date()).getTimezoneOffset() / 60; g.chanOffset = 5 - tzOffset; diff --git a/script.coffee b/script.coffee index 48e16a13e..30f8ba407 100644 --- a/script.coffee +++ b/script.coffee @@ -2193,7 +2193,7 @@ main = return Favicon.halo = if /ws/.test Favicon.default then Favicon.haloSFW else Favicon.haloNSFW - $('link[rel="shortcut icon"]', d.head).setAttribute 'type', 'image/x-icon' + $('link[rel="shortcut icon"]', d.head).type = 'image/x-icon' g.hiddenReplies = $.get "hiddenReplies/#{g.BOARD}/", {} tzOffset = (new Date()).getTimezoneOffset() / 60 # GMT -8 is given as +480; would GMT +8 be -480 ?