implement duckness's upgrade nag disabling option
This commit is contained in:
parent
81f1dbf0fb
commit
47eea2a57a
@ -5,6 +5,9 @@
|
|||||||
- In v1.5.1, image/video hover was changed to hide and re-use the images/videos to avoid crashes.
|
- 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.
|
Fixing bugs caused by this change.
|
||||||
|
|
||||||
|
**duckness**
|
||||||
|
- Allow disabling upgrade nag message.
|
||||||
|
|
||||||
### v1.5.2
|
### v1.5.2
|
||||||
*2014-04-04*
|
*2014-04-04*
|
||||||
|
|
||||||
|
|||||||
@ -152,7 +152,8 @@
|
|||||||
'Emoji': [false, 'Adds icons next to names for different emails'],
|
'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'],
|
'Color User IDs': [false, 'Assign unique colors to user IDs on boards that use them'],
|
||||||
'Remove Spoilers': [false, 'Remove all spoilers in text.'],
|
'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': {
|
'Linkification': {
|
||||||
'Linkify': [true, 'Convert text into links where applicable.'],
|
'Linkify': [true, 'Convert text into links where applicable.'],
|
||||||
@ -13351,7 +13352,7 @@
|
|||||||
}
|
}
|
||||||
test = $.el('span');
|
test = $.el('span');
|
||||||
test.classList.add('a', 'b');
|
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);
|
new Notice('warning', "Your version of Firefox is outdated (v26 minimum) and 4chan X may not operate correctly.", 30);
|
||||||
}
|
}
|
||||||
GMver = GM_info.version.split('.');
|
GMver = GM_info.version.split('.');
|
||||||
|
|||||||
@ -128,7 +128,8 @@
|
|||||||
'Emoji': [false, 'Adds icons next to names for different emails'],
|
'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'],
|
'Color User IDs': [false, 'Assign unique colors to user IDs on boards that use them'],
|
||||||
'Remove Spoilers': [false, 'Remove all spoilers in text.'],
|
'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': {
|
'Linkification': {
|
||||||
'Linkify': [true, 'Convert text into links where applicable.'],
|
'Linkify': [true, 'Convert text into links where applicable.'],
|
||||||
|
|||||||
@ -89,6 +89,10 @@ Config =
|
|||||||
false
|
false
|
||||||
'Indicate spoilers if Remove Spoilers is enabled, or make the text appear hovered if Remove Spoiler is disabled.'
|
'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':
|
'Linkification':
|
||||||
'Linkify': [
|
'Linkify': [
|
||||||
|
|||||||
@ -137,7 +137,7 @@ Main =
|
|||||||
<% if (type === 'userscript') { %>
|
<% if (type === 'userscript') { %>
|
||||||
test = $.el 'span'
|
test = $.el 'span'
|
||||||
test.classList.add 'a', 'b'
|
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
|
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 '.'
|
GMver = GM_info.version.split '.'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user