We will be doing maintenance work on Vivaldi Translate on the 11th of May starting at 03:00 (UTC) (see the time in your time zone).
Some downtime and service disruptions may be experienced.
Thanks in advance for your patience.
π Easy Files
-
What?
This mod is inspired by opera. It makes attaching files easier by displaying files in the clipboard and downloaded files.Known problem
- To ensure stability, files are limited to 5Mb.
Demo
Installation
You can learn how to install here.Javascript:
https://gist.github.com/tam710562/67ce3c4387d72e94a83cf0ae9f890cecChangelog
24/01/2024
- Create the first version.
18/02/2024
- Fix an issue where files in the clipboard could not be retrieved even though permissions were granted.
- Fix an issue where downloaded files could not be retrieved when files in the clipboard could not be retrieved.
- Add support for converting clipboard png files to jpeg files.
20/03/2024
- Replace file icons from the system with automatically generated icons.
- Replace the way of getting clipboard data to be able to read files from the system.
- Expands the number of displays and file types that can be read from the clipboard.
- Fix an issue where files with empty content could not be uploaded
- Fix an issue that sometimes ignored accepted files
- Fix an issue where dialog boxes were opened at the same time in multiple windows
22/09/2024
- Change the popup opening position to below the currently clicked element.
- Fix an issue when the file extension doesn't exist.
- Fix an issue where some file types failed to load.
09/11/2024
- Fix popup position sometimes not showing correctly.
- Optimize file upload speed.
- Add file size to tooltip.
24/12/2024
- Fix an issue where popup can't be opened on some websites.
-
@tam710562
Great job!
-
This post is deleted! -
I've added an update to fix the bug that doesn't work in new vivaldi builds
- Fix an issue where files in the clipboard could not be retrieved even though permissions were granted.
- Fix an issue where downloaded files could not be retrieved when files in the clipboard could not be retrieved.
- Add support for converting clipboard png files to jpeg files.
-
I had add custom.js and edit file window.html but It still not work :
<!-- 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> <script src="custom.js"></script> </body> </html>
--
ModEdit: </>
-
In Vivaldi (v6.6.3271.45_x64) script don't work.
-
@tamdang @Kevinar
I seem to have forgotten to write this mod's clipboard reading issues in the description due to limitations of thenavigator.clipboard.read
api- Currently only supports reading image format files
- Clipboard files copied from within the browser can be read and clipboard files copied from the system cannot be read.
If you encounter the above problems, those are the current limitations of this mod
I now think I have resolved these issues but another one has arisen and am working on it
-
@tam710562 this looks extremely good, but i just cant make it work right, all i see when oppening the modded vivaldi is this bunch of codes, the funcion doesnt work at all
-
@Feduzin I think you are adding all the code to the window.html file
The window.html file is an html file, not a js file, so the code will not work
Read this tutorial to add js file like custom.js and add code to it
https://forum.vivaldi.net/topic/10549/modding-vivaldi -
@tam710562 tried to do like the tutorial told me and still nothing, at least the giant script isnt in my screen anymore
-
https://stackblitz.com/edit/stackblitz-starters-ntw92m
Try accessing this url and follow the steps as shown in the picture
If the result is like in the picture everything is working, otherwise the script was installed incorrectly -
@tam710562 i believe is working now! at least it seems like it!!
-
@Feduzin the only funny thing is that it doesnt work onTWITTER of all places
-
Great. But, can it be modified to allow inserting files from system clipboard?
-
@Feduzin
it is working on my twitter, i wonder what is happening? -
I have added an update
- Replace file icons from the system with automatically generated icons.
- Replace the way of getting clipboard data to be able to read files from the system.
- Expands the number of displays and file types that can be read from the clipboard.
- Fix an issue where files with empty content could not be uploaded
- Fix an issue that sometimes ignored accepted files
- Fix an issue where dialog boxes were opened at the same time in multiple windows
@Truemotion
Now, it can read system files from the clipboard -
@tam710562 hmmm it's probably because i use this extension since the new UI is ulgy, it aint your fault though
-
Hello, first of all, a pretty nice injection mod, an issue that im currently facing is that the extension only checks for some upload button types, I guess it can't check when the download prompt is shown instead?, a nice mod nonetheless.
-
a problem i found: for some odd reason, my Vivaldi keeps reseting the code for some reason? i can't explain it, but every time i open vivaldi i have to reinstall the mod because my js file disappears and the window file is the same as it was before installing the mod
-
@Feduzin said in Easy Files:
a problem i found: for some odd reason, my Vivaldi keeps reseting the code for some reason? i can't explain it, but every time i open vivaldi i have to reinstall the mod because my js file disappears and the window file is the same as it was before installing the mod
The reason is because when vivaldi updates, it will delete all those files and reinstall from the beginning
To fix the problem the simplest way is to create a batch script to run after each update. see here
Note: Do not place js files and batch scripts in the vivaldi installation directory