This commit is contained in:
Joseph Cheung 2023-02-27 19:37:09 +08:00
parent d6e40c5826
commit 29e06e01f9
2 changed files with 16 additions and 6 deletions

View file

@ -1505,11 +1505,16 @@ function proxify()
{
try{
for(let i=prompt.url_proxy.length;i>=0;--i)
{
if(document.querySelector("#fnref\\:"+String(i)))
delete document.querySelector("#fnref\\:"+String(i)).href
document.querySelector("#fnref\\:"+String(i)).addEventListener('click', function () {
link_tmp = document.querySelector("#fnref\\:"+String(i))
link_tmp.removeAttribute('href')
link_tmp.removeAttribute('id')
link_tmp.addEventListener('click', function () {
modal.style.display = 'block'; modal_open(prompt.url_proxy[i])
})
});
}
}catch(e){}
}

View file

@ -1505,11 +1505,16 @@ function proxify()
{
try{
for(let i=prompt.url_proxy.length;i>=0;--i)
{
if(document.querySelector("#fnref\\:"+String(i)))
delete document.querySelector("#fnref\\:"+String(i)).href
document.querySelector("#fnref\\:"+String(i)).addEventListener('click', function () {
link_tmp = document.querySelector("#fnref\\:"+String(i))
link_tmp.removeAttribute('href')
link_tmp.removeAttribute('id')
link_tmp.addEventListener('click', function () {
modal.style.display = 'block'; modal_open(prompt.url_proxy[i])
})
});
}
}catch(e){}
}