Skip to content

Commit 5d0f908

Browse files
committed
v6.7.3
Signed-off-by: Magic <magicoflolis@tuta.io>
1 parent d6ff2ce commit 5d0f908

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

dist/magic-userjs.meta.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/magic-userjs.user.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// ==UserScript==
2-
// @version 6.7.2
2+
// @version 6.7.3
33
// @name Magic Userscript+ : Show Site All UserJS
44
// @name:ar Magic Userscript+: عرض جميع ملفات UserJS
55
// @name:de Magic Userscript+ : Website anzeigen Alle UserJS
@@ -2625,8 +2625,8 @@ function primaryFN() {
26252625
MUJS.showError('Invalid data received from the server, check internet connection');
26262626
return;
26272627
}
2628-
2629-
const data = (Array.isArray(dataQ.query) ? dataQ.query : []).filter((d) => !d.deleted);
2628+
const dq = Array.isArray(dataQ) ? dataQ : Array.isArray(dataQ.query) ? dataQ.query : [];
2629+
const data = dq.filter((d) => !d.deleted);
26302630
if (isBlank(data)) {
26312631
return;
26322632
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"url": "https://github.com/magicoflolis/Userscript-Plus/issues"
1010
},
1111
"userJS": {
12-
"version": "6.7.2",
12+
"version": "6.7.3",
1313
"name": "Magic Userscript+ : Show Site All UserJS",
1414
"description": "Finds available userscripts for the current webpage.",
1515
"bugs": "https://github.com/magicoflolis/Userscript-Plus/issues",

src/UserJS/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2519,8 +2519,8 @@ function primaryFN() {
25192519
MUJS.showError('Invalid data received from the server, check internet connection');
25202520
return;
25212521
}
2522-
2523-
const data = (Array.isArray(dataQ.query) ? dataQ.query : []).filter((d) => !d.deleted);
2522+
const dq = Array.isArray(dataQ) ? dataQ : Array.isArray(dataQ.query) ? dataQ.query : [];
2523+
const data = dq.filter((d) => !d.deleted);
25242524
if (isBlank(data)) {
25252525
return;
25262526
}

0 commit comments

Comments
 (0)