Skip to content

Instantly share code, notes, and snippets.

@clarencesong
Created February 6, 2016 17:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clarencesong/850613b886f20ae5e08e to your computer and use it in GitHub Desktop.
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.
// ==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