From 925b7fc795da20c5f56ede19150e096e555d9d7e Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sun, 27 Nov 2011 19:02:46 +0100 Subject: [PATCH] Detect browser engine. --- 4chan_x.user.js | 4 +++- script.coffee | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index c27d35f1e..f0c043e59 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -66,7 +66,7 @@ */ (function() { - var $, $$, DAY, Favicon, HOUR, MINUTE, Main, NAMESPACE, Recaptcha, SECOND, Time, VERSION, anonymize, conf, config, cooldown, d, expandComment, expandThread, filter, flatten, g, getTitle, imgExpand, imgGif, imgHover, key, keybinds, log, nav, options, qr, quoteBacklink, quoteInline, quoteOP, quotePreview, redirect, replyHiding, reportButton, revealSpoilers, sauce, strikethroughQuotes, threadHiding, threadStats, threading, titlePost, ui, unread, updater, val, watcher; + var $, $$, DAY, Favicon, HOUR, MINUTE, Main, NAMESPACE, Recaptcha, SECOND, Time, VERSION, anonymize, conf, config, cooldown, d, engine, expandComment, expandThread, filter, flatten, g, getTitle, imgExpand, imgGif, imgHover, key, keybinds, log, nav, options, qr, quoteBacklink, quoteInline, quoteOP, quotePreview, redirect, replyHiding, reportButton, revealSpoilers, sauce, strikethroughQuotes, threadHiding, threadStats, threading, titlePost, ui, unread, updater, val, watcher; var __slice = Array.prototype.slice; config = { @@ -221,6 +221,8 @@ DAY = 24 * HOUR; + engine = /WebKit|Presto|Gecko/.exec(navigator.userAgent)[0]; + d = document; g = { diff --git a/script.coffee b/script.coffee index 2d88eb503..fa4f0fec0 100644 --- a/script.coffee +++ b/script.coffee @@ -127,6 +127,7 @@ SECOND = 1000 MINUTE = 60*SECOND HOUR = 60*MINUTE DAY = 24*HOUR +engine = /WebKit|Presto|Gecko/.exec(navigator.userAgent)[0] d = document g = callbacks: []