@filteringdev/namulink 19.0.5-build.0 → 19.0.6-build.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/NamuLink.user.js +2 -2
- package/dist/index.js +10 -6
- package/package.json +1 -1
package/dist/NamuLink.user.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
// @downloadURL https://cdn.jsdelivr.net/npm/@filteringdev/namulink@latest/dist/NamuLink.user.js
|
|
9
9
|
// @license MPL-2.0
|
|
10
10
|
//
|
|
11
|
-
// @version 19.0.
|
|
11
|
+
// @version 19.0.6-build.0
|
|
12
12
|
// @author PiQuark6046 and contributors
|
|
13
13
|
//
|
|
14
14
|
// @grant unsafeWindow
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
// ==/UserScript==
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
(()=>{var g=typeof unsafeWindow<"u"?unsafeWindow:window;function m(a,i="NamuLink"){let x=a.Function.prototype.call,r=a.Reflect.apply,u=new CustomEvent("PL2PlaceHolder"),c=[[/function *\( *_0x[a-f0-9]+ *, *_0x[a-f0-9]+ *, *_0x[a-f0-9]+ *, *_0x[a-f0-9]+ *, *_0x[a-f0-9]+ *, *_0x[a-f0-9]+ *\) *{ *var *_0x[a-f0-9]+/,/('|")td('|") *, *{ *('|")class('|") *: *\( *-? *0x[a-f0-9]+ *\+ *-? *0x[a-f0-9]+ *\+ *0x[a-f0-9]+ *, *_0x[a-f0-9]+ *\[ *_0x[a-f0-9]+ */,/\( *_0x[a-f0-9]+ *\( *0x[a-f0-9]+ *\) *\) *, *('|")onClick('|") *: *_0x[a-f0-9]+ *\[ *-? *0x[a-f0-9]+ *\* *-? *0x[a-f0-9]+/,/_0x[a-f0-9]+ *\( *0x[a-f0-9]+ *\) *\) *, *('|")colspan('|") *: *_0x[a-f0-9]+ *\( *0x[a-f0-9]+ *\) *=== *_0x[a-f0-9]+ *\[ *_0x[a-f0-9]+ *\(/],[/function *\( *_0x[a-f0-9]+ *, *_0x[a-f0-9]+ *, *_0x[a-f0-9]+ *, *_0x[a-f0-9]+ *, *_0x[a-f0-9]+ *, *_0x[a-f0-9]+ *\) *{ *var *_0x[a-f0-9]+/,/\( *_0x[a-f0-9]+ *\( *0x[a-f0-9]+ *\) *\) *, *('|")onClick('|") *: *_0x[a-f0-9]+ *\[ *-? *0x[a-f0-9]+ *\* *-? *0x[a-f0-9]+/,/_0x[a-f0-9]+ *\( *0x[a-f0-9]+ *\) *\] *\) *\( *_0x[a-f0-9]+ *=> *_0x[a-f0-9]+ *\[ *_0x[a-f0-9]+ *\( *0x[a-f0-9]+ *\) *\] *\( *_0x[a-f0-9]+/,/ *, *{ *('|")class('|") *: *\( *-? *0x[a-f0-9,_+*x-]+ *\[ *_0x[a-f0-9]+ *\( *0x[a-f0-9]+ *\) *\] *\) *\( *_0x[a-f0-9]+ *\( *0x[a-f0-9]+ *\) *\) *} *, *\[ *! *_0x[a-f0-9]+/]],s=[[/new *Map *\( *Object *\[ *_0x[a-f0-9]+ *\( *0x[a-f0-9]+ *\) *\] *\( *{ *('|")pretendard('|") *: *{ *('|")fontFamily('|") *: */,/('|")fontFamily('|") *: *_0x[a-f0-9]+ *\( *0x[a-f0-9]+ *\) *, *('|")styleUrl('|") *: *_0x[a-f0-9]+ *\( *0x[a-f0-9]+ *\) *, *('|")isGoogleFonts/,/('|")popper--wide('|") *: *_0x[a-f0-9]+ *\( *0x[a-f0-9]+ *\) *, *('|")popper__title('|") *: *_0x[a-f0-9]+ *\( *0x[a-f0-9]+ *\) *} *} *,/]],p=!1;a.Function.prototype.call=new Proxy(x,{apply(t,e,l){if(p)return r(t,e,l);p=!0;let n=String(e);return n.length<5e4&&!s.some(o=>o.every(f=>f.test(n)))&&c.filter(o=>o.filter(f=>f.test(n)).length===o.length).length===1?(console.debug(`[${i}]: Function.prototype.call called for PowerLink Skeleton:`,e),a.document.dispatchEvent(u),p=!1,r(t,()=>{},[])):(p=!1,r(t,e,l))}});let d=[[/\( *\) *=> *{ *var *_0x[0-9a-z]+ *= *a0_0x[0-9a-f]+ *; *this\[ *_0x[a-z0-9]+\( *0x[0-9a-f]+ *\) *\]\(\); *}/,/\( *\) *=> *{ *var *_0x[0-9a-z]+ *= *a0_0x[0-9a-f]+ *; *this\[ *_0x[a-z0-9]+\( *0x[0-9a-f]+ *\) *\]\(\); *}/],[/\( *\) *=> *{ *var _0x[a-z0-9]+ *= *_0x[a-z0-9]+ *; *if *\( *this\[ *_0x[a-z0-9]+ *\( *0x[0-9a-f]+ *\) *\] *\) *return *clearTimeout/,/\( *0x[0-9a-f]+ *\) *\] *\) *, *void *\( *this\[ *_0x[a-z0-9]+\( *0x[0-9a-f]+ *\) *\] *= *void *\([x0-9a-f*+-]+ *\) *\) *; *this\[_0x[a-z0-9]+\( *0x[0-9a-f]+ *\) *\] *\(\) *;/]];a.setTimeout=new Proxy(a.setTimeout,{apply(t,e,l){let n=String(l[0]);return d.filter(o=>o.filter(f=>f.test(n)).length>=1).length===1?(console.debug(`[${i}]: setTimeout called for PowerLink Skeleton:`,l[0]),r(t,e,[()=>{},0])):r(t,e,l)}}),a.document.addEventListener("PL2PlaceHolder",()=>{setTimeout(()=>{let t=new Set([...a.document.querySelectorAll("div[class] div[class] div[class] ~ div[class]")]);t=new Set([...t].filter(e=>e instanceof HTMLElement)),t=new Set([...t].filter(e=>Number(getComputedStyle(e).getPropertyValue("padding-top").replaceAll(/px$/g,""))>10)),t=new Set([...t,...[...t].flatMap(e=>[...e.querySelectorAll("*")])]),t=new Set([...t].filter(e=>e instanceof HTMLElement&&e.innerText.trim().length===0)),t=new Set([...t].filter(e=>Number(getComputedStyle(e).getPropertyValue("border-bottom-width").replaceAll(/px/g,""))>=.5)),t=new Set([...t].filter(e=>Number(getComputedStyle(e).getPropertyValue("border-left-width").replaceAll(/px/g,""))>=.5)),t=new Set([...t].filter(e=>Number(getComputedStyle(e).getPropertyValue("border-right-width").replaceAll(/px/g,""))>=.5)),t=new Set([...t].filter(e=>Number(getComputedStyle(e).getPropertyValue("border-top-width").replaceAll(/px/g,""))>=.5)),t=new Set([...t].filter(e=>[...e.querySelectorAll("*")].some(l=>{if(!(l instanceof HTMLElement))return!1;let n=l.getClientRects()[0]?.height??0,o=Number(getComputedStyle(l).getPropertyValue("margin-bottom").replaceAll(/px/g,""));return n===0?!1:o>=n*.75&&o<=n*1.25}))),console.debug(`[${i}]: Removing PowerLink Skeleton Containers:`,t)
|
|
25
|
+
(()=>{var g=typeof unsafeWindow<"u"?unsafeWindow:window;function m(a,i="NamuLink"){let x=a.Function.prototype.call,r=a.Reflect.apply,u=new CustomEvent("PL2PlaceHolder"),c=[[/function *\( *_0x[a-f0-9]+ *, *_0x[a-f0-9]+ *, *_0x[a-f0-9]+ *, *_0x[a-f0-9]+ *, *_0x[a-f0-9]+ *, *_0x[a-f0-9]+ *\) *{ *var *_0x[a-f0-9]+/,/('|")td('|") *, *{ *('|")class('|") *: *\( *-? *0x[a-f0-9]+ *\+ *-? *0x[a-f0-9]+ *\+ *0x[a-f0-9]+ *, *_0x[a-f0-9]+ *\[ *_0x[a-f0-9]+ */,/\( *_0x[a-f0-9]+ *\( *0x[a-f0-9]+ *\) *\) *, *('|")onClick('|") *: *_0x[a-f0-9]+ *\[ *-? *0x[a-f0-9]+ *\* *-? *0x[a-f0-9]+/,/_0x[a-f0-9]+ *\( *0x[a-f0-9]+ *\) *\) *, *('|")colspan('|") *: *_0x[a-f0-9]+ *\( *0x[a-f0-9]+ *\) *=== *_0x[a-f0-9]+ *\[ *_0x[a-f0-9]+ *\(/],[/function *\( *_0x[a-f0-9]+ *, *_0x[a-f0-9]+ *, *_0x[a-f0-9]+ *, *_0x[a-f0-9]+ *, *_0x[a-f0-9]+ *, *_0x[a-f0-9]+ *\) *{ *var *_0x[a-f0-9]+/,/\( *_0x[a-f0-9]+ *\( *0x[a-f0-9]+ *\) *\) *, *('|")onClick('|") *: *_0x[a-f0-9]+ *\[ *-? *0x[a-f0-9]+ *\* *-? *0x[a-f0-9]+/,/_0x[a-f0-9]+ *\( *0x[a-f0-9]+ *\) *\] *\) *\( *_0x[a-f0-9]+ *=> *_0x[a-f0-9]+ *\[ *_0x[a-f0-9]+ *\( *0x[a-f0-9]+ *\) *\] *\( *_0x[a-f0-9]+/,/ *, *{ *('|")class('|") *: *\( *-? *0x[a-f0-9,_+*x-]+ *\[ *_0x[a-f0-9]+ *\( *0x[a-f0-9]+ *\) *\] *\) *\( *_0x[a-f0-9]+ *\( *0x[a-f0-9]+ *\) *\) *} *, *\[ *! *_0x[a-f0-9]+/]],s=[[/new *Map *\( *Object *\[ *_0x[a-f0-9]+ *\( *0x[a-f0-9]+ *\) *\] *\( *{ *('|")pretendard('|") *: *{ *('|")fontFamily('|") *: */,/('|")fontFamily('|") *: *_0x[a-f0-9]+ *\( *0x[a-f0-9]+ *\) *, *('|")styleUrl('|") *: *_0x[a-f0-9]+ *\( *0x[a-f0-9]+ *\) *, *('|")isGoogleFonts/,/('|")popper--wide('|") *: *_0x[a-f0-9]+ *\( *0x[a-f0-9]+ *\) *, *('|")popper__title('|") *: *_0x[a-f0-9]+ *\( *0x[a-f0-9]+ *\) *} *} *,/]],p=!1;a.Function.prototype.call=new Proxy(x,{apply(t,e,l){if(p)return r(t,e,l);p=!0;let n=String(e);return n.length<5e4&&!s.some(o=>o.every(f=>f.test(n)))&&c.filter(o=>o.filter(f=>f.test(n)).length===o.length).length===1?(console.debug(`[${i}]: Function.prototype.call called for PowerLink Skeleton:`,e),a.document.dispatchEvent(u),p=!1,r(t,()=>{},[])):(p=!1,r(t,e,l))}});let d=[[/\( *\) *=> *{ *var *_0x[0-9a-z]+ *= *a0_0x[0-9a-f]+ *; *this\[ *_0x[a-z0-9]+\( *0x[0-9a-f]+ *\) *\]\(\); *}/,/\( *\) *=> *{ *var *_0x[0-9a-z]+ *= *a0_0x[0-9a-f]+ *; *this\[ *_0x[a-z0-9]+\( *0x[0-9a-f]+ *\) *\]\(\); *}/],[/\( *\) *=> *{ *var _0x[a-z0-9]+ *= *_0x[a-z0-9]+ *; *if *\( *this\[ *_0x[a-z0-9]+ *\( *0x[0-9a-f]+ *\) *\] *\) *return *clearTimeout/,/\( *0x[0-9a-f]+ *\) *\] *\) *, *void *\( *this\[ *_0x[a-z0-9]+\( *0x[0-9a-f]+ *\) *\] *= *void *\([x0-9a-f*+-]+ *\) *\) *; *this\[_0x[a-z0-9]+\( *0x[0-9a-f]+ *\) *\] *\(\) *;/]];a.setTimeout=new Proxy(a.setTimeout,{apply(t,e,l){let n=String(l[0]);return d.filter(o=>o.filter(f=>f.test(n)).length>=1).length===1?(console.debug(`[${i}]: setTimeout called for PowerLink Skeleton:`,l[0]),r(t,e,[()=>{},0])):r(t,e,l)}}),a.document.addEventListener("PL2PlaceHolder",()=>{setTimeout(()=>{let t=new Set([...a.document.querySelectorAll("div[class] div[class] div[class] ~ div[class]")]);t=new Set([...t].filter(e=>e instanceof HTMLElement)),t=new Set([...t].filter(e=>Number(getComputedStyle(e).getPropertyValue("padding-top").replaceAll(/px$/g,""))>10)),t=new Set([...t,...[...t].flatMap(e=>[...e.querySelectorAll("*")])]),t=new Set([...t].filter(e=>e instanceof HTMLElement&&e.innerText.trim().length===0)),t=new Set([...t].filter(e=>Number(getComputedStyle(e).getPropertyValue("border-bottom-width").replaceAll(/px/g,""))>=.5)),t=new Set([...t].filter(e=>Number(getComputedStyle(e).getPropertyValue("border-left-width").replaceAll(/px/g,""))>=.5)),t=new Set([...t].filter(e=>Number(getComputedStyle(e).getPropertyValue("border-right-width").replaceAll(/px/g,""))>=.5)),t=new Set([...t].filter(e=>Number(getComputedStyle(e).getPropertyValue("border-top-width").replaceAll(/px/g,""))>=.5)),t=new Set([...t].filter(e=>[...e.querySelectorAll("*")].some(l=>{if(!(l instanceof HTMLElement))return!1;let n=l.getClientRects()[0]?.height??0,o=Number(getComputedStyle(l).getPropertyValue("margin-bottom").replaceAll(/px/g,""));return n===0?!1:o>=n*.75&&o<=n*1.25}))),console.debug(`[${i}]: Removing PowerLink Skeleton Containers:`,t);for(let e=0;e<t.size*5;e++)t.forEach(l=>{l.setAttribute("style","display: none !important;")})},2500),setTimeout(()=>{let t=new Set([...a.document.querySelectorAll("div[class] div[class] div[class] ~ div[class]")]);t=new Set([...t].filter(e=>e instanceof HTMLElement)),t=new Set([...t].filter(e=>Number(getComputedStyle(e).getPropertyValue("margin-bottom").replaceAll(/px$/g,""))>15||Number(getComputedStyle(e).getPropertyValue("padding-top").replaceAll(/px$/g,""))>20)),t=new Set([...t].filter(e=>e instanceof HTMLElement&&e.innerText.trim().length===0)),t=new Set([...t].filter(e=>[...e.querySelectorAll("*")].some(l=>l instanceof HTMLElement&&Number(getComputedStyle(l).getPropertyValue("padding-top").replaceAll(/px/g,""))>=5&&Number(getComputedStyle(l).getPropertyValue("padding-bottom").replaceAll(/px/g,""))>=5&&Number(getComputedStyle(l).getPropertyValue("padding-left").replaceAll(/px/g,""))>=5&&Number(getComputedStyle(l).getPropertyValue("padding-right").replaceAll(/px/g,""))>=5))),console.debug(`[${i}]: Removing PowerLink Skeleton Containers:`,t);for(let e=0;e<t.size*5;e++)t.forEach(l=>{l.setAttribute("style","display: none !important;")})},2500)})}m(g);})();
|
|
26
26
|
/*!
|
|
27
27
|
* @license MPL-2.0
|
|
28
28
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
package/dist/index.js
CHANGED
|
@@ -87,9 +87,11 @@ export function RunNamuLinkUserscript(BrowserWindow, UserscriptName = 'NamuLink'
|
|
|
87
87
|
return PL2TitleMarginBottom >= PL2TitleHeight * 0.75 && PL2TitleMarginBottom <= PL2TitleHeight * 1.25;
|
|
88
88
|
})));
|
|
89
89
|
console.debug(`[${UserscriptName}]: Removing PowerLink Skeleton Containers:`, ContainerElements);
|
|
90
|
-
ContainerElements.
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
for (let I = 0; I < ContainerElements.size * 5; I++) {
|
|
91
|
+
ContainerElements.forEach(Container => {
|
|
92
|
+
Container.setAttribute('style', 'display: none !important;');
|
|
93
|
+
});
|
|
94
|
+
}
|
|
93
95
|
}, 2500);
|
|
94
96
|
setTimeout(() => {
|
|
95
97
|
let ContainerElements = new Set([...BrowserWindow.document.querySelectorAll('div[class] div[class] div[class] ~ div[class]')]);
|
|
@@ -103,9 +105,11 @@ export function RunNamuLinkUserscript(BrowserWindow, UserscriptName = 'NamuLink'
|
|
|
103
105
|
Number(getComputedStyle(Child).getPropertyValue('padding-left').replaceAll(/px/g, '')) >= 5 &&
|
|
104
106
|
Number(getComputedStyle(Child).getPropertyValue('padding-right').replaceAll(/px/g, '')) >= 5))));
|
|
105
107
|
console.debug(`[${UserscriptName}]: Removing PowerLink Skeleton Containers:`, ContainerElements);
|
|
106
|
-
ContainerElements.
|
|
107
|
-
|
|
108
|
-
|
|
108
|
+
for (let I = 0; I < ContainerElements.size * 5; I++) {
|
|
109
|
+
ContainerElements.forEach(Container => {
|
|
110
|
+
Container.setAttribute('style', 'display: none !important;');
|
|
111
|
+
});
|
|
112
|
+
}
|
|
109
113
|
}, 2500);
|
|
110
114
|
});
|
|
111
115
|
}
|