Skip to content

Commit

Permalink
✨ remove uid from urls
Browse files Browse the repository at this point in the history
  • Loading branch information
jxn-30 committed Jun 28, 2023
1 parent 2aa2c9a commit 25a5d69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
14 changes: 1 addition & 13 deletions lss-manager-v3/lss-manager-v3.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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])) {
Expand Down
4 changes: 2 additions & 2 deletions lssm-v3.user.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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('<script id="lss_manager_js" src="https://v3.lss-manager.de/lss-manager-v3/lss-manager-v3.dev.js'+uid+'" type="text/javascript"></script>');
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('<script id="lss_manager_js" src="https://v3.lss-manager.de/lss-manager-v3/lss-manager-v3.dev.js" type="text/javascript"></script>');

0 comments on commit 25a5d69

Please sign in to comment.