Widget:Copy

From Irony Wiki
Revision as of 08:58, 30 August 2020 by Saucy (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<script> function copy(text) {

  // const unescapeRegex = /(&#38\;)|(&#34\;)|(&#39\;)|(&#60\;)|(&#62\;)|(&#42\;)/g;
  navigator.clipboard.writeText(text);

} </script> <button type="button" class="mw-ui-button mw-ui-progressive" style="text-decoration:none;color:#0645ad;background:none;padding:0;border:none;" onclick="copy()"></button>