Skip to content

Instantly share code, notes, and snippets.

@dvygolov
Created February 14, 2020 10:57
Show Gist options
  • Save dvygolov/4ebb6ee259afaa94aaeb58e28f504bc6 to your computer and use it in GitHub Desktop.
Save dvygolov/4ebb6ee259afaa94aaeb58e28f504bc6 to your computer and use it in GitHub Desktop.
Скрипт для подмены всех ссылок на странице на вашу
//Подключаем как <script src="stealtraffic.js"></script>
window.onload = function() {
var anchors = document.getElementsByTagName("a");
for (var i = 0; i < anchors.length; i++) {
anchors[i].href = "YOUR_URL_GOES_HERE"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment