|
|
|
|
|
by pasbesoin
3176 days ago
|
|
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-... |
|