|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#1 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 88
Karma: 105086
Join Date: Sep 2016
Device: Kobo Aura H2O
|
Is there a way to add a code to the CSS to a bunch of books automatically/in batches?
What the title says, I would like to add
a:link, a:link * { color: #000 !important; text-decoration: none !important; } to all my books so to avoid the words with footnotes being highlighted since most of the times the normal settings are ignored and the word gets highlighted by default in some e-readers and reader apps. Also if there's a better code tell me please. It would be great if I could do it to many books at once. Thanks! |
![]() |
![]() |
![]() |
#2 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,542
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
"color: inherit" instead of "color: #000", probably "text-decoration: inherit" too.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,291
Karma: 20171067
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
You might be able to use a grep program… but you’d need to make sure it can open a zip file (EPUB is actually a zipped file, just uses the .ePub extension) then find the appropriate .css file (sometimes there are several), make the change then save/close the epub.
Also, don’t use color:#000, it would make any links disappear if the user turned on night/dark mode… That’s one of the problems that breaks smashwords books…I’d use color:inherit instead. Having said all that, there is definitely an argument to be made that you shouldn’t remove all indicators that something is a link…. How else will someone know that it is a link to tap on it???Since these are presumably only for your own personal use then it’s not a BIG point. |
![]() |
![]() |
![]() |
#4 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,291
Karma: 20171067
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
If you can program you could make a pretty straightforward - limited scope - brute force python program that could do that.
|
![]() |
![]() |
![]() |
#5 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 88
Karma: 105086
Join Date: Sep 2016
Device: Kobo Aura H2O
|
Quote:
Good point about the fact it makes impossible to read the words in dark mode tho, I didn't tough about that, ouch x) Looks like I need to experiment with something else or give up and choose between the gray words or the inability to use the dark mode. I'm about to buy a Clara color so maybe it will handle the footnotes differently than my Kobo touch, I'm planning to use Koreader as well since I can add stardicts and fictionaries but also I like Nickel very much so I hoped I could fix this somewhat. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 88
Karma: 105086
Join Date: Sep 2016
Device: Kobo Aura H2O
|
|
![]() |
![]() |
![]() |
#7 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,914
Karma: 143095300
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#8 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 88
Karma: 105086
Join Date: Sep 2016
Device: Kobo Aura H2O
|
|
![]() |
![]() |
![]() |
#9 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,914
Karma: 143095300
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
There is an option in the KoboTouchExtended driver to modify the CSS. You'd have to read the tooltip to find out how to use it as I've never used it. Or you can ask about it in the KoboTouchExtended plugin thread.
|
![]() |
![]() |
![]() |
#10 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,050
Karma: 237059052
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
You can bulk insert your code by using the Modify Epub plugin (append extra css).
|
![]() |
![]() |
![]() |
#11 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Feb 2025
Device: Kindle Scribe
|
You can use freelib software with batch convertor that supports custom CSS implementation
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Add books automatically | dunhill | Library Management | 2 | 03-28-2022 05:07 PM |
Add books automatically | dunhill | Library Management | 1 | 12-25-2020 04:09 PM |
automatically add new books | huber70 | Library Management | 2 | 02-11-2020 04:20 PM |
Best way to automatically add a lot of books | foxbooks | Library Management | 3 | 05-31-2012 10:41 AM |
Automatically Add Books to Calibre from Directory | pjd6896 | Calibre | 0 | 12-02-2010 09:15 PM |