4 ms·
Paging should be incorporated into web standards. Imagine your browser indicating "you are on page 2 of 8". Imagine having browser hotkeys for "next page", "pre
by oftenwrong 7y ago
Paging should be incorporated into web standards. Imagine your browser indicating "you are on page 2 of 8". Imagine having browser hotkeys for "next page", "previous page" and "jump to page".
The browser itself could even provide a non-broken, customisable, universal-across-all-sites implementation of infinite scrolling.
- leokennis 7y agoI remember from ~10-15 years ago, in the Opera browser there was a button to go foward even when you did not go backwards. It was pretty good at guessing what the next page was going to be (example.com/1.html > 2.html, 2005-08.jpg > 2005-09.jpg etc.)
- _randyr 7y agoIf I'm not mistaken qutebrowser also has this feature.
- oftenwrong 7y agoIt is a common feature in vimperator-like browsers.
- The-Compiler 7y agoYup! It has various kinds of shortcuts for this kind of thing (increment/decrement number, find prev/next link, remove component from path). If you're curious, the implementation is here: https://github.com/qutebrowser/qutebrowser/blob/master/qutebrowser/browser/navigate.py https://github.com/qutebrowser/qutebrowser/blob/master/quteb...
- yesbabyyes 7y agoIf viewing "private" information vulnerable to an enumeration attack, would this be considered hacking? See also weev.
- diegoperini 7y agoThat's how Zuckerberg built his app before Facebook.
- wlesieutre 7y agoI have a “+1” bookmarklet with a similar goal. It’s not very smart, just finds the last number in a URL and increments it, but that’s usually good enough.
- streb-lo 7y agoFor anyone interested, I reproduced the bookmarklet in question: javascript:(function() {var num = null;var found = window.location.toString().match(/(\d+)(?!.*\d)/);if (found != null) {num = parseInt(found[0])+1};if (num != null) {window.location=(window.location.toString().replace(/(\d+)(?!.*\d)/,num))};})() I'm not a Javascript person, so I'm not sure if there is a better way but it seems to work.
- wlesieutre 7y agoI think mine came from here many years ago: https://www.squarefree.com/bookmarklets/misc.html#increment https://www.squarefree.com/bookmarklets/misc.html#increment The "works in" browser icons gives some idea of the date on that. IE, Phoenix, Netscape 4, and Opera. Probably some of the oldest still-in-use javascript in the world :P Ran it through prettier.io: javascript: (function() { var e, s; IB = 1; function isDigit(c) { return "0" <= c && c <= "9"; } L = location.href; LL = L.length; for (e = LL - 1; e >= 0; --e) if (isDigit(L.charAt(e))) { for (s = e - 1; s >= 0; --s) if (!isDigit(L.charAt(s))) break; break; } ++s; if (e < 0) return; oldNum = L.substring(s, e + 1); newNum = "" + (parseInt(oldNum, 10) + IB); while (newNum.length < oldNum.length) newNum = "0" + newNum; location.href = L.substring(0, s) + newNum + L.slice(e + 1); })();
- lnl 7y agoThe feature was called fast forwarding, and old Opera's successor Vivaldi still has it. For those unfamiliar with it, it also works with more complex pagination schemes than just incrementing the number at the end; e.g. Google or Bing searches. I remember Opera also had (and Vivaldi has, I just found) an optional feature where continuing to press space after reaching the end of the page would trigger fast-forward and take you to the next page. Sort of an alternative way of infinite scrolling.
- amelius 7y agoThe problem is that browser windows have different sizes, so pages will be of different size. Formatting a document to fit on a page size is not rocket-science but also not trivial to do nicely.
- oftenwrong 7y agoI mean "paging" in the web sense of the word, like when you're paging through search results. Not like a book.
- zrm 7y agoThen implement it with elements rather than pages. Regardless of how many elements fit on a page, you could then get a reference to the page that begins at element 12345 in a given sort ordering, and come back and continue from there at any point or on some other device.
- Symmetry 7y agoThere are definitely sites (usually documentation) where I can press Alt-N to get to the next page and Alt-P to get to the previous one and I have no idea how that happens.
- zczc 7y agoProbably done using rel="next", rel="prev", like this: <link rel="next" href="/page/2"> see https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types
- fenwick67 7y agoWoah! I knew about rel="next" but I never thought it could do that
- silentguy 7y agoIf you use vimium or similar browser extensions for mouse-free access, they have keybinding for paging. It's not perfect, but it's still better than nothing.
- mgradowski 7y agoFor the curious, Vimium looks for these by default: prev,previous,back,older,<,‹,←,«,≪,<< next,more,newer,>,›,→,»,≫,>>. I have been using it for a month now and it works surprisingly well.