X
X
xjunkiex2016-03-25 08:02:02
Greasemonkey
xjunkiex, 2016-03-25 08:02:02

userscript for telegram

Help me to make a correct script so that in case of receiving a link to a private link, it will immediately open.
This one doesn't work:

searchAndOpen();
document.body.addEventListener('change', searchAndOpen);
function searchAndOpen() {
  var linx = document.getElementsByTagName('a');
  for (var i = 0; iif (linx[i].href.slice(0, 20) == 'https://privnote.com/') {
    window.open(linx[i].href, '_blank');
  }
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question