Skip to content

Commit

Permalink
Update for Yandex
Browse files Browse the repository at this point in the history
  • Loading branch information
coeligena authored Feb 7, 2017
1 parent 9d80331 commit 2ee248e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions resources/at_document_start.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ NodeList.prototype.forEach = Array.prototype.forEach;
counter_total = 0;

query = [
'[href]:not([href=""]):not([href^="#"]):not([href*="void("])[onmousedown*="rwt("]' // Google
'[href]:not([href=""]):not([href^="#"]):not([href*="void("])[onmousedown*="rc("]' // Yandex
, '[href]:not([href=""]):not([href^="#"]):not([href*="void("])[onmousedown*="rwt("]' // Google
, '[href]:not([href=""]):not([href^="#"]):not([href*="void("])[jsaction*="mousedown"][jsaction*="keydown"]'
, '[href]:not([href=""]):not([href^="#"]):not([href*="void("])[onmousedown*="window.open("]' // other (very common)
, '[href]:not([href=""]):not([href^="#"]):not([href*="void("])[onmousedown*="self.open("]'
Expand Down Expand Up @@ -90,4 +91,4 @@ function action(){
}

try { action(); } catch(err){}
try { interval_id = setInterval(action, 500); } catch(err) { clearInterval(interval_id); } // only available in pages having JS-support
try { interval_id = setInterval(action, 500); } catch(err) { clearInterval(interval_id); } // only available in pages having JS-support

0 comments on commit 2ee248e

Please sign in to comment.