Storing JS Files in Another Folder
-
Has anyone successfully found a way to reference js files stored in another folder? I've tried using relative URLs to a location within the Vivaldi apps tree itself. I've also tried both "healthy" and "legacy" file: URIs in Windows and a few permutations that I have not even ever seen and not one of them would successfully load my custom scripts? So far the only thing that works is storing the js files in the same folder as browser.html itself. If anyone knows of a solution that allows for storing the custom.js files in a different folder it would be much appreciated.
-
i store them in their own folder but have not worked out how to do it anywhere else but the resources dir
so - c:\Vivaldi\Application\2.9.1697.4\resources\vivaldi\js\
unlike mods they seem to have to be there
-
You can store them only in that folder or subfolders —
browser.html
is in root directory from which all the Vivaldi's files are called (chrome-extension://mpognobbkildjkofajifpdfhcoklimli/
). -
@potmeklecbohdan Right, so relative URLs wouldn't be able to reference parent directories. And I guess extensions are simply unable to access resources using a file: URI on the localhost. I tried both UNC paths and the triple slash C: healthy URIs, as well as a few legacy - I can't remember exactly but I think I also tried the pipe instead of colon, but of course that isn't the correct way to write URIs on Windows anyways.
-
@raed said in Storing JS Files in Another Folder:
@bonetone
I assume you want to store the files in another folder so you do not loose your mods after each update.Perhaps Windows Vivaldi Mod Manager would help in this department.
I don't lose anything when updating the browser, I just prefer to keep it separate from the Vivaldi folder tree if possible - it's just cleaner in my opinion. I've got the original mods stored in my source tree, and the CSS files can go into the folder tree where I've got all the other scripts & extras that I've built and are in active use on my system. If I could store the js there too then all my scripts would be in one place. Easier to maintain that way.
-
Ppafflick moved this topic from Modifications on