Technical Details
Forum version : #phpBB3
Position : Administrator
Concerned browser(s) : Mozilla Firefox, Google Chrome
Who the problem concerns : All members
When the problem appeared : long ago
Forum link : https://www.darmowybonus.com/
Description of problem
Hello, I have a problem with my JS code. If i open a topic, I have to wait a few seconds. Can I exchange this code for another one? This code converts the text into a link. Maybe it is available other solution changing phrases for links?- Code:
$(function(){
$(".post .postbody").each(function(){
var _1=$(this).html();
var _2=_1.replace(/Bob Casino/gi,"<a target='blank' href='https://www.bobregister.com/refer/71c306cf'>Bob Casino</a>");
$(this).html(_2);
var _1=$(this).html();
var _2=_1.replace(/Melbet/gi,"<a target='blank' href='http://refpahah.xyz/L?tag=d_40498m_2170c_&site=40498&ad=2170/'>Melbet</a>");
$(this).html(_2);
var _1=$(this).html();
var _2=_1.replace(/1xbit/gi,"<a target='blank' href='http://referrer.website/L?tag=d_35028m_1732c_&site=35028&ad=1732'>1xbit</a>");
$(this).html(_2);
});
});
The whole code has ~1200 lines
Last edited by testyforum on September 14th 2019, 8:49 am; edited 1 time in total