Warn about Firefox versions <26.

This commit is contained in:
Mayhem 2014-01-21 13:58:50 +01:00
parent ee1e5d03e6
commit 59fa428db5

View File

@ -190,6 +190,11 @@ Main =
alert '4chan X v2 detected: Disable it or v3 will break.'
<% if (type === 'userscript') { %>
test = $.el 'span'
test.classList.add 'a', 'b'
if test.className isnt 'a b'
new Notice 'warning', "Your version of Firefox is outdated (v<%= meta.min.firefox %> minimum) and <%= meta.name %> may not operate correctly.", 30
GMver = GM_info.version.split '.'
for v, i in "<%= meta.min.greasemonkey %>".split '.'
break if v < GMver[i]