Tweak to reduce false positives with various script extensions
|
|
I've noticed a lot of times DirectLink will see a link that ends in .py or .do or what have you and, because these are valid ccTLDs, add a direct link to them -- which of course usually goes nowhere, and is merely confusing. Ideally, this wouldn't happen, as webmasters wouldn't use extensions on there pages at all. In practice, of course, a different solution must be found.
|
|
|
Well resonated. That is absolutely a possibility. An alternative could be to (optionally) ignore URLs that do not begin with "foo://". But perhaps that will exclude too many real cases, I'm not sure. How often do you see those? For example, on reddit there are links like "http://www.reddit.com/domain/cnn.com" which are correctly guessed to be http://cnn.com. But is that link really that useful? |
|
|
Well, I actually do see links that have no protocol at times, and I do occasionally find those useful -- not, perhaps, quite often enough, but certainly at least as often as I find .py links. P.S. Sorry for not responding sooner; I forgot to check back, and userscripts.org doesn't do so hot at reminding me. |
|
|
Sorry for the late reply. I just updated the script. You can now alter a TLD black list in about:config. They will however only be black listed if they miss foo:// and something like /foo.html. Thank you for the tip! I agree that .do and .py often are annoying, and also that using about:config is a good thing. Unfortunately, Opera users will not get the about:config functionality. |
|
|
Ah, thanks. The update is looking good so far (I'm using Firefox, and had temporarily forgotten about Opera). |