Sports-replace-feed

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

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==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
);