Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

136
Views
reemplazando la función de ubicación con una función personalizada

He visto un sitio web proxy con un código similar a este, pero el código está ofuscado.

El sitio web del proxy cambia window.location a window._location

Solo 5/7 intentos funcionan a continuación... ¿Cómo logro los otros 2?

 var _location = { set function(url) { window.location = url + "?search=query"; }, get href() { return window.location.href; }, get protocol() { return window.location.protocol; }, get hostname() { return window.location.hostname; }, get pathname() { return window.location.pathname; }, set href(url) { window.location.href = url + "?search=query"; } } _location.assign = function(url) { window.location.assign(url + "?search=query"); }; _location.replace = function(url) { window.location.replace(url + "?search=query"); }; console.log(window._location.href); // Working console.log(_location.href); // Working window._location = 'https://stackoverflow.com'; // NOT Working window._location.href = 'https://stackoverflow.com'; // Working window._location.assign('https://stackoverflow.com'); // Working window._location.replace('https://stackoverflow.com'); // Working _location = 'https://stackoverflow.com';// NOT Working
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!