start Time Formatting
This commit is contained in:
parent
3d4b6e7942
commit
31db0025c1
@ -106,8 +106,7 @@
|
|||||||
'404 Redirect': [true, 'Redirect dead threads'],
|
'404 Redirect': [true, 'Redirect dead threads'],
|
||||||
'Anonymize': [false, 'Make everybody anonymous'],
|
'Anonymize': [false, 'Make everybody anonymous'],
|
||||||
'Keybinds': [false, 'Binds actions to keys'],
|
'Keybinds': [false, 'Binds actions to keys'],
|
||||||
'Localize Time': [true, 'Show times based on your timezone'],
|
'Time Formatting': [false, 'Arbitrarily formatted timestamps, using your local time'],
|
||||||
'Localized am/pm': [false, 'Change localized time to the 12-hour clock convention'],
|
|
||||||
'Report Button': [true, 'Add report buttons'],
|
'Report Button': [true, 'Add report buttons'],
|
||||||
'Comment Expansion': [true, 'Expand too long comments'],
|
'Comment Expansion': [true, 'Expand too long comments'],
|
||||||
'Thread Expansion': [true, 'View all replies'],
|
'Thread Expansion': [true, 'View all replies'],
|
||||||
@ -1668,6 +1667,15 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
({
|
||||||
|
time: function() {
|
||||||
|
return {
|
||||||
|
init: function() {
|
||||||
|
return g.callbacks.push(function(root) {});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
});
|
||||||
localize = {
|
localize = {
|
||||||
init: function() {
|
init: function() {
|
||||||
return g.callbacks.push(function(root) {
|
return g.callbacks.push(function(root) {
|
||||||
@ -2433,8 +2441,8 @@
|
|||||||
if ($.config('Image Auto-Gif')) {
|
if ($.config('Image Auto-Gif')) {
|
||||||
imgGif.init();
|
imgGif.init();
|
||||||
}
|
}
|
||||||
if ($.config('Localize Time')) {
|
if ($.config('Time Formatting')) {
|
||||||
localize.init();
|
time.init();
|
||||||
}
|
}
|
||||||
if ($.config('Sauce')) {
|
if ($.config('Sauce')) {
|
||||||
sauce.init();
|
sauce.init();
|
||||||
|
|||||||
@ -38,8 +38,7 @@ config =
|
|||||||
'404 Redirect': [true, 'Redirect dead threads']
|
'404 Redirect': [true, 'Redirect dead threads']
|
||||||
'Anonymize': [false, 'Make everybody anonymous']
|
'Anonymize': [false, 'Make everybody anonymous']
|
||||||
'Keybinds': [false, 'Binds actions to keys']
|
'Keybinds': [false, 'Binds actions to keys']
|
||||||
'Localize Time': [true, 'Show times based on your timezone']
|
'Time Formatting': [false, 'Arbitrarily formatted timestamps, using your local time']
|
||||||
'Localized am/pm': [false, 'Change localized time to the 12-hour clock convention']
|
|
||||||
'Report Button': [true, 'Add report buttons']
|
'Report Button': [true, 'Add report buttons']
|
||||||
'Comment Expansion': [true, 'Expand too long comments']
|
'Comment Expansion': [true, 'Expand too long comments']
|
||||||
'Thread Expansion': [true, 'View all replies']
|
'Thread Expansion': [true, 'View all replies']
|
||||||
@ -1314,6 +1313,11 @@ sauce =
|
|||||||
href: prefix + suffix
|
href: prefix + suffix
|
||||||
$.append span, $.tn(' '), link
|
$.append span, $.tn(' '), link
|
||||||
|
|
||||||
|
time: ->
|
||||||
|
init: ->
|
||||||
|
g.callbacks.push (root) ->
|
||||||
|
return
|
||||||
|
|
||||||
localize =
|
localize =
|
||||||
init: ->
|
init: ->
|
||||||
g.callbacks.push (root) ->
|
g.callbacks.push (root) ->
|
||||||
@ -1833,8 +1837,8 @@ main =
|
|||||||
if $.config 'Image Auto-Gif'
|
if $.config 'Image Auto-Gif'
|
||||||
imgGif.init()
|
imgGif.init()
|
||||||
|
|
||||||
if $.config 'Localize Time'
|
if $.config 'Time Formatting'
|
||||||
localize.init()
|
time.init()
|
||||||
|
|
||||||
if $.config 'Sauce'
|
if $.config 'Sauce'
|
||||||
sauce.init()
|
sauce.init()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user