View Single Post
Old 09-09-2020, 08:40 AM   #578
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,228
Karma: 148951761
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by jackie_w View Post
You can't remove the code as such but you can use whatever CSS style you prefer by creating a custom patch for libnickel.so.1.0.0.yaml, e.g.
Code:
beta KePub stylesheet anchor style:
  - Enabled: no
  - Description: Customise style of kepub hyperlinks
  - FindBaseAddressString: "a:link, a:visited, a:hover, a:active {"
  - ReplaceString: 
      Find:    "a:link, a:visited, a:hover, a:active { border-bottom: 1px dotted black !important; color: #696969 !important; }"
      Replace: "a:link, a:visited, a:hover, a:active { border-bottom: 1px dotted black !important; color: inherit !important; }"
      MustMatchLength: yes
The usual caveats about matching Find/Replace lengths apply, but there's no need to stick to having a 1px dotted black underline. This is the Replace statement I use on my own devices because I want footnote links to stand out like a sore thumb, but it might not suit users who do a lot of highlighting (I don't do any):
Code:
Replace: "a { border: none !important; background-color: #ddd !important; color: inherit !important;                    }"
BTW, unless several people register an interest in this patch I'm not going to add it to the standard kobopatch pack. I've been using my custom patch for several fw versions without needing to update it ... but, as usual no guarantees that Kobo won't decide to tinker next time.
Thank you very much for this. I'll be trying your replace string as I agree that the footnote links should stand out more.
JSWolf is offline   Reply With Quote