Created
April 6, 2012 21:18
-
-
Save e0da/2323037 to your computer and use it in GitHub Desktop.
Depaginate Phoronix articles
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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