How to save in source code its changes made in Vivaldi {made changes for a website}
-
I made a change to the code in Vivaldi. How do I save a change to the source code?
modedit title. moved topic
-
@magistr01 Did you change an existing application file? In that case you save the code you wrote outside of the application and reimplement the patch after each update. Don’t backup the file itself, or you will potentially break future updates when replacing it.
-
@luetage said in How to save in source code its changes made in Vivaldi:
or you will potentially break future updates when replacing it
Or not get a great part of that update.
I’d say ‘likely’ instead of ‘potentially’ though.
-
@luetage When I save changes outside the application, only the html file is created. But I want to save the changes directly to the source code so that they are reflected in the index.
-
@magistr01 You backup your modification outside of Vivaldi. Modifications don’t survive Vivaldi updates. What is it that you are doing exactly?
-
@magistr01 What sort of changes are we talking about?
If you are talking about editing the browser's user interface with devTools and you want to save the changes you made to HTML/CSS/JavaScript, then you should make separate files that contain the changes (if possible).
You can see this pinned post in the modding forum to get a better idea about where such mods should go to work properly.
Some changes, like those made to the included JavaScript, might require learning to use VivaldiHooks or just editing the relevant file in the same directory as the
browser.html
file mentioned in the pinned post. -
@luetage This is a change in the total number of responses in a topic on the Wordpress discussion forum page, where the founding post bar contains an incorrect value of 100 responses, and correctly it should be 48 responses.
To that end, I've modified the js code in the Vivaldi sidebar.
I saved the corrected code outside the application as an html file
so the change made did not take effect on the web page, because the incorrect value of 100 responses is still displayed in the index.
Unfortunately, I was not able to edit the index.
If it were possible to insert a screenshot in the post on this forum, it would be obvious what I'm really talking about. -
@magistr01 Aha, so you’re actually editing a website. What you said made us think that you’re modding Vivaldi (which is a common thing here).
I’m not aware of a way to directly substitute website files, but you can run userscripts (if you can do what you want w/o modifying the website files). The
vivaldi://extensions
page supports dragging-&-dropping.user.js
files directly, or you can use a helper extension. -
@potmeklecbohdan The topic was moved to this subforum, lol
-
-
@Pathduck You’re too kind. I accept but will donate my medal to Ruario, who is running low.
-
Perhaps I did not fully understand what you want.
But, check out this extension: User JavaScript and CSS which allows you to embed your JS code into an HTML page. -
Ppafflick moved this topic from Desktop on