Skip to content

Instantly share code, notes, and snippets.

View mohamednasrmo's full-sized avatar
🏠
01020561695

mohamednasrmo

🏠
01020561695
View GitHub Profile
@glasslion
glasslion / pushover-bookmarklet.js
Last active January 28, 2022 08:33
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',