1
0
Fork 0
mirror of https://github.com/prise6/anywhere synced 2024-05-06 06:23:10 +02:00

Delete javascript evt

This commit is contained in:
François Vieille 2016-05-01 20:21:46 +02:00
parent 77c56041c6
commit 64175a664d

View file

@ -5,7 +5,7 @@
javascript:(function(r = "http://swapthatlink.com", c = document.location.href){
var l = Array.prototype.slice.call(document.getElementsByTagName('a')),
e = new RegExp("^(mailto|(https?)?" + c + "/?#)"),
e = new RegExp("^(javascript|mailto|(https?)?" + c + "/?#)"),
f = false;
while(!f & l.length>0){
i = Math.floor(Math.random()*l.length);