Skip to content

Instantly share code, notes, and snippets.

@glasslion
Last active January 28, 2022 08:33
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save glasslion/853b9104608316ebbb17a05632b9089e to your computer and use it in GitHub Desktop.
Save glasslion/853b9104608316ebbb17a05632b9089e to your computer and use it in GitHub Desktop.
pushover bookmarklet
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,
}));
@mohamednasrmo
Copy link

+201097275363

@mohamednasrmo
Copy link

https://gist.github.com/glasslion/853b9104608316ebbb17a05632b9089e?permalink_comment_id=4045215#gistcomment-4045215 #

@mohamednasrmo
Copy link

pushover-bookmarklet.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment