Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
In a dense DOM tree created by a content management system which I didn't create and don't know much about there might be pseudo elements hiding in various places. To ensure that, I want to run so...
#4: Post edited
- In a dense DOM tree created by a content management system which I didn't create and don't know much about there might be pseudo elements hiding in various places.
To ensure that, I want to run some "brute force" JavaScript command that removes any CSS pseudo element whatsoever from a document.- ## Pseudocode
- ```javascript
- document.querySelectorAll('*').forEach((element)=>{
- DELETE A CSS PSEUDO ELEMENT;
- });
- ```
- ## My question
- Is there a JavaScript command to remove all CSS pseudo-elements whatsoever in a document?
- In a dense DOM tree created by a content management system which I didn't create and don't know much about there might be pseudo elements hiding in various places.
- To ensure that, I want to run some recursive "brute force" JavaScript command that removes any CSS pseudo element whatsoever from a document.
- ## Pseudocode
- ```javascript
- document.querySelectorAll('*').forEach((element)=>{
- DELETE A CSS PSEUDO ELEMENT;
- });
- ```
- ## My question
- Is there a JavaScript command to remove all CSS pseudo-elements whatsoever in a document?
#3: Post edited
- In a dense DOM tree created by a content management system which I didn't create and don't know much about there might be pseudo elements hiding in various places.
- To ensure that, I want to run some "brute force" JavaScript command that removes any CSS pseudo element whatsoever from a document.
- ## Pseudocode
- ```javascript
- document.querySelectorAll('*').forEach((element)=>{
DELETE ANY CSS PSEUDO ELEMENT;- });
- ```
- Is there a JavaScript command to remove all CSS pseudo-elements whatsoever in a document?
- In a dense DOM tree created by a content management system which I didn't create and don't know much about there might be pseudo elements hiding in various places.
- To ensure that, I want to run some "brute force" JavaScript command that removes any CSS pseudo element whatsoever from a document.
- ## Pseudocode
- ```javascript
- document.querySelectorAll('*').forEach((element)=>{
- DELETE A CSS PSEUDO ELEMENT;
- });
- ```
- ## My question
- Is there a JavaScript command to remove all CSS pseudo-elements whatsoever in a document?
#2: Post edited
- In a dense DOM tree created by a content management system which I didn't create and don't know much about there might be pseudo elements hiding in various places.
- To ensure that, I want to run some "brute force" JavaScript command that removes any CSS pseudo element whatsoever from a document.
- ## Pseudocode
- document.querySelectorAll('*').forEach((element)=>{
- DELETE ANY CSS PSEUDO ELEMENT;
- });
- Is there a JavaScript command to remove all CSS pseudo-elements whatsoever in a document?
- In a dense DOM tree created by a content management system which I didn't create and don't know much about there might be pseudo elements hiding in various places.
- To ensure that, I want to run some "brute force" JavaScript command that removes any CSS pseudo element whatsoever from a document.
- ## Pseudocode
- ```javascript
- document.querySelectorAll('*').forEach((element)=>{
- DELETE ANY CSS PSEUDO ELEMENT;
- });
- ```
- Is there a JavaScript command to remove all CSS pseudo-elements whatsoever in a document?
#1: Initial revision
Is there a JavaScript command to remove all CSS pseudo-elements whatsoever in a document?
In a dense DOM tree created by a content management system which I didn't create and don't know much about there might be pseudo elements hiding in various places. To ensure that, I want to run some "brute force" JavaScript command that removes any CSS pseudo element whatsoever from a document. ## Pseudocode document.querySelectorAll('*').forEach((element)=>{ DELETE ANY CSS PSEUDO ELEMENT; }); Is there a JavaScript command to remove all CSS pseudo-elements whatsoever in a document?