Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var list = document.body.querySelectorAll("a[href^='http://yandex.ru']");
- for (var i = 0; i < list.length; ++i)
- list[i].href = list[i].href.replace("http://yandex.ru", "http://google.ru");
Advertisement
Add Comment
Please, Sign In to add comment