From d22046e73081a4535ed505fb9208f35fef7845ce Mon Sep 17 00:00:00 2001 From: octospacc Date: Thu, 12 Sep 2024 01:54:22 +0200 Subject: [PATCH] Auto-Backup $'Thu Sep 12 2024 01:34:19 GMT+0200 (Central European Summer Time)' --- .CopyFromServer.sh | 5 ++- LumaBmp2NinJpgConvert.php | 22 ++++++++++++ Res/OcttComments.js | 46 ++++++++++++++++++++++++ error.php | 75 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 147 insertions(+), 1 deletion(-) create mode 100755 LumaBmp2NinJpgConvert.php create mode 100644 Res/OcttComments.js create mode 100755 error.php diff --git a/.CopyFromServer.sh b/.CopyFromServer.sh index 9994c53..8f15c0b 100755 --- a/.CopyFromServer.sh +++ b/.CopyFromServer.sh @@ -1,3 +1,6 @@ #!/bin/sh +mkdir ./Res prefix=/Main/Server/www/Drive/Misc/Scripts -cp $prefix/MemosViewer.php $prefix/MemosYacyBridgeCreate.php ./ +cp $prefix/* ./ +cp $prefix/Res/* ./Res/ +#cp "${prefix}/MemosViewer.php" "${prefix}/MemosYacyBridgeCreate.php" ./ diff --git a/LumaBmp2NinJpgConvert.php b/LumaBmp2NinJpgConvert.php new file mode 100755 index 0000000..8d601c0 --- /dev/null +++ b/LumaBmp2NinJpgConvert.php @@ -0,0 +1,22 @@ + `${prop[0]}=${encodeURIComponent(prop[1])}`).join('&')); +/* +const pageSlug = 'it/miscellanea/Sul-sitoctt/'; +const pageUrl = ('https://sitoctt.octt.eu.org/' + pageSlug); +const frameUrl = ('https://giscus.app/it/widget?' + Object.entries({ + origin: pageUrl, + theme: 'noborder_light', + reactionsEnabled: 1, + emitMetadata: 0, + inputPosition: 'top', + repo: 'octospacc/sitoctt', + repoId: 'R_kgDOHbCR4A', + category: 'Comments', + categoryId: 'DIC_kwDOHbCR4M4CiAIZ', + strict: 1, + backLink: pageUrl, + term: pageSlug, +}).map(prop => `${prop[0]}=${encodeURIComponent(prop[1])}`).join('&')); */ +const frameHtml = (await (await fetch(frameUrl)).text()) + .replace('', ` + + `) + .replace('', ` +

Please enable JavaScript for + ${data.baseUrl.split('//')[1].split('/')[0]} + and giscus.app to post.

`); +const frameWindow = (new JSDOM(frameHtml, { url: frameUrl, runScripts: "dangerously", resources: "usable" })).window; +while (!frameWindow.document.querySelector('form')) { + (await (new Promise(resolve => setTimeout(resolve, 100)))); +}; +const result = frameWindow.document.documentElement.outerHTML; +console.log(result); +})(); diff --git a/error.php b/error.php new file mode 100755 index 0000000..d04c63f --- /dev/null +++ b/error.php @@ -0,0 +1,75 @@ + + (Are you were not looking for my real web site very likely? + www.octt.eu.org) +

'; +?> + + + + + + <?php print $_GET['code'] ?> + + + +
+

+ When if you have eliminaminated the Java Script, the what ever remains. + Nothing more than of composes the empty page, so nothing is more consumed. + Relax yourself to the HTML silence. +

+
+ +
+ + +