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...