Any way to disable the "This type of file can harm your computer" warning?
-
@pafflick Thanks, that triggered it.
-
@mtaki14
I could only fix this issue by hexediting the file
%localappdata%\Vivaldi\User Data\FileTypePolicies\7\download_file_types.pb
I can understand SOME files like*.exe
are better to be considered suspicious, but.prg
files? for me are either clipper/visual foxpro source files, or Commodore 64 files
find the extension you want to be ignored and replace with XXX or whatever you prefer.
In case this doesn't work, the same resource can be found inside the file
%programfiles%\Vivaldi\Application\<current version>\resources.pak
It's the source of thedownload_file_types.pb
file which, in case it's deleted, it will be recreated from what's insideresources.pak
Only do this if you are sure of what you are doing, make backups, and don't come whining to me if your Vivaldi have to be reinstalled if you do something wrong
-
@iAN-CooG said in Any way to disable the "This type of file can harm your computer" warning?:
@mtaki14
I could only fix this issue by hexediting the file
"%localappdata%\Vivaldi\User Data\FileTypePolicies\7\download_file_types.pb"
I can understand SOME files like *.exe are better to be considered suspicious, but .prg files? for me are either clipper/visual foxpro source files, or Commodore 64 files
find the extension you want to be ignored and replace with XXX or whatever you prefer.
In case this doesn't work, the same resource can be found inside the file
"%programfiles%\Vivaldi\Application\<current version>\resources.pak"
It's the source of the download_file_types.pb file which, in case it's deleted, it will be recreated from what's inside resources.pakOnly do this if you are sure of what you are doing, make backups, and don't come whining to me if your Vivaldi have to be reinstalled if you do something wrong
Thanks, will give it a try.
-
@snork, we donΒ΄t need such Vivaldi user.
If you are P. leave Vivaldi and go back to whatever.Cheers, mib
-
@snork But it's not the Vivaldi's thing. It's a
RetardiumChromium "feature". I'm sure that Vivaldi will provide a way of getting rid of this annoying dialog, but they are a small team and they have a lot of other things on their to-do list, so we just have to be patient. One extra click every once in a while doesn't seem to be that much of a burden... -
@pafflick I download even hundreds of prg a day, so it is a burden. Hexedit solved it and I'll continue to patch the file whenever it pops up again for other extensions. For sure there's no use for anyone to go in forums shouting and whining like the guy above when a solution, even if it's just a workaround, it's suggested and works
-
@iAN-CooG I was just talking about an average user, who doesn't happen to download "hundreds" of unusual files a day. But I fully understand your reasons and I'm just as much eager to get that fixed asap, as everyone else here.
-
@iAN-CooG said in Any way to disable the "This type of file can harm your computer" warning?:
@pafflick I download even hundreds of prg a day, so it is a burden. Hexedit solved it and I'll continue to patch the file whenever it pops up again for other extensions. For sure there's no use for anyone to go in forums shouting and whining like the guy above when a solution, even if it's just a workaround, it's suggested and works
Can confirm that it works like a charm. Just curious, how did you even find this out?
-
@mtaki14 simple search of "prg" inside all files in vivaldi dirs, using Far Manager's FindFile function.
-
@iAN-CooG u r best! but not needed hex-editor, just delete strings
-
I prefer to use an hex editor (Hiew in my case) instead of a text editor to not alter any other bytes and to not risk to alter even the filesize. You can do whatever you prefer and find fit to do the job.
-
I've made a Python script to list and edit the download_file_types.pb
http://iancoog.altervista.org/ (on top of page)FileTypePolicies Editor (/) 2017 iAN CooG ---------------------------------------------------------------------- usage: ftyped.py <file.db>|* [-a/-b/-l ext] file.db must exist, use * to find current Vivaldi file in use give no optional parameter to list all extensions state, else: -l ext: lists only ext -a ext: allow ext (set flag to 0x00) -b ext: block ext (set flag to 0x02)
for example:
ftyped.py * -a jar
to allow jar to be downloaded without questions.
Just restart Vivaldi to apply changes.
A .bak will be created, if it's not already there, if something gets changed.
The file.db path can be specified for a local file, or give *, in that case the file is searched by using
"%localappdata%\Vivaldi\User Data\FileTypePolicies"
and
"%appdata%\Vivaldi\User Data\FileTypePolicies"
The subdirectory inside changes now and then, in case of multiple subdir (I tried with "7", "8","13") the highest number is taken. -
@ian-coog said in Any way to disable the "This type of file can harm your computer" warning?:
I've made a Python script to list and edit the download_file_types.pb
And here's the Py2EXE version for those not wanting to install python for just a script.
http://iancoog.altervista.org/ (also on top of page, "ftyped + List extensions (EXE)")
move the python27.dll in your
%windir%\system32 (32bit windows)
or
%windir%\sysWOW64 (64bit windows)
and it will be available for all python exes -
Thank you very much for this script.. makes my life way easier dealing with jnlp files!
-
@ian-coog Thank you for your lovely script. Great stuff! Thought I might be SOL, but you saved the day.
-
Hate to necrobump, but anyone else having issues with it not working in the latest snapshots? 1.15+
db reflects allow but vivaldi comes up with the keep/discard dialog
-
As of the latest release (1.14.1077.55 (Stable channel) (64-bit)), replacing jar with asd in download_file_types.pb no longer prevents the dialogue box from popping up. This used to work.
I'm looking in C:\Users\[username]\AppData\Local\Vivaldi\User Data\FileTypePolicies\14
Is this in more than one place now?
-
@iAN-CooG Just wanted to say thank you very much! It was ridiculous how far I had to look to find this solution.
For the record, you don't need a hex editor. Disabling this stupid message is very easy. I opened resources.pak in Notepad++, searched for "jar" and replaced that three-character string with "xxx."
I can now save jar files to my local machine with one click - no asking for location - no prompting me to confirm my life choices. Awesome. Thanks again.
-
@dracho said in Any way to disable the "This type of file can harm your computer" warning?:
@iAN-CooG Just wanted to say thank you very much! It was ridiculous how far I had to look to find this solution.
Glad to help
For the record, you don't need a hex editor. Disabling this stupid message is very easy. I opened resources.pak in Notepad++, searched for "jar" and replaced that three-character string with "xxx."
Uh, notepad++ is a text editor, and resources.pak is NOT a text file, so you can possibly do something wrong editing a binary file with a text editor, like inserting/removing CR/LF chars where you shouldn't, hence ruining the structure of the file.
NOT RECOMMENDEDThe newer version of my script can be also used to edit directly resource.pak when Vivaldi seems to be ignoring any modification made in download_file_types.pb
FileTypePolicies Editor (/) 2017-2018 iAN CooG ------------------------------------------------------------------------------ usage: ftyped.py <download_file_types.db>|*|<vivaldi.exe path> [-a/-b/-l ext] download_file_types.pb must exist, use * to find current Vivaldi file in use download_file_types.pb CAN be ignored by Vivaldi, specify resource.pak instead give vivaldi.exe path to use current version's resource.pak give no optional parameter to list all extensions state, else: -l ext: lists only ext -a ext: allow ext (set flag to 0x00) -b ext: block ext (set flag to 0x02)
-
@iAN-CooG I neglected to mention that I have non-printing characters displayed in Notepad++, but I think I was pretty clear in stating that I simply changed three characters...
I don't see the problem at all. You can damage your installation if you make invalid edits in any program you might use to modify Vivaldi's code...
I tried using Resource Hacker but it wouldn't open the file. I still recommend using Notepad++ with non-printing characters over a hex editor and / or a Python script and / or an executable Python program simply for ease of use... Much, much simpler.