Last active
June 1, 2018 12:56
-
-
Save FlameWolf/b2f82c071d7a1b3ca46c5e7467806233 to your computer and use it in GitHub Desktop.
This file contains 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
Element.prototype.replaceWith = function(html) { this.insertAdjacentHTML("afterend", html); this.remove(); }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment