• Browser
  • Mail
  • News
  • Community
  • About
Register Login
HomeBlogsForumThemesContributeSocial

Vivaldi

  • Browser
  • Mail
  • News
  • Community
  • About

Navigation

    • Home
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    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.

    1. Home
    2. Desktop
    3. Customizations & Extensions
    4. Modifications
    5. πŸ“‚ Easy Files

    πŸ“‚ Easy Files

    Modifications
    javascript
    21
    60
    4.7k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • tam710562
      T
      tam710562
      last edited by tam710562

      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

      out1.gif

      a5a2d2eb-a199-4d2b-bba6-5e1443c02c6f-image.png

      c9c3344c-b3f6-44c5-90c2-71d1aaa85d82-image.png

      Installation
      You can learn how to install here.

      Javascript:
      https://gist.github.com/tam710562/67ce3c4387d72e94a83cf0ae9f890cec

      Changelog

      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.
      shifte
      S
      F
      2 Replies Last reply
      Reply Quote 20
      • shifte
        S
        shifte @tam710562
        last edited by

        @tam710562
        Great job!
        ebichu-great-job.gif

        1 Reply Last reply Reply Quote 4
        • Mauveyo
          M
          Mauveyo
          last edited by Mauveyo

          This post is deleted!
          1 Reply Last reply Reply Quote 1
          • tam710562
            T
            tam710562
            last edited by

            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.
            1 Reply Last reply Reply Quote 2
            • T
              tamdang
              last edited by Zalex108

              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: </>

              1 Reply Last reply Reply Quote 2
              • Kevinar
                K
                Kevinar
                last edited by

                In Vivaldi (v6.6.3271.45_x64) script don't work.

                1 Reply Last reply Reply Quote 2
                • tam710562
                  T
                  tam710562
                  last edited by tam710562

                  @tamdang @Kevinar
                  I seem to have forgotten to write this mod's clipboard reading issues in the description due to limitations of the navigator.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

                  1 Reply Last reply Reply Quote 2
                  • F
                    Feduzin @tam710562
                    last edited by

                    @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 😞 de211ff1-8482-4d33-83ff-72aa6e41c02d-image.png

                    tam710562
                    T
                    1 Reply Last reply
                    Reply Quote 0
                    • tam710562
                      T
                      tam710562 @Feduzin
                      last edited by

                      @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

                      F
                      1 Reply Last reply
                      Reply Quote 3
                      • F
                        Feduzin @tam710562
                        last edited by

                        @tam710562 tried to do like the tutorial told me and still nothing, at least the giant script isnt in my screen anymore

                        tam710562
                        T
                        1 Reply Last reply
                        Reply Quote 0
                        • tam710562
                          T
                          tam710562 @Feduzin
                          last edited by tam710562

                          @Feduzin
                          20240319_TePyxTZnBz_vivaldi.optimize.gif

                          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

                          F
                          1 Reply Last reply
                          Reply Quote 0
                          • F
                            Feduzin @tam710562
                            last edited by

                            @tam710562 i believe is working now! at least it seems like it!!image_2024-03-19_200306061.png

                            F
                            1 Reply Last reply
                            Reply Quote 0
                            • F
                              Feduzin @Feduzin
                              last edited by

                              @Feduzin the only funny thing is that it doesnt work onTWITTER of all places

                              tam710562
                              T
                              1 Reply Last reply
                              Reply Quote 0
                              • T
                                Truemotion
                                last edited by

                                Great. But, can it be modified to allow inserting files from system clipboard?

                                1 Reply Last reply Reply Quote 0
                                • tam710562
                                  T
                                  tam710562 @Feduzin
                                  last edited by

                                  @Feduzin
                                  it is working on my twitter, i wonder what is happening?

                                  20240320_MlHkMBbSwa_vivaldi.optimize.gif

                                  F
                                  1 Reply Last reply
                                  Reply Quote 0
                                  • tam710562
                                    T
                                    tam710562
                                    last edited by

                                    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

                                    1 Reply Last reply Reply Quote 3
                                    • F
                                      Feduzin @tam710562
                                      last edited by

                                      @tam710562 hmmm it's probably because i use this extension since the new UI is ulgy, it aint your fault though

                                      1 Reply Last reply Reply Quote 1
                                      • J
                                        JBG84
                                        last edited by

                                        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.

                                        1 Reply Last reply Reply Quote 1
                                        • F
                                          Feduzin
                                          last edited by

                                          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

                                          tam710562
                                          T
                                          1 Reply Last reply
                                          Reply Quote 0
                                          • tam710562
                                            T
                                            tam710562 @Feduzin
                                            last edited by

                                            @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

                                            1 Reply Last reply Reply Quote 0
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            • 1
                                            • 2
                                            • 3
                                            • 1 / 3
                                            • First post
                                              Last post

                                            Looks like your connection to Vivaldi Forum was lost, please wait while we try to reconnect.

                                            Copyright © Vivaldi Technologies™ β€” All rights reserved. Privacy Policy | Code of conduct | Terms of use | Vivaldi Status