Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function w(query, callback) {
- const t = setInterval(function() {
- if(elementExists(query)) {
- clearInterval(t)
- callback(document.querySelector(query))
- }
- }, 1000);
- }
- w('div#wpsafe-link > a', function(element) {
- const regex = /redirect=(.*)',/;
- const m = regex.exec(element.onclick.toString())[1]
- location.href = JSON.parse(atob(m)).safelink
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement