inherit
229600
0
Sept 7, 2022 11:09:51 GMT -8
Ben Goodman
96
February 2016
benhun
|
Post by Ben Goodman on Apr 15, 2018 9:28:16 GMT -8
Hello all!
Post img posted this: postimg.ORG domain is locked by Registry, no prior notice.
While we hope to resolve the issue, we chose postimg.CC as our new home.
Please update codes embedded in your websites.
Now I have tons of images on my website by this host, I would like to have a javascript which allows me to replace all non-post link from postimg.org to postimg.cc.
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,290
January 2004
todge
|
Post by Todge on Apr 15, 2018 13:53:27 GMT -8
Try this in your Global Footer... <script type="text/javascript"> $(document).ready(function(){ $('img').each(function(){ $(this).attr('src',$(this).attr('src').replace('postimg.org','postimg.cc')); }); }); </script>
You may have to force a hard refresh (CTRL+F5), or clear your browsers' cache for the code to take effect.
|
|
inherit
229600
0
Sept 7, 2022 11:09:51 GMT -8
Ben Goodman
96
February 2016
benhun
|
Post by Ben Goodman on Apr 15, 2018 19:59:40 GMT -8
Thanks, I still need to change the urls used in plugins, but overall, it did work.
Thank you so much!
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,290
January 2004
todge
|
Post by Todge on Apr 16, 2018 15:24:50 GMT -8
You are most welcome.
|
|