Skip to content

Instantly share code, notes, and snippets.

@e0da
Created April 6, 2012 21:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save e0da/2323037 to your computer and use it in GitHub Desktop.
Save e0da/2323037 to your computer and use it in GitHub Desktop.
Depaginate Phoronix articles
/**
* Depaginate Phoronix articles
*
* Script by Justin Force, 2012. Released to the public domain.
*
* Stick this in whatever user scripts you have. I keep an unpacked Chrome
* extension. You could also use this with GreaseMonkey or something as long as
* you load jQuery first.
*/
$(function () {
$.each($('.phxcms_navigation_format a').filter(function () {
return $(this).attr('href').match(/&num=/) && !$(this).text().match(/Next Page/);
}), function () {
var div = $('<div>');
div.load($(this).attr('href') + ' #phxcms_content_phx', function () {
div.find('.phxcms_navigation_format').remove();
});
$('#phxcms_content_phx').append(div);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment