Large

Google Fx v2.35

By Pablo Custo Last update Sep 1, 2010 — Installed 238,215 times.

Streaming fills up browser's history

in
Subscribe to Streaming fills up browser's history 2 posts, 2 voices



V@no Scriptwright

Hello!

Currently when streaming is turned on, it ignores user's preferences on how many results per page google should return. I believe it retrieve 25 or 50 results.
It wouldn't be a big problem if each new stream would not produce an entry in browser's history. This means it fills up history for the "back" button. So if you originally had set google to show 100 results per page, now it's 4 times less and 4 time more entries in history to go back.
I found this quiet annoying...If some people thinks this is all good, then perhaps GFX would provide an option to enabled/disable this "feature", otherwise personally I would not mind have this be fixed permanently.

I've posted working code under bugs report topic, but since then source had been changed, so here is updated changes:

Find:

			iframe.src = (isReverse ? prevUrl : nextUrl) + '#gfx-ap';

Replace with:
			iframe.contentWindow.location.replace(nextUrl + '#gfx-ap');

Then find:

			if(lastSrc == iframe.src){ return; } // Prevent Double Ejecution
			lastSrc = iframe.src;

Replace with:
			if(lastSrc == iframe.contentWindow.location){ return; } // Prevent Double Ejecution
			lastSrc = iframe.contentWindow.location;

Thank you.

 
Pablo Custo Script's Author
Yeap V@no... but we have a compatibility problem with Opera.

In next version will be:
if(isOpera){
	iframe.src = (isReverse ? prevUrl : nextUrl) + '#gfx-ap';
} else {
	iframe.contentWindow.location.replace(nextUrl + '#gfx-ap');
}
and
// Prevent Double Ejecution
if(isOpera){
	if(lastSrc == iframe.src){ return; }
	lastSrc = iframe.src;
} else {
	if(lastSrc == iframe.contentWindow.location){ return; }
	lastSrc = iframe.contentWindow.location;
}
Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel