implement duckness's upgrade nag disabling option

This commit is contained in:
ccd0 2014-04-06 10:17:26 -07:00
parent 81f1dbf0fb
commit 47eea2a57a
5 changed files with 13 additions and 4 deletions

View File

@ -5,6 +5,9 @@
- In v1.5.1, image/video hover was changed to hide and re-use the images/videos to avoid crashes.
Fixing bugs caused by this change.
**duckness**
- Allow disabling upgrade nag message.
### v1.5.2
*2014-04-04*

View File

@ -152,7 +152,8 @@
'Emoji': [false, 'Adds icons next to names for different emails'],
'Color User IDs': [false, 'Assign unique colors to user IDs on boards that use them'],
'Remove Spoilers': [false, 'Remove all spoilers in text.'],
'Reveal Spoilers': [false, 'Indicate spoilers if Remove Spoilers is enabled, or make the text appear hovered if Remove Spoiler is disabled.']
'Reveal Spoilers': [false, 'Indicate spoilers if Remove Spoilers is enabled, or make the text appear hovered if Remove Spoiler is disabled.'],
'Show Support Message': [true, 'Warn if your browser is unsupported. 4chan X may not operate correctly on unsupported browser versions.']
},
'Linkification': {
'Linkify': [true, 'Convert text into links where applicable.'],
@ -13351,7 +13352,7 @@
}
test = $.el('span');
test.classList.add('a', 'b');
if (test.className !== 'a b') {
if (test.className !== 'a b' && Conf['Show Support Message']) {
new Notice('warning', "Your version of Firefox is outdated (v26 minimum) and 4chan X may not operate correctly.", 30);
}
GMver = GM_info.version.split('.');

View File

@ -128,7 +128,8 @@
'Emoji': [false, 'Adds icons next to names for different emails'],
'Color User IDs': [false, 'Assign unique colors to user IDs on boards that use them'],
'Remove Spoilers': [false, 'Remove all spoilers in text.'],
'Reveal Spoilers': [false, 'Indicate spoilers if Remove Spoilers is enabled, or make the text appear hovered if Remove Spoiler is disabled.']
'Reveal Spoilers': [false, 'Indicate spoilers if Remove Spoilers is enabled, or make the text appear hovered if Remove Spoiler is disabled.'],
'Show Support Message': [true, 'Warn if your browser is unsupported. 4chan X may not operate correctly on unsupported browser versions.']
},
'Linkification': {
'Linkify': [true, 'Convert text into links where applicable.'],

View File

@ -89,6 +89,10 @@ Config =
false
'Indicate spoilers if Remove Spoilers is enabled, or make the text appear hovered if Remove Spoiler is disabled.'
]
'Show Support Message': [
true
'Warn if your browser is unsupported. 4chan X may not operate correctly on unsupported browser versions.'
]
'Linkification':
'Linkify': [

View File

@ -137,7 +137,7 @@ Main =
<% if (type === 'userscript') { %>
test = $.el 'span'
test.classList.add 'a', 'b'
if test.className isnt 'a b'
if test.className isnt 'a b' and Conf['Show Support Message']
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 '.'