FlyerTalk Forums - View Single Post - Infinite / Automatic Scroll: issues, q&a, disable on desktop version
Old Feb 14, 2017 | 10:13 pm
  #156  
TheLifeOfA_NKCM
20 Countries Visited
1M
All eyes on you!
10 Years on Site
 
Join Date: Mar 2016
Location: MSP & BWI
Programs: DL PM & NRSA, AA Gold, ANA Plat, Hilton Gold, Marriott Gold, National EC Exec, GE, CLEAR
Posts: 1,227
Originally Posted by Spanish
I do not know why the script is refreshing screen constantly for you. Is it keep adding "?styleid=17" over and over? I already fix that issue for me.

I run Debian Jessie with Iceweasel & Windows 8.1 with the Firefox. Neither are having issue with the script.

Do you have the following in script?

if (window.location.href.toString().indexOf("?styleid =17") != -1) return false;
if ( ! /\?styleid=17$/.test (oldUrlPath) )

That is the part preventing it from continuously adding. It asking itself "Does URL already end in ?styleid=17, and if so, we will leave the URL alone."

Mine working great. Happy to help if you having any questions.
Copied the script verbatim into Tamper monkey on Windows 10 Aniversary Edition with the latest version of Chrome. For some reason, it just keeps testing the URL and even if it passes or has already updated the URL it'll just keep going
TheLifeOfA_NKCM is offline