This commit is contained in:
parent
359a503bd0
commit
39b0587ddf
@ -13814,7 +13814,7 @@
|
|||||||
return $.on(d, '4chanMainInit', Main.initStyle);
|
return $.on(d, '4chanMainInit', Main.initStyle);
|
||||||
},
|
},
|
||||||
initFeatures: function() {
|
initFeatures: function() {
|
||||||
var init, video;
|
var init;
|
||||||
switch (location.hostname) {
|
switch (location.hostname) {
|
||||||
case 'a.4cdn.org':
|
case 'a.4cdn.org':
|
||||||
return;
|
return;
|
||||||
@ -13822,20 +13822,20 @@
|
|||||||
Report.init();
|
Report.init();
|
||||||
return;
|
return;
|
||||||
case 'i.4cdn.org':
|
case 'i.4cdn.org':
|
||||||
if (Conf['Loop in New Tab'] && (video = $('video'))) {
|
|
||||||
Video.configure(video);
|
|
||||||
$.on(video, 'click', function() {
|
|
||||||
if (!video.controls) {
|
|
||||||
if (video.paused) {
|
|
||||||
return video.play();
|
|
||||||
} else {
|
|
||||||
return video.pause();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
$.ready(function() {
|
$.ready(function() {
|
||||||
var URL, pathname, _ref;
|
var URL, pathname, video, _ref;
|
||||||
|
if (Conf['Loop in New Tab'] && (video = $('video'))) {
|
||||||
|
Video.configure(video);
|
||||||
|
if (!video.controls) {
|
||||||
|
$.on(video, 'click', function() {
|
||||||
|
if (video.paused) {
|
||||||
|
return video.play();
|
||||||
|
} else {
|
||||||
|
return video.pause();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
if (Conf['404 Redirect'] && ((_ref = d.title) === '4chan - Temporarily Offline' || _ref === '4chan - 404 Not Found')) {
|
if (Conf['404 Redirect'] && ((_ref = d.title) === '4chan - Temporarily Offline' || _ref === '4chan - 404 Not Found')) {
|
||||||
Redirect.init();
|
Redirect.init();
|
||||||
pathname = location.pathname.split('/');
|
pathname = location.pathname.split('/');
|
||||||
|
|||||||
@ -13832,7 +13832,7 @@
|
|||||||
return $.on(d, '4chanMainInit', Main.initStyle);
|
return $.on(d, '4chanMainInit', Main.initStyle);
|
||||||
},
|
},
|
||||||
initFeatures: function() {
|
initFeatures: function() {
|
||||||
var init, video;
|
var init;
|
||||||
switch (location.hostname) {
|
switch (location.hostname) {
|
||||||
case 'a.4cdn.org':
|
case 'a.4cdn.org':
|
||||||
return;
|
return;
|
||||||
@ -13840,20 +13840,20 @@
|
|||||||
Report.init();
|
Report.init();
|
||||||
return;
|
return;
|
||||||
case 'i.4cdn.org':
|
case 'i.4cdn.org':
|
||||||
if (Conf['Loop in New Tab'] && (video = $('video'))) {
|
|
||||||
Video.configure(video);
|
|
||||||
$.on(video, 'click', function() {
|
|
||||||
if (!video.controls) {
|
|
||||||
if (video.paused) {
|
|
||||||
return video.play();
|
|
||||||
} else {
|
|
||||||
return video.pause();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
$.ready(function() {
|
$.ready(function() {
|
||||||
var URL, pathname, _ref;
|
var URL, pathname, video, _ref;
|
||||||
|
if (Conf['Loop in New Tab'] && (video = $('video'))) {
|
||||||
|
Video.configure(video);
|
||||||
|
if (!video.controls) {
|
||||||
|
$.on(video, 'click', function() {
|
||||||
|
if (video.paused) {
|
||||||
|
return video.play();
|
||||||
|
} else {
|
||||||
|
return video.pause();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
if (Conf['404 Redirect'] && ((_ref = d.title) === '4chan - Temporarily Offline' || _ref === '4chan - 404 Not Found')) {
|
if (Conf['404 Redirect'] && ((_ref = d.title) === '4chan - Temporarily Offline' || _ref === '4chan - 404 Not Found')) {
|
||||||
Redirect.init();
|
Redirect.init();
|
||||||
pathname = location.pathname.split('/');
|
pathname = location.pathname.split('/');
|
||||||
|
|||||||
@ -53,12 +53,12 @@ Main =
|
|||||||
Report.init()
|
Report.init()
|
||||||
return
|
return
|
||||||
when 'i.4cdn.org'
|
when 'i.4cdn.org'
|
||||||
if Conf['Loop in New Tab'] and video = $ 'video'
|
|
||||||
Video.configure video
|
|
||||||
$.on video, 'click', ->
|
|
||||||
if !video.controls
|
|
||||||
if video.paused then video.play() else video.pause()
|
|
||||||
$.ready ->
|
$.ready ->
|
||||||
|
if Conf['Loop in New Tab'] and video = $ 'video'
|
||||||
|
Video.configure video
|
||||||
|
if !video.controls
|
||||||
|
$.on video, 'click', ->
|
||||||
|
if video.paused then video.play() else video.pause()
|
||||||
if Conf['404 Redirect'] and d.title in ['4chan - Temporarily Offline', '4chan - 404 Not Found']
|
if Conf['404 Redirect'] and d.title in ['4chan - Temporarily Offline', '4chan - 404 Not Found']
|
||||||
Redirect.init()
|
Redirect.init()
|
||||||
pathname = location.pathname.split '/'
|
pathname = location.pathname.split '/'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user