4 ms·
I wrote a simple Firefox extension mostly for personal use that finds bookmarks that point to unreachable pages. After publishing it on addons.mozilla.org, I a
by evilpie 7y ago
I wrote a simple Firefox extension mostly for personal use that finds bookmarks that point to unreachable pages.
After publishing it on addons.mozilla.org, I almost immediately got messages that it marked reachable websites as expired.
So instead of just checking the HTTP status code for 404, I now also check if the page content contains strings like "404" or "not found". If it doesn't contain those I mark the bookmark as maybe expired.
- MichaelMoser123 7y agoHow do you deal with languages other than English? I guess one might generate a very unlikely url and then take that response as 'not found'. Still wouldnt work sometimes.
- dzek69 7y agoi guess it works like that: - 404 status with "not found" or "404" - surely not found - 404 status without above - "maybe" not found - not-404 status - bookmark is fine :)