FlyerTalk Forums - View Single Post - Infinite / Automatic Scroll: issues, q&a, disable on desktop version
Old Feb 11, 2017 | 4:01 pm
  #148  
Spanish
10 Countries Visited20 Countries Visited30 Countries Visited5 Years on Site
 
Join Date: Nov 2016
Location: CMH
Programs: BA Gold, AA Plat, NK $9 fare club
Posts: 669
All you need to do is add "?styleid=17" to the end of any Flyertalk URL.

For those with Greasemonkey, a simple script for you. You no needing to be logged in for this to be effective.

Here you go:



// ==UserScript==
// @name Flyertalk_Remove_Infinite_Scroll
// @match *://*.flyertalk.com/*
// @run-at document-start
// @grant none
// ==/UserScript==

var oldUrlPath = window.location.pathname;

/*--- Test that "?styleid=17" is at end of URL, excepting any "hashes"
or searches.
*/
if (window.location.href.toString().indexOf("?styleid =17") != -1) return false;
if ( ! /\?styleid=17$/.test (oldUrlPath) ) {

var newURL = window.location.protocol + "//"
+ window.location.host
+ oldUrlPath + "?styleid=17"
+ window.location.search
+ window.location.hash
;
/*-- replace() puts the good page in the history instead of the
bad page.
*/
window.location.replace (newURL);
}



Note that there is no space between any of the ?styleid=17 in the above. For some reason the Flyertalk forum putting space between ?styleid and =17. I have it removed here, but always shows back up.

Last edited by Spanish; Feb 15, 2017 at 1:13 pm Reason: Fixing Spacing
Spanish is offline