UserAPI Link Redirector

Redirect UserAPI links to a formatted version (single redirect)

As of 2024-01-04. See the latest version.

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

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.

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

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

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!)

Author
Идзуми Сэна
Ratings
0 0 0
Version
0.6
Created
2024-01-04
Updated
2024-01-04
Size
1.58 KB
License
N/A
Applies to

UserAPI Link Redirector UserScript

Описание:

Этот UserScript предназначен для улучшения пользовательского опыта на веб-сайте UserAPI путем перенаправления определенных ссылок на более отформатированную версию с однократным перенаправлением. Скрипт использует регулярные выражения для извлечения необходимых параметров из оригинальной ссылки и создает новую отформатированную ссылку для перенаправления.

Инструкции:

  1. Установка:

    • Убедитесь, что у вас установлен менеджер пользовательских скриптов в браузере, такой как Violentmonkey.
    • Скопируйте предоставленный скрипт.
  2. Детали скрипта:

    • @name: UserAPI Link Redirector
    • @namespace: http://violentmonkey.com/
    • @version: 0.6
    • @description: Перенаправление ссылок UserAPI на отформатированную версию (однократное перенаправление)
    • @author: You (Замените на свое имя или идентификатор)
    • @match: https://.userapi.com/
    • @grant: none
  3. Принцип работы:

    • Функция redirectUserAPILink(link) форматирует и перенаправляет ссылку.
    • Используется регулярное выражение для извлечения параметров из оригинальной ссылки.
    • Создается новая ссылка на основе извлеченных параметров.
    • Перенаправление осуществляется с проверкой на предотвращение повторного выполнения.
    • Результаты и процесс отображаются в консоли браузера.