Strip querystrings from link URLs

Strips the querystring from link URLs on websites. Originally written as a quick fix for expired Amazon Web Services Unlimited FTP Server (S3 AWS) links when their token had expired. Client would regularly post expired links and I was having to copy + paste each link and strip the querystring manually.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         Strip querystrings from link URLs
// @namespace    https://pinebeecreative.com/
// @version      0.1
// @description  Strips the querystring from link URLs on websites. Originally written as a quick fix for expired Amazon Web Services Unlimited FTP Server (S3 AWS) links when their token had expired. Client would regularly post expired links and I was having to copy + paste each link and strip the querystring manually.
// @author       Pinebee Creative
// @require      https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js
// @match        *://*/*
// @grant        none
// ==/UserScript==

$(document).ready(function() {
    'use strict';
            $("a").click(function(event) {
                var href = $(this).attr('href').split("?")[0];
              $(this).attr("href", href);
             });

})();