Advertisement
A_GUES

bookmarklet bypass login and sign in

Sep 27th, 2023 (edited)
1,171
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. javascript: (function () { var url = window.location.href; // get the current URL var domain = url.split(‘/’)2; // get the domain and subdomain part var newDomain = domain.replace(/./g, ‘-’); // replace dots with dashes var newPath = url.replace(domain, newDomain + ‘.website’); // replace the old domain with the new one window.location.href = newPath; // go to the new URL })();
Advertisement
Comments
  • A_GUES
    1 year
    # text 0.26 KB | 0 0
    1. javascript:(function() {
    2. var currentUrl = window.location.href;
    3. var urlParts = currentUrl.split('/');
    4. var subdomain = urlParts[2].replace(/\./g, '-');
    5. window.location.href = 'https://' + subdomain + '.proxy.wichita.edu/' + urlParts.slice(3).join('/');
    6. })();
Add Comment
Please, Sign In to add comment
Advertisement