Hacker News new | ask | show | jobs
by pasbesoin 3184 days ago
Thank you. That has been mentioned, previously, and I believe there is also a corresponding query string value that can be appended to a search URL to enable it.

At least that would amend itself to e.g. being incorporated into a bookmarklet for one-click access.

1 comments

    javascript:void((function(){var%20loc%20=%20location.href;%20loc.indexOf("?")%20==%20-1%20?%20(location.href%20=%20loc+"?li=1")%20:%20(location.href%20=%20loc+"&li=1");})());
or, taking a bit more care:

    javascript:void((function(){var%20loc%20=%20location.href;%20if%20(loc.indexOf('li=1')%20>=%200)%20return;%20loc.indexOf("?")%20<%200%20?%20(location.href%20=%20loc+"?li=1")%20:%20(location.href%20=%20loc+"&li=1");})());
or I guess it could be modified further to change the parm if it's already present with a different value.

Modified from (because I'm lazy):

https://stackoverflow.com/questions/20677974/bookmarklet-to-...