From 25a5d692683397917e50bb48b98562b0225aa9e0 Mon Sep 17 00:00:00 2001 From: jan Date: Wed, 28 Jun 2023 10:45:35 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20remove=20uid=20from=20urls?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lss-manager-v3/lss-manager-v3.dev.js | 14 +------------- lssm-v3.user.js | 4 ++-- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/lss-manager-v3/lss-manager-v3.dev.js b/lss-manager-v3/lss-manager-v3.dev.js index e64660b2..eb7fea50 100755 --- a/lss-manager-v3/lss-manager-v3.dev.js +++ b/lss-manager-v3/lss-manager-v3.dev.js @@ -50,13 +50,7 @@ let lssm = { }, getlink: function (file, no_cache = false) { try { - let uid = ""; - let game = ""; - if (typeof user_id !== "undefined") { - game = window.location.hostname.toLowerCase().replace("www.", "").split(".")[0]; - } - uid = "?uid=" + game + user_id; - return this.config.server + file + uid + (no_cache ? `&_=${new Date().getTime()}` : ''); + return this.config.server + file + (no_cache ? `&_=${new Date().getTime()}` : ''); } catch (e) { console.error("On script load: " + e.message); } @@ -2342,12 +2336,6 @@ lssm.modules = { load: function (module) { try { let path = window.location.pathname.length; - let uid = ""; - let game = ""; - if (typeof user_id !== "undefined") { - game = window.location.hostname.toLowerCase().replace("www.", "").split(".")[0]; - } - uid = "?uid=" + game + user_id; this.addLocales(module); if (lssm.Module[module].active && lssm.Module.status !== 'develop' && lssm.appstore.canActivate(lssm.Module[module])) { diff --git a/lssm-v3.user.js b/lssm-v3.user.js index e3ad19b4..44dd265b 100644 --- a/lssm-v3.user.js +++ b/lssm-v3.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name LSS Manager v3 Autoupdater -// @version 3.3.10 +// @version 3.3.11 // @namespace https://lss-manager.de/ // @description Das Tool für LSS // @author lost | northdegree | mausmajor | dlrg-dominik | mrweezle | sanni | jan @@ -34,4 +34,4 @@ // @grant none // @run-at document-idle // ==/UserScript== -if("undefined"==typeof jQuery)throw new Error("LSS-Manager: No jQuery! Aborting!");$.ajaxPrefilter(function(e,a,s){("script"==e.dataType||"script"==a.dataType||"stylesheet"==e.dataType||"stylesheet"==a.dataType)&&(e.cache=!0)});var uid="";"undefined"!=typeof user_id&&(game=window.location.hostname.toLowerCase().replace("www.","").split(".")[0],uid="?uid="+game+user_id),$("head").append(''); +if("undefined"==typeof jQuery)throw new Error("LSS-Manager: No jQuery! Aborting!");$.ajaxPrefilter(function(e,a,s){("script"==e.dataType||"script"==a.dataType||"stylesheet"==e.dataType||"stylesheet"==a.dataType)&&(e.cache=!0)}),$("head").append('');