GithubHelp home page GithubHelp logo

directlink's Introduction

Information

Functionality

The purpose of the addon is to convert the Dropbox, Google Drive or oneDrive (both personal and business) links to a direct link, furthermore, it generates a direct link to a WhatsApp or telegram chat with the chosen selected phone number or username.

Usage

  • Select or copy a shared Dropbox, Google Drive or oneDrive link
  • Press alt+NVDA+l to convert the link. The resulting URL will be in your clipboard.
  • For the Whatsapp phone number, copy or select the number you like to chat with or share and press the same shortcut (alt+NVDA+L).
  • For Telegram, select the phone number or the username and press the shortcut NVDA+Alt+t.
  • if you like to open the resulting link in your browser, press alt+NVDA+o.

Why the direct link?

A direct link will allow you to get the well-known save dialog box directly if you open it in the browser, without being hassled by the hosting company download page and locating the download link. Moreover, the direct link can be used to stream a file or view a file in certain programs such as media players (if coming with URL support). Likewise, if WhatsApp or Telegram is common in your country, rather than creating a new contact each time if you need to chat with someone, weather it is a customer or technical support, you can simply select the number or copy it and start chatting right away. Even more, you can share the WhatsApp link of your own number if people usually need to contact you in case you work as a freelancer.

Notes

  • A link of a folder cannot be converted; the link has to be directing to a file.
  • Make sure the link you are sharing is public (anyone with the link can access) in order for it to be successfully converted.
  • You can change the hotkeys from the NVDA menu> preferences> input gestures.
  • If you find a certain format of a phone number that is not detected, you can email me with an example.
  • Certain type of files and sizes in Google Drive might take you to a page that says, "Google Drive can't scan this file for viruses." in that case, you have to click on download anyway link.
  • The Telegram chat with a phone number works according to the privacy settings of the user.

what's new in version 2.2

  • Update repo files, to include latest addon template ones.
  • Add localization and documentation updates.

what's new in version 2.1

  • Added the ability to generate telegram links with a selected phone number or username.
  • Disabled the addon in the secure screen for security reasons.
  • Support for NVDA2022.1 and above.

Acknowledgements

A huge thanks goes to the following friends, without them I couldn't have made it happen:

  • Qais Alrefai for testing the add-on and providing me with various material to test with, and also for his observations and general idea for the addon.
  • Marina Amir for translating the add-on to French, language editing and testing.
  • Riad Assoum for translating the add-on to Arabic.
  • all testers.

directlink's People

Contributors

cyrilleb79 avatar fawazar94 avatar ibrahim-s avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

directlink's Issues

DirectLink: NVDA 2023.1 compatibility

Notes:

this is a Add-on API compatibility breaking release. Add-ons will need to be re-tested and have their manifest updated.
Once a year, NV Access may publish a backwards incompatible NVDA release, typically the first major release (year.1). Here, "backwards incompatible" refers to NVDA releases that make add-ons incompatible due to API changes. When this happens, authors must test their add-ons for compatibility and release updates accordingly.

Thank you for your help.

Error when pressing NVDA+alt+O

Hello

Here is an error seen while testing the add-on.

Steps to reproduce

  • Start NVDA
  • Press NVDA+alt+O

Actual result

Nothing happens and the following error is found in the log:

ERROR - scriptHandler.executeScript (09:44:28.652) - MainThread (3936):
error executing script: <bound method GlobalPlugin.script_openInBrowser of <globalPlugins.DirectLink.GlobalPlugin object at 0x07B4DC10>> with gesture 'alt+NVDA+o'
Traceback (most recent call last):
  File "scriptHandler.pyc", line 212, in executeScript
  File "C:\Users\Cyrille\AppData\Roaming\nvda\addons\directLink\globalPlugins\DirectLink.py", line 189, in script_openInBrowser
    os.startfile(link)
NameError: name 'link' is not defined

Expected result

No error in the log.
And a user-friendly message such as:
"No link previously converted"
or something similar.

Add-on version

2.0, compiled from source (latest master branch)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.