LoginSignup
7
7

More than 5 years have passed since last update.

キータがキター(°∀°)に見えて困るためのJS

Posted at
qiita.js
var xpathResult = document.evaluate('descendant::text()[contains(., "キータ")]', document, null, 7, null);
for (var i = 0; i < xpathResult.snapshotLength; i++) {
  var node = xpathResult.snapshotItem(i);
  node.nodeValue = node.nodeValue.replace(/キータ/g, 'キター(°∀°)');
}
7
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
7