I’ve found a code snipped from TheMadExile to replicate the history controls on my passages.
I’ve been trying several times to apply some sort of ID or class to it so that I can then use CSS to make them look different than the other links without success.
Does anyone know how to do that? Or how to make the script work on a button with onclick action?
You simply need to wrap the links in a <span> that has a class which will modify the styling of any links within that <span>. You can see some examples of how to do that in this “Multicolor Links” sample code. (Click “Jump to Start” in the UI bar to see other sample code there.)
There’s no need to use an onclick event, just use a <<button>> macro, like this: