Created
April 16, 2020 22:38
-
-
Save zengxinhui/8a4d39aaf5c2cd8e8a47f8b686730671 to your computer and use it in GitHub Desktop.
keep only visible characters of a page
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
document.body.innerHTML = document.body.innerHTML.replace(/[^\x20-\x7E]/g, ''); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment