Hacker News .hnnew | past | comments | ask | show | jobs | submitlogin

Why do you need to rewrite links to your server? Can your extension not insert JavaScript to do most of this logic client-side?


Actually it uses Javascript to rewrite links.

But the info about links being safe of not are contained in the server links. I could pre-emptively get info about all links, but that would slow down Firefox.


Traversing the entire DOM on page load and rewriting all links for large pages would also slow down the page though.

Also rewriting links seems too intrusive for my tastes and means I cant "Copy link location" which I frequently do. I like the idea, but I personally would have just used a single "click" event handler on the entire page using the capturing phase and hijack links to redirect through your site first, rather than doing a rewrite for every link in the dom


Gotcha. Well maybe you could do this asynchronously, after page load? Once the page is done loading, extension fires off for info about links on the page? Assuming this didn't take to long, it might be doable before they clicked a new link.

Also, extensions have access to cookies per domain? Maybe the extension could use this to cache results for a given page client-side?


I could do that.

I had decided against it earlier due to the potential lag.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: