Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install
No Meta Refresh
Stop all pages from auto refreshing
|
|
|
|
|
I just had to have this script useful so I did this: http://userscripts.org/scripts/show/4097
|
|
|
It turns out that Firefox doesn't support the lower-case() function of xpath, so I used the trasnlate function. The script should work on all pages now (regardless of capitalization in 'refresh'). If anybody finds differently, let me know. @Wulf: when you install the script you should get a dialog that allows you to include and exclude websites. By adding sites to these lists, you can make it only work on a list of websites. The default is for all sites, but you can change that. |
|
|
Is there any way to get this to only work on one (or a list of) website(s)? Thanks |
|
|
I don't know enough about the code to interpret your first comment. Makes sense now, though. A modified version works at drudgereport. I'll just use 2 different versions for now. |
|
|
Yes, this is a known problem that I documented in my comment. The issue is that being html, the 'refresh' tag can have any capitalization. I left it as 'Refresh' because that is what nytimes.com uses, whereas drudgereport.com uses 'refresh'. Using the lower-case() function is crashing my javascript whatever, with the error code in the comment below.
If you want it to work for the drudgereport.com you can change the capitalization of refresh on the line: var refresh = document.evaluate("//meta[@http-equiv='Refresh']", in the source. When I get a chance, I will look into this error and hopefully it will be useful on any site. |
|
|
This is a great idea but it doesn't work. DrudgeReport.com, which refreshes every 200 seconds, ignored it. |
|
|
This script has been tested (briefly) and works in windows and linux for the nytimes.com. However, my javascript interpreter has been crashing when I try to use the lower-case() (or upper-case()) function to make this viable for all sites. The error is: Error: Component returned failure code: 0x8060000e [nsIDOMXPathEvaluator.evaluate]
|
You could comment on this script if you were logged in.
