Advertisement
Guest User

Untitled

a guest
Jan 13th, 2020
337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. Button42, 1838696505="Go to page, "javascript:(function(){var b,x,l,t,n,h,v;b=document.getElementById('ujs_pv');if(b){b.parentNode.removeChild(b);return};x=navigator.lastFocusedTextArea;l=x.offsetLeft;t=x.offsetTop;n=x;while(n.offsetParent){n=n.offsetParent;l+=n.offsetLeft;t+=n.offsetTop;};h=x.value.replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/\n/g,'<br>').replace(/\[url=(.*?)\](.*?)\[\/url\]/gi,'<a href=\x22$1\x22>$2</a>').replace(/\[email=(.*?)\](.*?)\[\/email\]/gi,'<a href=\x22mailto:$1\x22>$2</a>').replace(/\[(center|left|right)\](.*?)\[\/\1\]/gi,'<div style=\x22text-align: $1\x22>$2</div>').replace(/\[((?:color|size)=.*?)\]/gi,'<font $1>').replace(/\[font=(.*?)\]/gi,'<font face=\x22$1\x22>').replace(/\[\/(color|size|font)\]/gi,'</font>').replace(/\[(\/?)quote\]/gi,'<$1blockquote>').replace(/\[(\/?)([bius]|code|hr|sup|sub|strike)\]/gi,'<$1$2>').replace(/\[img\](.*?)\[\/img\]/gi,'<img src=\x22$1\x22>');v=document.createElement('div');v.id='ujs_pv';v.style='position:absolute;left:'+l+'px;top:'+t+'px;height:'+(x.offsetHeight-2)+'px;width:'+(x.offsetWidth-10)+'px;overflow:auto;background:white;padding:0 4px;border:1px solid gray;font:'+getComputedStyle(x,null).font;v.innerHTML=h;document.documentElement.appendChild(v)})()", , , "Preview""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement