30 ms·
This bookmarklet uses xpath to replace every plain text 'the' with 'ye'. javascript:d=document;x=d.evaluate(‘.//text()[normalize-space(.)!=\'\']‘,d.body,null,7
by macowar 14y ago
This bookmarklet uses xpath to replace every plain text 'the' with 'ye'.
javascript:d=document;x=d.evaluate(‘.//text()[normalize-space(.)!=\'\']‘,d.body,null,7,null);for(i=0,l=x.snapshotLength;i<l;i++){t=x.snapshotItem(i); t.data=t.data.replace(/the/gi,'ye')} void(1)