Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

replace all swear words using bookmarklet

javascript:function htmlreplace(a,b,element){if(!element)element=document.body;var nodes=element.childNodes;for(var n=0;n<nodes.length;n++){if(nodes[n].nodeType==Node.TEXT_NODE){nodes[n].textContent=nodes[n].textContent.replace(new RegExp(a,'gi'),b);}else{htmlreplace(a,b,nodes[n]);}}}htmlreplace('old','new');
Comment

PREVIOUS NEXT
Code Example
Javascript :: how to generate a random number between certain values 
Javascript :: Activez la compression de texte react js 
Javascript :: javascript block link action 
Javascript :: django send and receive image data to react 
Javascript :: parsely ignores hidden field 
Javascript :: calculate init code hash nodejs 
Javascript :: signup Using codegniter in ajax 
Javascript :: rect js 
Javascript :: jquery like selector in javascript 
Javascript :: functions like once 
Javascript :: discord js get specific user from users 
Javascript :: include antoher file wagger 
Javascript :: ascending order sort javascript without sort function 
Javascript :: onpress react native datepicker stackver flow 
Javascript :: bcrypt always return faslse in node js 
Javascript :: theme ui currentcolor 
Javascript :: print array list to a ul list 
Javascript :: scroll event counting using javascript stackoverflow 
Javascript :: How to use browser-sync to serve files easily 
Javascript :: hypotenuse rectangle triangle javascript 
Javascript :: select checkbox raitng in order javascript React 
Javascript :: namesandroles javascript 
Javascript :: redux store as number instead of string 
Javascript :: gatsbyjs shop flotiq 
Javascript :: remove or replacing element array in javascript 
Javascript :: onswitch from tab do something jquery 
Javascript :: adding dynamically add foreach elements as an array 
Javascript :: likert scale javascript code 
Javascript :: apache log format json 
Javascript :: missing json after pyinstaller 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =