Partially fix #19
This commit is contained in:
parent
903ebad815
commit
66e1e23e6a
2
LICENSE
2
LICENSE
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* 4chan X - Version 1.4.0 - 2014-02-25
|
* 4chan X - Version 1.4.0 - 2014-02-27
|
||||||
*
|
*
|
||||||
* Licensed under the MIT license.
|
* Licensed under the MIT license.
|
||||||
* https://github.com/Spittie/4chan-x/blob/master/LICENSE
|
* https://github.com/Spittie/4chan-x/blob/master/LICENSE
|
||||||
|
|||||||
@ -24,7 +24,7 @@
|
|||||||
// ==/UserScript==
|
// ==/UserScript==
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 4chan X - Version 1.4.0 - 2014-02-25
|
* 4chan X - Version 1.4.0 - 2014-02-27
|
||||||
*
|
*
|
||||||
* Licensed under the MIT license.
|
* Licensed under the MIT license.
|
||||||
* https://github.com/Spittie/4chan-x/blob/master/LICENSE
|
* https://github.com/Spittie/4chan-x/blob/master/LICENSE
|
||||||
@ -2540,7 +2540,7 @@
|
|||||||
return Math.max(0, Index.getPagesNum() - 1);
|
return Math.max(0, Index.getPagesNum() - 1);
|
||||||
},
|
},
|
||||||
togglePagelist: function() {
|
togglePagelist: function() {
|
||||||
return Index.pagelist.hidden = Conf['Index Mode'] === 'all pages';
|
return Index.pagelist.hidden = Conf['Index Mode'] !== 'paged';
|
||||||
},
|
},
|
||||||
buildPagelist: function() {
|
buildPagelist: function() {
|
||||||
var a, i, maxPageNum, nodes, pagesRoot, _i;
|
var a, i, maxPageNum, nodes, pagesRoot, _i;
|
||||||
@ -12183,8 +12183,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$.ready(function() {
|
$.ready(function() {
|
||||||
$.on(window, 'popstate', Navigate.popstate);
|
return $.on(window, 'popstate', Navigate.popstate);
|
||||||
return $.id('catalog').href = $.id('cataloglink').href = "//boards.4chan.org/" + g.BOARD + "/catalog";
|
|
||||||
});
|
});
|
||||||
this.title = function() {};
|
this.title = function() {};
|
||||||
Thread.callbacks.push({
|
Thread.callbacks.push({
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
// Generated by CoffeeScript
|
// Generated by CoffeeScript
|
||||||
/*
|
/*
|
||||||
* 4chan X - Version 1.4.0 - 2014-02-25
|
* 4chan X - Version 1.4.0 - 2014-02-27
|
||||||
*
|
*
|
||||||
* Licensed under the MIT license.
|
* Licensed under the MIT license.
|
||||||
* https://github.com/Spittie/4chan-x/blob/master/LICENSE
|
* https://github.com/Spittie/4chan-x/blob/master/LICENSE
|
||||||
@ -2581,7 +2581,7 @@
|
|||||||
return Math.max(0, Index.getPagesNum() - 1);
|
return Math.max(0, Index.getPagesNum() - 1);
|
||||||
},
|
},
|
||||||
togglePagelist: function() {
|
togglePagelist: function() {
|
||||||
return Index.pagelist.hidden = Conf['Index Mode'] === 'all pages';
|
return Index.pagelist.hidden = Conf['Index Mode'] !== 'paged';
|
||||||
},
|
},
|
||||||
buildPagelist: function() {
|
buildPagelist: function() {
|
||||||
var a, i, maxPageNum, nodes, pagesRoot, _i;
|
var a, i, maxPageNum, nodes, pagesRoot, _i;
|
||||||
@ -12186,8 +12186,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$.ready(function() {
|
$.ready(function() {
|
||||||
$.on(window, 'popstate', Navigate.popstate);
|
return $.on(window, 'popstate', Navigate.popstate);
|
||||||
return $.id('catalog').href = $.id('cataloglink').href = "//boards.4chan.org/" + g.BOARD + "/catalog";
|
|
||||||
});
|
});
|
||||||
this.title = function() {};
|
this.title = function() {};
|
||||||
Thread.callbacks.push({
|
Thread.callbacks.push({
|
||||||
|
|||||||
@ -186,7 +186,7 @@ Index =
|
|||||||
getMaxPageNum: ->
|
getMaxPageNum: ->
|
||||||
Math.max 0, Index.getPagesNum() - 1
|
Math.max 0, Index.getPagesNum() - 1
|
||||||
togglePagelist: ->
|
togglePagelist: ->
|
||||||
Index.pagelist.hidden = Conf['Index Mode'] is 'all pages'
|
Index.pagelist.hidden = Conf['Index Mode'] isnt 'paged'
|
||||||
buildPagelist: ->
|
buildPagelist: ->
|
||||||
pagesRoot = $ '.pages', Index.pagelist
|
pagesRoot = $ '.pages', Index.pagelist
|
||||||
maxPageNum = Index.getMaxPageNum()
|
maxPageNum = Index.getMaxPageNum()
|
||||||
|
|||||||
@ -6,8 +6,6 @@ Navigate =
|
|||||||
$.ready ->
|
$.ready ->
|
||||||
# blink/webkit throw a popstate on page load. Not what we want.
|
# blink/webkit throw a popstate on page load. Not what we want.
|
||||||
$.on window, 'popstate', Navigate.popstate
|
$.on window, 'popstate', Navigate.popstate
|
||||||
# Prevent having to update the catalog links whenever we open threads.
|
|
||||||
$.id('catalog').href = $.id('cataloglink').href = "//boards.4chan.org/#{g.BOARD}/catalog"
|
|
||||||
|
|
||||||
@title = -> return
|
@title = -> return
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user