mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
c
This commit is contained in:
parent
d6e40c5826
commit
29e06e01f9
2 changed files with 16 additions and 6 deletions
|
@ -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){}
|
||||
|
||||
}
|
||||
|
|
|
@ -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){}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue