Created
June 27, 2019 21:40
-
-
Save briankung/905f4aee79483ab3a8d7f85f1d5a88c5 to your computer and use it in GitHub Desktop.
Play Rust! Copies selected text into the Rust playground at https://play.rust-lang.org/
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
javascript:void( | |
(function() { | |
window.open( | |
`https://play.rust-lang.org/?code=${encodeURIComponent( | |
window.getSelection().toString() | |
)}`, | |
"_blank" | |
); | |
})(); | |
) | |
// Minified for easy drag 'n drop to bookmark toolbar: | |
javascript:void(window.open(`https://play.rust-lang.org/?code=${encodeURIComponent(window.getSelection().toString())}`,"_blank");) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment