Advertisement
Guest User

Untitled

a guest
Dec 20th, 2021
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function w(query, callback) {
  2.     const t = setInterval(function() {
  3.         if(elementExists(query)) {
  4.             clearInterval(t)
  5.             callback(document.querySelector(query))
  6.         }
  7.     }, 1000);
  8. }
  9.  
  10. w('div#wpsafe-link > a', function(element) {
  11.     const regex = /redirect=(.*)',/;
  12.     const m = regex.exec(element.onclick.toString())[1]
  13.     location.href = JSON.parse(atob(m)).safelink
  14. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement