Created
March 20, 2019 19:34
-
-
Save dreygur/31abd0b20b0eda58d4c4edca7d426be4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| function getUrl() { | |
| var regex = /https:\/\/.{0,3}\.+([\w.,@?^=%&:/~+#-]*)?/g; | |
| var html = document.body; | |
| var url = regex.exec(html.toString); | |
| return url; | |
| } | |
| function getUrl(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment