window.html is empty
-
A few weeks ago I did this:
Open window.html, and inside the <body> element add the following line:
<script src="custom.js"></script>
You can name the file as you want and also add multiple ones, one line at a time.Add the custom.js file to the Vivaldi folder (alongside window.html)
as per https://forum.vivaldi.net/topic/10549/modding-vivaldi
However, I just discovered the entire window.hml file is empty and I don't know how it happened.
I had backed it up but that one is also empty.
Is there a way to get an original. -
@Granite1 7.0.3495.26 Win 11
<!-- Vivaldi window document --> <!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <title>Vivaldi</title> <link rel="stylesheet" href="style/common.css" /> <link rel="stylesheet" href="chrome://vivaldi-data/css-mods/css" /> </head> <body> </body> </html>
-
@DoctorG :
7.0.3495.26 Win 11
Thanks for your help, sorry for my late reply.
I am confused, which is caused by my ignorance.
*I went ahead, copy/pasted your code – which BTW looks familiar from what I had seen before, though I don't remember the details – to a text file, and saved that file as
window.html
.
However, when I open that file in Vivaldi, it is empty, even though the default browser is the standard app to open html files with.When I open that file with a text editor, the code is there!! Then, with a text editor, I opened the original
window.html
file I had, and the code was there too.Please explain to me how this works.
-
@Granite1 said in window.html is empty:
However, when I open that file in Vivaldi
The file is not to be opened in Vivaldi by you.
The browser loads itself when starting the UI.I do not know what you want to change in Vivaldi UI.
-
@Granite1
Hi, the <body></body> tag is empty, a browser shows only an empty page.Cheers, mib
-
I do not know what you want to change in Vivaldi UI.
I don't want to change anything. But when I compile an html file, and I want to check its contents later, I double-click on it, and it gets opened in the default app, which for html files is the browser.
However, I now gather that in this case the html file should be opened by a text editor.
Many thanks for your help. It is sorted out, although I don't quite understand how.
-
Hi, the <body></body> tag is empty, a browser shows only an empty page.
Mine is not empty
but the browser page remains blank.
-
@Granite1 What do you want to achieve with your edited window.html? For a UI modification?
-
What do you want to achieve
Nothing. I just wanted to check if everything inside was still as it was when I last modified. The reason for the check is that my custom.js file was missing. I refound it but wanted to work out what had happened, and as part of this process I wanted to check the
window.html
file. -
@Granite1 said in window.html is empty:
Mine is not empty
The browser will try to render any HTML file, not display its source code.
The browser does not render any HTML tags, including everything in<head>
and nor<script>
tags.If you want to view the source of a HTML file, use a plain text editor or viewer, on Linux that could be
vi
,nano
orcat
or any of the many of ways to view a text file.If you want to view the source of a HTML file in the browser use View Page Source (
Ctrl+U
) or the Developer Tools. -
The browser does not render any HTML tags, including everything in <head> and nor <script> tags.
If you want to view the source of a HTML file, use a plain text editor or viewer
Now that is what I was looking for. Many thanks for clearing that up for me