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