Add the 'blink' class to the doc on Chrome. 'webkit' will be removed in the future.

This commit is contained in:
Mayhem 2013-05-09 20:46:14 +02:00
parent 24a78353f6
commit f235791873

View File

@ -122,7 +122,14 @@ Main =
return unless Main.isThisPageLegit()
# disable the mobile layout
$('link[href*=mobile]', d.head)?.disabled = true
$.addClass doc, '<% if (type === 'crx') { %>webkit<% } else if (type === 'userjs') { %>presto<% } else { %>gecko<% } %>'
<% if (type === 'crx') { %>
$.addClass doc, 'webkit'
$.addClass doc, 'blink'
<% } else if (type === 'userjs') { %>
$.addClass doc, 'presto'
<% } else { %>
$.addClass doc, 'gecko'
<% } %>
$.addClass doc, 'fourchan-x'
$.addStyle Main.css