Advertisement
A_GUES

What name

Jul 8th, 2023
731
0
Never
3
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. javascript:(function() {
  2.     var url = window.location.href;
  3.     var host = window.location.hostname;
  4.     var path = window.location.pathname;
  5.     var newHost = host.replace(/\./g, '-');
  6.     var newUrl = 'https://' + newHost + '.proxy.wichita.edu' + path;
  7.     window.location.href = newUrl;
  8. })()
Advertisement
Comments
  • A_GUES
    1 year
    Comment was deleted
  • HeadAdmin
    1 year
    # text 0.00 KB | 0 0
    1. Bro
  • A_GUES
    1 year
    # text 0.27 KB | 0 0
    1. Code v2:
    2. javascript:(function() {
    3. var currentUrl = window.location.href;
    4. var urlParts = currentUrl.split('/');
    5. var subdomain = urlParts[2].replace(/\./g,'-');
    6. window.location.href = 'https://' + subdomain + '.proxy.wichita.edu/' + urlParts.slice(3).join('/');
    7. })();
Add Comment
Please, Sign In to add comment
Advertisement