Greasy Fork is available in English.

Remove Url SEO Parameters

Remove Redundant Url SEO Parameters

Stan na 06-11-2020. Zobacz najnowsza wersja.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         Remove Url SEO Parameters
// @namespace    https://github.com/livinginpurple
// @version      2020.11.06.24
// @description  Remove Redundant Url SEO Parameters
// @author       livinginpurple
// @match        http://*.pixnet.net/*
// @match        https://*.pixnet.net/*
// @match        http://blog.xuite.net/*
// @match        https://blog.xuite.net/*
// @match        http://*.techbang.com/posts/*
// @match        https://*.techbang.com/posts/*
// @match        https://*.dcard.tw/*
// @match        https://*.inside.com.tw/*
// @match        https://*.logdown.com/*
// @match        https://cookpad.com/tw/*
// @run-at       document-start
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    const scriptName = GM_info.script.name;
    console.log(`${scriptName} is loading.`);
    // 修改網址,且不留下歷史紀錄
    window.history.replaceState({},
        window.title,
        window.location.href.split('-')[0]
    );
    console.log(`${scriptName} is running.`);
})(document);