Last active
January 28, 2022 08:33
-
-
Save glasslion/853b9104608316ebbb17a05632b9089e to your computer and use it in GitHub Desktop.
pushover bookmarklet
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 text = window.prompt('Enter the message to push, or leave empty and push the current url.'); | |
if (text=="") { | |
text=window.location.href | |
} | |
var xhr = new XMLHttpRequest(); | |
xhr.open('POST', 'https://api.pushover.net/1/messages.json'); | |
xhr.setRequestHeader('Content-Type', 'application/json'); | |
xhr.send(JSON.stringify({ | |
token: 'APP_TOKEN', | |
user: 'USER_KEY', | |
message: text, | |
})); |
https://gist.github.com/glasslion/853b9104608316ebbb17a05632b9089e?permalink_comment_id=4045215#gistcomment-4045215 #
pushover-bookmarklet.js
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
+201097275363