Is it possible to set bookmarks that can compile their own variables?
For example, I want to bookmark a site that has links like:
https://example.com/review?from=2017/07/16&to=2017/07/16
At the moment when I click on it: it currently and always will populate with that date.
I want it to always populate with today's date.
Therefore I would like a bookmark that can retrieve the latest system date using javascript or any method that works.
As an aside and totally not important, ideally I would like a 'little' intelligence and to use a bit of smarts in that if the current time is before noon
, the date populated would be yesterday. noon
is arbitrary, 8am
or any other morning hour could be used.
My only idea at the moment is to create an html page with the links in them, open the page and use js
to modify the links onload
or onclick
, but I'd much prefer these pages on the bookmarks bar. (I only have 3 I wish to set up)