'Edit existing inline javascript
Website has several thousand pages with inline javascript, that was copypasted manually to each page along with other content:
<script type="text/javascript">
<!--
// Display Settings
var eCAT_eID = "xxxxxxx"; // Your ID
var eCAT_siteID = 0; // Your Site ID
// Stop Editing
var hz = ".com";
var fz0 = "coridoonline" + hz + "/ebay/ebay_dynamic_cats/ebayCatsSA.php";
var az = "SC";
var bz = "RY";
var cz = "PT";
var dz = "SR";
var ez = "C=";
var fz = "htt";
var gz = "p://";
document.write("<" + az + bz + cz + " type='text/javascript'" + dz + ez + fz + gz + fz0 + "?eid=" + escape(eCAT_eID) + "&siteid=" + eCAT_siteID + ">");
document.write("</" + az + bz + cz + ">");
-->
</script>
I see it's a kind of watermark by the one developed that website long ago. It creates another 'script' that refers to 'coridoonline.com' wich is now down. That causes a 20 sec delay in loading webpages because browsers are trying to reach it. Is there any way to fix it? Except removing this script from all the pages manually. Thank you in advance for any ideas and answers!
Solution 1:[1]
Basically any IDE, even text editor as notepad++ will do that with the find&replace functionality. Paste the code you want to get rid of, search in whole project end replace with empty string.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Whisper |
