Last active
May 26, 2023 04:26
-
-
Save tablacus/f0f663632c89b5a0c676be30112114fd to your computer and use it in GitHub Desktop.
Open clipboard path in new tab - Tablacus Explorer
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
var Items = api.OleGetClipboard(); | |
if (Items.Count) { | |
for (var i = 0; i < Items.Count; i++) { | |
Navigate(Items.Item(i), SBSP_NEWBROWSER); | |
} | |
return; | |
} | |
Items = String(clipboardData.getData("text")).split(/[\r\n]+/); | |
for (var i in Items) { | |
if (/^"?[A-Z]:\\|^"?\\\\[A-Z]|^"?::{/i.test(Items[i])) { | |
Navigate(Items[i], SBSP_NEWBROWSER); | |
} | |
} |
Author
tablacus
commented
Aug 10, 2017
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment