Suggestion/Bug?

35 views
Skip to first unread message

Dave

unread,
Jan 5, 2015, 2:13:39 AM1/5/15
to ezlink...@googlegroups.com
I like to use ezLinkPreview on drudgereport.com. This news aggregator does an auto refresh every few minutes. When I am reading a link using ezLinkPreview, when the page refreshes, the preview evaporates. This happens often enough that it is frequently impossible to finish an article without relinking it, and then having to find my place again in the article. 

Perhaps the pin function could be modified so that the preview sticks even when the underlying page refreshes, or something. CoolPreviews does not have this problem.

Thanks for the good preview extension.

Dave

Erik Zanker

unread,
Jan 5, 2015, 9:30:22 AM1/5/15
to ezLinkPreview
Drudge has javascript within the page that automatically reloads the entire page every 3 minutes. CoolPreviews in Firefox actually loads the previews into a separate 'special' window and is thus unaffected by the the original page reloads. My extension just creates an IFRAME within the page so that the preview is actually inside the drudge page. Consequently when the the page is reloaded, the preview goes away.

You could try this: https://plus.google.com/109398204359884202115/posts/Hq7Bgw96wsj to disable javascript within drudge

Also, there are some script blocking extensions that you could use to disable drudge's javascript, or you could create a bookmarklet, see https://support.mozilla.org/en-US/questions/806866




--
You received this message because you are subscribed to the Google Groups "ezLinkPreview" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ezlinkprevie...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Erik Zanker

unread,
Jan 5, 2015, 10:27:21 AM1/5/15
to ezLinkPreview
I have found a solution:

Install the tampermonkey​ extension which allows you to insert javascript into any page.
Create the following script:

// ==UserScript==
// @name         Block Drudge Auto-Refresh
// @version      0.1
// @description  Block Drudge Auto-Refresh
// @author       ezanker
// @match        http://www.drudgereport.com/
// @grant        none
// ==/UserScript==
clearInterval(timer);
void(autoRefresh=null);

Set it to run at document end.

This stops drudge from autorefreshing the main page.

Dave

unread,
Jan 17, 2015, 8:26:03 PM1/17/15
to ezlink...@googlegroups.com
Thanks. Didn't see this 'till today. For some reason I didn't get an email when the thread updated. Oh well. I posted on your other venue earlier, but deleted it when I figured out how. Sorry.

I like this solution very much. I have always hated that drudge refreshed so quickly, and this solved that problem too. 

I couldn't find anything that sets where the script runs, beginning or end of document. I just took the default, and that seems to work fine.

Thanks again,

Dave



Erik Zanker

unread,
Jan 17, 2015, 8:53:15 PM1/17/15
to ezLinkPreview
Glad to hear it worked out for you. When editing a script there is a settings tab next to the editor tab. That's where you change it, but if the defaults are working, just go with it.
Erik

Dave

unread,
Jan 18, 2015, 1:10:43 AM1/18/15
to ezlink...@googlegroups.com
Hm! I see the settings tab. And, to get all the settings you have to put the config mode to advanced, but I still don't see anything that looks like it sets where the script runs.

And, it is not working perfectly. I checked the page in FF, and it has changed, but I can't get the Chrome refresh to work, so something is wrong.

Dave

Dave

unread,
Jan 18, 2015, 1:23:25 AM1/18/15
to ezlink...@googlegroups.com
Wait! Now looks like the FF has updated to be the same as Chrome. Drudge typically gets real slow on Sat night to Sun night so I think I'll wait to see how this comes out as time goes along. Sorry, I'm taking up way too much bandwidth. I'll shut up unless I see something that is real and verifiable.
Reply all
Reply to author
Forward
0 new messages