Advertisement
fagci

Epsilon notes markdown extra

Oct 13th, 2018
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var regex = /<(\w+)\s*(.*)>([^{>]*)\{\.([^}]+)\}(.*)/,
  2.     body = document.body,
  3.     html = body.innerHTML,
  4.     repl = '<$1 $2 class="$4">$3 $5</$1>';
  5. body.innerHTML = html.replace(regex, repl);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement