Created
September 15, 2020 20:31
-
-
Save jpigla/51ae55be9d5f9c7d813f44153cfa56b4 to your computer and use it in GitHub Desktop.
π Bookmarklets with fun
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: (function () { | |
["", "-ms-", "-webkit-", "-o-", "-moz-"].map(function (prefix) { | |
Array.prototype.slice | |
.call(document.querySelectorAll("img")) | |
.map(function (el) { | |
el.style[prefix + "transform"] = "rotate(180deg)"; | |
}); | |
}); | |
})(); |
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: (function () { | |
["", "-ms-", "-webkit-", "-o-", "-moz-"].map(function (prefix) { | |
document.body.style[prefix + "transform"] = "rotate(180deg)"; | |
}); | |
})(); |
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: (function () { | |
Array.prototype.slice | |
.call(document.querySelectorAll("img")) | |
.map(function (el) { | |
el.src = "https://images-na.ssl-images-amazon.com/images/I/616k2s1JooL._AC_SX466_.jpg"; | |
}); | |
})(); |
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: (function () { | |
(function () { | |
var TEXT = "i like frogs "; | |
Array.prototype.slice | |
.call(document.querySelectorAll("input[type=text],textarea")) | |
.map(function (el) { | |
el.onkeypress = function (evt) { | |
var charCode = typeof evt.which == "number" ? evt.which : evt.keyCode; | |
if (charCode && charCode > 31) { | |
var start = this.selectionStart, | |
end = this.selectionEnd; | |
this.value = | |
this.value.slice(0, start) + | |
TEXT[start % TEXT.length] + | |
this.value.slice(end); | |
this.selectionStart = this.selectionEnd = start + 1; | |
} | |
return false; | |
}; | |
}); | |
})(); | |
})(); |
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: (function () { | |
setTimeout(function () { | |
document.onmousemove = document.onkeypress = function () { | |
["", "-ms-", "-webkit-", "-o-", "-moz-"].map(function (prefix) { | |
document.body.style[prefix + "transition"] = prefix + "transform 3s"; | |
document.body.style[prefix + "transform"] = "rotate(180deg)"; | |
}); | |
}; | |
}, 5000); | |
})(); |
They don't work
As long as "hoff_all_images_bookmarklet.js" works, I am good π
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
They don't work