You need to write a script that when you open the page clicks on a teaser with advertising. Skeleton:

<script> if (location.search=="") { } </script> 

Regular expression to search for items on the page:

 (?<=href=")http:\/\/do.traffim.com\/.*(?=" class="traffim-descr-link">) 

how to connect all right?

  • Wrong parts are usually difficult to connect correctly. And if this is also the approach itself is wrong ... - Qwertiy
  • therefore, I ask you to help and suggest in which direction to think. - Eugene
  • Why look for a regular (wtf?) Element and click on it if you can just follow the link? - yolosora
  • @yolosora, yes a lot of reasons. From handlers on the link and calculating statistics to target blank. - Qwertiy

1 answer 1

 document.querySelector('a.traffim-descr-link[href^="http://do.traffim.com/"]').click() 
  • Thanks for your reply! - Evgenia
  • @ Eugene, if the problem is solved, it is necessary to accept the answer by clicking on the check mark to the left of it. - Qwertiy