Created
February 6, 2016 17:23
-
-
Save clarencesong/850613b886f20ae5e08e to your computer and use it in GitHub Desktop.
Automatically go to the non-paginated version of a todayonline.com article, if a "single page" link is found on the page.
This file contains 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
// ==UserScript== | |
// @name TODAYonline De-Paginator | |
// @description Paginating articles for more page views is great for ad impressions, but not cool for readers. | |
// @version 1.0 | |
// @date 2016-02-07 | |
// @namespace http://todayonline.com/ | |
// @include http://www.todayonline.com/* | |
// ==/UserScript== | |
(function() { | |
if ($('a[href="?singlepage=true"]').length > 0) { | |
window.location.href = window.location.href + '?singlepage=true'; | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment