25 ms·
Is it possible to hijack the 'middle click' on a link so that it opens the split view in a new tab?
by seanlinmt 16y ago
Is it possible to hijack the 'middle click' on a link so that it opens the split view in a new tab?
- chaosprophet 16y agoI don't think it can be done by capturing the middle click, but you could achieve the same effect by changing the script such that the HN submission ID is added as a url fragment id or dummy URL param to the submission link. Then another script can be used to check the referrer property of each page loaded, and if it points to HN you could insert an iframe and open the comments link using the submission id in the url.