Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');
// by hiccup01 | |
// licenced under MIT licence | |
// hiccup01 is not responsible for the results caused by using this script | |
window.location="https://web.archive.org/save/"+((decodeURIComponent((new RegExp("[?|&]blockedUrl=([^&;]+?)(&|#|;|$)").exec(location.search)||[null,""])[1].replace(/\+/g,"%20"))||window.location)||window.location); | |
//bookmarklet vvv | |
//javascript:(function()%7Bwindow.location%3D%22https%3A%2F%2Fweb.archive.org%2Fsave%2F%22%2B((decodeURIComponent((new%20RegExp(%22%5B%3F%7C%26%5DblockedUrl%3D(%5B%5E%26%3B%5D%2B%3F)(%26%7C%23%7C%3B%7C%24)%22).exec(location.search)%7C%7C%5Bnull%2C%22%22%5D)%5B1%5D.replace(%2F%5C%2B%2Fg%2C%22%2520%22))%7C%7Cnull)%7C%7Cwindow.location)%7D)() |
Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');
#!/usr/bin/env node | |
// Minecraft server > Scratch Status | |
// by hiccup01 | |
// hiccup01.com | |
// Copyright (c) 2016 hiccup01 <[email protected]> | |
//Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
//The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. |
// Just before switching jobs: | |
// Add one of these. | |
// Preferably into the same commit where you do a large merge. | |
// | |
// This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
// and then it quickly escalated into more and more evil suggestions. | |
// I've tried to capture interesting suggestions here. | |
// | |
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |