reworked script editor page

This commit is contained in:
gabryon99 2020-04-14 22:05:48 +02:00
parent 3f1fabc73f
commit 1e5376da95
8 changed files with 166 additions and 110 deletions

View file

@ -1741,4 +1741,11 @@ $(document).ready(function() {
return [enabled_count, disabled_count];
}
$(`.filter-scripts-button`).click(function() {
$(`#scripts-config a[href^='/lua/code_viewer.lua']`).each(function() {
const encoded = encodeURIComponent(`${location.pathname}${location.search}${location.hash}`);
$(this).attr('href', `${$(this).attr('href')}&referal_url=${encoded}`);
});
});
});