Last active
April 30, 2023 01:25
-
-
Save ajtruex/752a2677887ea41cd2255fc6621ad23c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Dropbox link | |
// @namespace https://github.com/ajtruex | |
// @version 1.0 | |
// @description Dropbox link fixer | |
// @author ajtruex | |
// @match https://www.dropbox.com/s/*/*.*?dl=0 | |
// @icon https://api.iconify.design/mdi/dropbox.svg | |
// @run-at context-menu | |
// @grant none | |
// ==/UserScript== | |
let dburl = window.location.href | |
let web = dburl.replace('www','dl') | |
let end = web.replace('dropbox','dropboxusercontent') | |
let final = end.substring(0, end.length-5) | |
window.location.assign(final) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment