View Single Post
Old 12-29-2025, 03:38 PM   #7
simurq
Member
simurq ought to be getting tired of karma fortunes by now.simurq ought to be getting tired of karma fortunes by now.simurq ought to be getting tired of karma fortunes by now.simurq ought to be getting tired of karma fortunes by now.simurq ought to be getting tired of karma fortunes by now.simurq ought to be getting tired of karma fortunes by now.simurq ought to be getting tired of karma fortunes by now.simurq ought to be getting tired of karma fortunes by now.simurq ought to be getting tired of karma fortunes by now.simurq ought to be getting tired of karma fortunes by now.simurq ought to be getting tired of karma fortunes by now.
 
Posts: 24
Karma: 1000010
Join Date: Jul 2015
Device: Kindle Paperwhite v1
I think the problem is Calibre doesn't load the modified JS file at all. As I said above, I placed lookup.js into ~/.config/calibre/resources. I even placed these commands at the very top of the file to test it:

Quote:
alert("Custom lookup.js loaded");
console.log("=== CUSTOM LOOKUP.JS LOADED ===");
console.log("Current URL:", location.href);
console.log("Hostname:", location.hostname);
console.log("Pathname:", location.pathname);
But even the simplest alert window doesn't show up...
simurq is offline   Reply With Quote