Created
September 23, 2023 12:33
-
-
Save lucahammer/19ee2154f2c53a568915ba5bd0d4ed4a to your computer and use it in GitHub Desktop.
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
(function (obj, method) { | |
obj[method] = (function (obj_method) { | |
return function (child) { | |
if (child.getAttribute("data-testid") == "tweet") return child; | |
return obj_method.apply(this, arguments); | |
}; | |
})(obj[method]); | |
})(Element.prototype, "removeChild"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment