Last active
May 25, 2023 07:26
-
-
Save rajtilakjee/638148ad0acc8e63c33a6adffbac16ce to your computer and use it in GitHub Desktop.
Dirty Pink video downloader
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
const sourceCode = document.documentElement.outerHTML; | |
const regex = /https:\/\/v2\.site-name\.pink\/videos\/\d+\.mp4/; | |
const match = sourceCode.match(regex); | |
const url = match[0]; | |
function openInNewTab(url) { | |
var win = window.open(url, '_blank'); | |
win.focus(); | |
} | |
openInNewTab(url); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment