KissAsian - Remember Player Choice

Remembers the last player you used and uses that player in all videos.

// ==UserScript==
// @name         KissAsian - Remember Player Choice
// @namespace    https://naeembolchhi.github.io/
// @version      0.1
// @description  Remembers the last player you used and uses that player in all videos.
// @author       NaeemBolchhi
// @license      GPL-3.0-or-later
// @match        https://kissasian.li/*/*/*
// @icon         data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAAXNSR0IB2cksfwAAAAlwSFlzAAAOxAAADsQBlSsOGwAAFUtJREFUeJztnXuwJFV9x3dZXiEQcIOA5SaoQIlrQA0ojz2nZ/aqi5SiCbVXKsyzZ+bOnTt3L7tAhQoiy60kiEo0lkTio5SqIEoSyieUFtRSCVBUAkEiRCHlUiiIC4RXtl9z7z46py+7ZLnex0xPd3/7dH8/Vd8/WGC76vzO93O7d+f0rFgxIP41xVtV/BzmI4OuFVkYryNOt8rilZ0XC58ZPlZFWs74uSclMjwKgAyDN7X+eFX+X6NLk5WotZxxW8Y7ExsgBUDC4jfPOdSqisfRpclKVPn3OA15TrJDpABISOyavB9dmsykJPY6LXle4kOkAEgY7Lq8DV6aDMVpyosgg6QAyKA4DfE5dGGyFFX+CdgwKQAyCE7D2KxuV+GlyUpU+T8BHSgFQPrFbYiLVPn3oEuTldhN+Vn0TCkA0hdexxixSsJDlyYrcUzjK/70ipXouVIAZFl6XeNUqyxeRJcmK7Hr8hZ/S3EVeq5zUABkKWYvEatV+Z9ClyYrsWrijpkpeRh6rq9BAZDF8K9Yd4hVlT9DlyYrsari3l5XHIme6+ugAMhiqFvVe9GlyUpU+f9Tlf8N6Jn+FhQAWQjHlN9ClyYrsSryiV5HHo+e6YJQAGQ+qvyfQpcmK1E/+Z9zO/IP0DNdFAqAHIjTFBPB59LRxclCrIpI7lhvWCgAsh+3JS9U5d+NLk4Woso/4zZlcsd6w0IBkACva0irLFx0cbKQ4Fiv2zLOQs+0LygA4k0VTlab9gV0cTKR4FhvE3CsNywUQL6ZuXTd0VZF/hJ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g==
// @run-at       document-body
// @grant        none
// ==/UserScript==

try {rememberPlayer();} catch {}
try {updateFavicon();} catch {}
try {updateTitle();} catch {}
try {updateNavButtons();} catch {}

function updateFavicon() {
    let oldFav = document.querySelector("link[rel*='icon']"),
        newPng = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAAXNSR0IB2cksfwAAAAlwSFlzAAAOxAAADsQBlSsOGwAAFUtJREFUeJztnXuwJFV9x3dZXiEQcIOA5SaoQIlrQA0ojz2nZ/aqi5SiCbVXKsyzZ+bOnTt3L7tAhQoiy60kiEo0lkTio5SqIEoSyieUFtRSCVBUAkEiRCHlUiiIC4RXtl9z7z46py+7ZLnex0xPd3/7dH8/Vd8/WGC76vzO93O7d+f0rFgxIP41xVtV/BzmI4OuFVkYryNOt8rilZ0XC58ZPlZFWs74uSclMjwKgAyDN7X+eFX+X6NLk5WotZxxW8Y7ExsgBUDC4jfPOdSqisfRpclKVPn3OA15TrJDpABISOyavB9dmsykJPY6LXle4kOkAEgY7Lq8DV6aDMVpyosgg6QAyKA4DfE5dGGyFFX+CdgwKQAyCE7D2KxuV+GlyUpU+T8BHSgFQPrFbYiLVPn3oEuTldhN+Vn0TCkA0hdexxixSsJDlyYrcUzjK/70ipXouVIAZFl6XeNUqyxeRJcmK7Hr8hZ/S3EVeq5zUABkKWYvEatV+Z9ClyYrsWrijpkpeRh6rq9BAZDF8K9Yd4hVlT9DlyYrsari3l5XHIme6+ugAMhiqFvVe9GlyUpU+f9Tlf8N6Jn+FhQAWQjHlN9ClyYrsSryiV5HHo+e6YJQAGQ+qvyfQpcmK1E/+Z9zO/IP0DNdFAqAHIjTFBPB59LRxclCrIpI7lhvWCgAsh+3JS9U5d+NLk4Woso/4zZlcsd6w0IBkACva0irLFx0cbKQ4Fiv2zLOQs+0LygA4k0VTlab9gV0cTKR4FhvE3CsNywUQL6ZuXTd0VZF/hJenIzEbQrMsd6wUAD5xZ86eZVdk4+gS5OVQI/1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180" href="${newPng}"><link rel="icon" type="image/png" sizes="32x32" href="${newPng}"><link rel="icon" type="image/png" sizes="194x194" href="${newPng}"><link rel="icon" type="image/png" sizes="192x192" href="${newPng}"><link rel="icon" type="image/png" sizes="16x16" href="${newPng}"><link rel="image_src" type="image/png" sizes="256x256" href="${newPng}"><link rel="shortcut icon" type="image/x-icon" href="${newPng}">`;

    oldFav.outerHTML = newFav;
}

function rememberPlayer() {
    if (window.location.search.match(/&s=/)) {
        localStorage.player = window.location.search.replace(/.*&s=/,"");
    } else {
        if (!localStorage.player) {return;}

        window.location.assign(window.location.href + "&s=" + localStorage.player);
    }
}

function updateNavButtons() {
    if (!localStorage.player) {return;}

    let prev = document.getElementById("btnPrevious").parentNode,
        next = document.getElementById("btnNext").parentNode;

    try {prev.href = prev.href + "&s=" + localStorage.player;} catch {}
    try {next.href = next.href + "&s=" + localStorage.player;} catch {}
}

function updateTitle() {
    if (document.title.match(/Episode/)) {
        document.title = document.title.replace(/Watch\s(.*)\s(Episode\s[0-9]*).*/,"$1 - $2");
    } else {
        document.title = document.title.replace(/Watch\s(.*)\sMovie.*/,"$1");
    }
}