Skip to content

Instantly share code, notes, and snippets.

@bmcminn
Last active December 20, 2022 03:47
Show Gist options
  • Save bmcminn/b3efd9d06e64a1fb3776e21e05496652 to your computer and use it in GitHub Desktop.
Save bmcminn/b3efd9d06e64a1fb3776e21e05496652 to your computer and use it in GitHub Desktop.
Bookmarklets for fun and profit!
// SOURCE
function nomorobo() {
const url = 'https://www.nomorobo.com/lookup/' + window.prompt('Enter phone number').replace(/[^\d]/gi, '')
const target = '_self'
const params = {}
window.open(url, target, params)
}
// BOOKMARKLET
javascript:void%20function(){const%20o=%22https://www.nomorobo.com/lookup/%22+window.prompt(%22Enter%20phone%20number%22).replace(/[^\d]/gi,%22%22),n=%22_self%22,e={};window.open(o,n,e)}();
// SOURCE
function(){
var media = document.querySelectorAll("audio,video");
var prompt = window.prompt(t[0] ? 'speed: ' + t[0].playbackRate : 'speed: 1.0');
media.forEach(function(obj){
obj.playbackRate = prompt || obj.playbackRate;
})
}();
// MINIFIED
javascript:void function(){var t=document.querySelectorAll("audio,video");var o=window.prompt(t[0]?'speed: '+t[0].playbackRate:'speed: 1.0');t.forEach(function(a){a.playbackRate=o||a.playbackRate;})}();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment