Sports-replace-feed

Скрипт меняет "Мою ленту" и ссылку (sports.ru/feed/) на "Новости", устанавливая при этом на них ссылку sports.ru/my/news/

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name         Sports-replace-feed
// @version      0.2
// @namespace    replace-feed-to-mynews
// @description  Скрипт меняет "Мою ленту" и ссылку (sports.ru/feed/) на "Новости", устанавливая при этом на них ссылку sports.ru/my/news/
// @include        https://www.sports.ru/*
// @author       dimisa
// @grant        none
// ==/UserScript==

window.setTimeout(
	function check() {
    var anchors = document.querySelectorAll('a[href^="/feed/"]');
Array.prototype.forEach.call(anchors, function (element, index) {
element.href = "https://www.sports.ru/my/news/";
element.text = "Новости";
});
        window.setTimeout(check, 100);
	}, 100
);