fix w keybind
This commit is contained in:
parent
917f48eae3
commit
4b61eb230c
@ -555,8 +555,9 @@ keyModeNormal = (e) ->
|
|||||||
else
|
else
|
||||||
GM_openInTab href
|
GM_openInTab href
|
||||||
when "W"
|
when "W"
|
||||||
watchButton = $("#{hash} ~ img")
|
root = if g.REPLY then null else getThread()[0]
|
||||||
watch.call watchButton
|
watchButton = $ "span.filesize ~ img", root
|
||||||
|
watch.call watchButton
|
||||||
|
|
||||||
nodeInserted = (e) ->
|
nodeInserted = (e) ->
|
||||||
target = e.target
|
target = e.target
|
||||||
@ -801,7 +802,7 @@ threadF = (current) ->
|
|||||||
|
|
||||||
watch = ->
|
watch = ->
|
||||||
id = @nextSibling.name
|
id = @nextSibling.name
|
||||||
if @src[0] is 'd'#data:png
|
if @src is g.favEmpty
|
||||||
@src = g.favNormal
|
@src = g.favNormal
|
||||||
text = "/#{g.BOARD}/ - " +
|
text = "/#{g.BOARD}/ - " +
|
||||||
x('following-sibling::blockquote', this).textContent.slice(0,25)
|
x('following-sibling::blockquote', this).textContent.slice(0,25)
|
||||||
@ -847,7 +848,7 @@ g =
|
|||||||
callbacks: []
|
callbacks: []
|
||||||
count: 0
|
count: 0
|
||||||
expand: false
|
expand: false
|
||||||
favEmpty: 'data:image/gif;base64,R0lGODlhEAAQAJEAAAAAAP///9vb2////yH5BAEAAAMALAAAAAAQABAAAAIvnI+pq+D9DBAUoFkPFnbs7lFZKIJOJJ3MyraoB14jFpOcVMpzrnF3OKlZYsMWowAAOw=='
|
favEmpty: 'http://static.4chan.org/image/favicon-dis.ico'
|
||||||
favNormal: $('link[rel="shortcut icon"]', $('head', d))?.href or 'http://static.4chan.org/image/favicon.ico'
|
favNormal: $('link[rel="shortcut icon"]', $('head', d))?.href or 'http://static.4chan.org/image/favicon.ico'
|
||||||
flavors: [
|
flavors: [
|
||||||
'http://regex.info/exif.cgi?url='
|
'http://regex.info/exif.cgi?url='
|
||||||
|
|||||||
@ -723,7 +723,8 @@
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "W":
|
case "W":
|
||||||
watchButton = $("" + hash + " ~ img");
|
root = g.REPLY ? null : getThread()[0];
|
||||||
|
watchButton = $("span.filesize ~ img", root);
|
||||||
return watch.call(watchButton);
|
return watch.call(watchButton);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -1063,7 +1064,7 @@
|
|||||||
watch = function() {
|
watch = function() {
|
||||||
var id, text, _base, _name;
|
var id, text, _base, _name;
|
||||||
id = this.nextSibling.name;
|
id = this.nextSibling.name;
|
||||||
if (this.src[0] === 'd') {
|
if (this.src === g.favEmpty) {
|
||||||
this.src = g.favNormal;
|
this.src = g.favNormal;
|
||||||
text = ("/" + g.BOARD + "/ - ") + x('following-sibling::blockquote', this).textContent.slice(0, 25);
|
text = ("/" + g.BOARD + "/ - ") + x('following-sibling::blockquote', this).textContent.slice(0, 25);
|
||||||
(_base = g.watched)[_name = g.BOARD] || (_base[_name] = []);
|
(_base = g.watched)[_name = g.BOARD] || (_base[_name] = []);
|
||||||
@ -1116,7 +1117,7 @@
|
|||||||
callbacks: [],
|
callbacks: [],
|
||||||
count: 0,
|
count: 0,
|
||||||
expand: false,
|
expand: false,
|
||||||
favEmpty: 'data:image/gif;base64,R0lGODlhEAAQAJEAAAAAAP///9vb2////yH5BAEAAAMALAAAAAAQABAAAAIvnI+pq+D9DBAUoFkPFnbs7lFZKIJOJJ3MyraoB14jFpOcVMpzrnF3OKlZYsMWowAAOw==',
|
favEmpty: 'http://static.4chan.org/image/favicon-dis.ico',
|
||||||
favNormal: ((_ref = $('link[rel="shortcut icon"]', $('head', d))) != null ? _ref.href : void 0) || 'http://static.4chan.org/image/favicon.ico',
|
favNormal: ((_ref = $('link[rel="shortcut icon"]', $('head', d))) != null ? _ref.href : void 0) || 'http://static.4chan.org/image/favicon.ico',
|
||||||
flavors: ['http://regex.info/exif.cgi?url=', 'http://iqdb.org/?url=', 'http://saucenao.com/search.php?db=999&url=', 'http://tineye.com/search?url='].join('\n'),
|
flavors: ['http://regex.info/exif.cgi?url=', 'http://iqdb.org/?url=', 'http://saucenao.com/search.php?db=999&url=', 'http://tineye.com/search?url='].join('\n'),
|
||||||
iframe: false,
|
iframe: false,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user