ImageLoader.quotePreviews -> playVideos
This commit is contained in:
parent
95bd98d5c9
commit
6d2a3dfefb
@ -12162,7 +12162,7 @@
|
|||||||
return g.posts.forEach(ImageLoader.prefetch);
|
return g.posts.forEach(ImageLoader.prefetch);
|
||||||
});
|
});
|
||||||
if (Conf['Replace WEBM']) {
|
if (Conf['Replace WEBM']) {
|
||||||
$.on(d, 'scroll visibilitychange 4chanXInitFinished PostsInserted', this.quotePreviews);
|
$.on(d, 'scroll visibilitychange 4chanXInitFinished PostsInserted', this.playVideos);
|
||||||
}
|
}
|
||||||
if (!Conf['Image Prefetching']) {
|
if (!Conf['Image Prefetching']) {
|
||||||
return;
|
return;
|
||||||
@ -12269,7 +12269,7 @@
|
|||||||
g.BOARD.posts.forEach(ImageLoader.prefetch);
|
g.BOARD.posts.forEach(ImageLoader.prefetch);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
quotePreviews: function() {
|
playVideos: function() {
|
||||||
var qpClone, _ref;
|
var qpClone, _ref;
|
||||||
qpClone = (_ref = $.id('qp')) != null ? _ref.firstElementChild : void 0;
|
qpClone = (_ref = $.id('qp')) != null ? _ref.firstElementChild : void 0;
|
||||||
return g.posts.forEach(function(post) {
|
return g.posts.forEach(function(post) {
|
||||||
|
|||||||
@ -12185,7 +12185,7 @@
|
|||||||
return g.posts.forEach(ImageLoader.prefetch);
|
return g.posts.forEach(ImageLoader.prefetch);
|
||||||
});
|
});
|
||||||
if (Conf['Replace WEBM']) {
|
if (Conf['Replace WEBM']) {
|
||||||
$.on(d, 'scroll visibilitychange 4chanXInitFinished PostsInserted', this.quotePreviews);
|
$.on(d, 'scroll visibilitychange 4chanXInitFinished PostsInserted', this.playVideos);
|
||||||
}
|
}
|
||||||
if (!Conf['Image Prefetching']) {
|
if (!Conf['Image Prefetching']) {
|
||||||
return;
|
return;
|
||||||
@ -12292,7 +12292,7 @@
|
|||||||
g.BOARD.posts.forEach(ImageLoader.prefetch);
|
g.BOARD.posts.forEach(ImageLoader.prefetch);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
quotePreviews: function() {
|
playVideos: function() {
|
||||||
var qpClone, _ref;
|
var qpClone, _ref;
|
||||||
qpClone = (_ref = $.id('qp')) != null ? _ref.firstElementChild : void 0;
|
qpClone = (_ref = $.id('qp')) != null ? _ref.firstElementChild : void 0;
|
||||||
return g.posts.forEach(function(post) {
|
return g.posts.forEach(function(post) {
|
||||||
|
|||||||
@ -12,7 +12,7 @@ ImageLoader =
|
|||||||
g.posts.forEach ImageLoader.prefetch
|
g.posts.forEach ImageLoader.prefetch
|
||||||
|
|
||||||
if Conf['Replace WEBM']
|
if Conf['Replace WEBM']
|
||||||
$.on d, 'scroll visibilitychange 4chanXInitFinished PostsInserted', @quotePreviews
|
$.on d, 'scroll visibilitychange 4chanXInitFinished PostsInserted', @playVideos
|
||||||
|
|
||||||
return unless Conf['Image Prefetching']
|
return unless Conf['Image Prefetching']
|
||||||
|
|
||||||
@ -85,7 +85,7 @@ ImageLoader =
|
|||||||
g.BOARD.posts.forEach ImageLoader.prefetch
|
g.BOARD.posts.forEach ImageLoader.prefetch
|
||||||
return
|
return
|
||||||
|
|
||||||
quotePreviews: ->
|
playVideos: ->
|
||||||
# Special case: Quote previews are off screen when inserted into document, but quickly moved on screen.
|
# Special case: Quote previews are off screen when inserted into document, but quickly moved on screen.
|
||||||
qpClone = $.id('qp')?.firstElementChild
|
qpClone = $.id('qp')?.firstElementChild
|
||||||
g.posts.forEach (post) ->
|
g.posts.forEach (post) ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user