Merge branch 'master' into QR
This commit is contained in:
commit
e5e5549ebe
@ -114,7 +114,7 @@
|
|||||||
'Indicate OP quote': [true, 'Add \'(OP)\' to OP quotes']
|
'Indicate OP quote': [true, 'Add \'(OP)\' to OP quotes']
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
flavors: ['http://regex.info/exif.cgi?url=', 'http://iqdb.org/?url=', 'http://google.com/searchbyimage?image_url=', '#http://tineye.com/search?url=', '#http://saucenao.com/search.php?db=999&url=', '#http://imgur.com/upload?url='].join('\n'),
|
flavors: ['http://iqdb.org/?url=', 'http://google.com/searchbyimage?image_url=', '#http://regex.info/exif.cgi?url=', '#http://tineye.com/search?url=', '#http://saucenao.com/search.php?db=999&url=', '#http://imgur.com/upload?url='].join('\n'),
|
||||||
time: '%m/%d/%y(%a)%H:%M',
|
time: '%m/%d/%y(%a)%H:%M',
|
||||||
backlink: '>>%id',
|
backlink: '>>%id',
|
||||||
hotkeys: {
|
hotkeys: {
|
||||||
@ -2036,12 +2036,17 @@
|
|||||||
return g.callbacks.push(Time.node);
|
return g.callbacks.push(Time.node);
|
||||||
},
|
},
|
||||||
node: function(root) {
|
node: function(root) {
|
||||||
var day, hour, min, month, s, time, year, _, _ref;
|
var day, hour, min, month, node, tc, time, year, _, _ref;
|
||||||
if (root.className === 'inline') {
|
if (root.className === 'inline') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
s = $('span[id^=no]', root).previousSibling;
|
node = $('span[id]', root).previousSibling;
|
||||||
_ref = s.textContent.match(/(\d+)\/(\d+)\/(\d+)\(\w+\)(\d+):(\d+)/), _ = _ref[0], month = _ref[1], day = _ref[2], year = _ref[3], hour = _ref[4], min = _ref[5];
|
tc = node.textContent;
|
||||||
|
if (tc === ' ') {
|
||||||
|
node = node.previousSibling;
|
||||||
|
tc = node.textContent;
|
||||||
|
}
|
||||||
|
_ref = tc.match(/(\d+)\/(\d+)\/(\d+)\(\w+\)(\d+):(\d+)/), _ = _ref[0], month = _ref[1], day = _ref[2], year = _ref[3], hour = _ref[4], min = _ref[5];
|
||||||
year = "20" + year;
|
year = "20" + year;
|
||||||
month -= 1;
|
month -= 1;
|
||||||
hour = g.chanOffset + Number(hour);
|
hour = g.chanOffset + Number(hour);
|
||||||
@ -2049,7 +2054,7 @@
|
|||||||
time = $.el('time', {
|
time = $.el('time', {
|
||||||
textContent: ' ' + Time.funk(Time) + ' '
|
textContent: ' ' + Time.funk(Time) + ' '
|
||||||
});
|
});
|
||||||
return $.replace(s, time);
|
return $.replace(node, time);
|
||||||
},
|
},
|
||||||
foo: function() {
|
foo: function() {
|
||||||
var code;
|
var code;
|
||||||
|
|||||||
@ -1,7 +1,11 @@
|
|||||||
master
|
master
|
||||||
|
|
||||||
|
2.19.3
|
||||||
- mayhem
|
- mayhem
|
||||||
quote inlining default styling (by xat)
|
quote inlining default styling (by xat)
|
||||||
add up/down/right/left keybinding support
|
add up/down/right/left keybinding support
|
||||||
|
- aeosynth
|
||||||
|
fixed bug that caused script to fail when time formatting enabled
|
||||||
|
|
||||||
2.19.2
|
2.19.2
|
||||||
- mayhem
|
- mayhem
|
||||||
|
|||||||
@ -44,9 +44,9 @@ config =
|
|||||||
'Quote Preview': [true, 'Show quote content on hover']
|
'Quote Preview': [true, 'Show quote content on hover']
|
||||||
'Indicate OP quote': [true, 'Add \'(OP)\' to OP quotes']
|
'Indicate OP quote': [true, 'Add \'(OP)\' to OP quotes']
|
||||||
flavors: [
|
flavors: [
|
||||||
'http://regex.info/exif.cgi?url='
|
|
||||||
'http://iqdb.org/?url='
|
'http://iqdb.org/?url='
|
||||||
'http://google.com/searchbyimage?image_url='
|
'http://google.com/searchbyimage?image_url='
|
||||||
|
'#http://regex.info/exif.cgi?url='
|
||||||
'#http://tineye.com/search?url='
|
'#http://tineye.com/search?url='
|
||||||
'#http://saucenao.com/search.php?db=999&url='
|
'#http://saucenao.com/search.php?db=999&url='
|
||||||
'#http://imgur.com/upload?url='
|
'#http://imgur.com/upload?url='
|
||||||
@ -1569,9 +1569,13 @@ Time =
|
|||||||
g.callbacks.push Time.node
|
g.callbacks.push Time.node
|
||||||
node: (root) ->
|
node: (root) ->
|
||||||
return if root.className is 'inline'
|
return if root.className is 'inline'
|
||||||
s = $('span[id^=no]', root).previousSibling
|
node = $('span[id]', root).previousSibling
|
||||||
|
tc = node.textContent
|
||||||
|
if tc is ' '
|
||||||
|
node = node.previousSibling
|
||||||
|
tc = node.textContent
|
||||||
[_, month, day, year, hour, min] =
|
[_, month, day, year, hour, min] =
|
||||||
s.textContent.match /(\d+)\/(\d+)\/(\d+)\(\w+\)(\d+):(\d+)/
|
tc.match /(\d+)\/(\d+)\/(\d+)\(\w+\)(\d+):(\d+)/
|
||||||
year = "20#{year}"
|
year = "20#{year}"
|
||||||
month -= 1 #months start at 0
|
month -= 1 #months start at 0
|
||||||
hour = g.chanOffset + Number hour
|
hour = g.chanOffset + Number hour
|
||||||
@ -1580,7 +1584,7 @@ Time =
|
|||||||
|
|
||||||
time = $.el 'time',
|
time = $.el 'time',
|
||||||
textContent: ' ' + Time.funk(Time) + ' '
|
textContent: ' ' + Time.funk(Time) + ' '
|
||||||
$.replace s, time
|
$.replace node, time
|
||||||
foo: ->
|
foo: ->
|
||||||
code = conf['time'].replace /%([A-Za-z])/g, (s, c) ->
|
code = conf['time'].replace /%([A-Za-z])/g, (s, c) ->
|
||||||
if c of Time.formatters
|
if c of Time.formatters
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user