server ver

This commit is contained in:
w0bm
2022-06-20 16:45:36 +00:00
parent addc1309c1
commit 0a6492baa2
5 changed files with 28 additions and 9 deletions

View File

@@ -17,6 +17,9 @@ return [
'catbox.moe' => [ 'catbox.moe' => [
'/^files\.catbox\.moe$/' '/^files\.catbox\.moe$/'
], ],
'tenor.com' => [
'/^c\.tenor\.com$/'
],
'pr0gramm.com' => [ 'pr0gramm.com' => [
'/^img\.pr0gramm\.com$/' '/^img\.pr0gramm\.com$/'
], ],
@@ -24,7 +27,8 @@ return [
'/^files\.nogf\.club$/', '/^files\.nogf\.club$/',
'/^f0ck\.space$/', '/^f0ck\.space$/',
'/^nogf\.club$/', '/^nogf\.club$/',
'/^f0ck\.it$/' '/^f0ck\.it$/',
'/^tenor\.com$/',
] ]
], ],
'allowedImageFileExtensions' => [ 'allowedImageFileExtensions' => [

View File

@@ -4187,3 +4187,9 @@ pre {
color: gray; color: gray;
font-family: vcr; font-family: vcr;
} }
.copyright {
position: fixed;
bottom: 0;
opacity: 0.2;
}

View File

@@ -1422,9 +1422,11 @@ function draw( video, thecanvas, img ){
// Vielen Dank an Flummi! // Vielen Dank an Flummi!
// This code snippet makes full and valid urls clickable in the info box! // This code snippet makes full and valid urls clickable in the info box!
const infoboxContent = document.querySelector("button#infobox"); //const infoboxContent = document.querySelector("button#infobox");
if(infoboxContent) //if(infoboxContent)
infoboxContent.dataset.content = infoboxContent.dataset.content.replace(/(https?:\/\/[^\s]+)/g, "<a href='$1' target='_blank' rel='extern'>$1</a>"); // infoboxContent.dataset.content = infoboxContent.dataset.content.replace(/(https?:\/\/[^\s]+)/g, "<a href='$1' target='_blank' rel='extern'>$1</a>");
// uncommenting this because of problematic replacement and possible abuse
//This was supposed to work for urls that are not in a correct url-sheme such as z0r.de/1337 but ehm itz out of biz cuz uhm xD https://f0ck.it/uploads/%5B2019%5D_firefox_YapokIcyShoveler.png //This was supposed to work for urls that are not in a correct url-sheme such as z0r.de/1337 but ehm itz out of biz cuz uhm xD https://f0ck.it/uploads/%5B2019%5D_firefox_YapokIcyShoveler.png
//infoboxContent.dataset.content = infoboxContent.dataset.content.replace(/((https?:\/\/)?[\w-]+(\.[\w-]+)+\.?(:\d+)?(\/\S*)?)?/gi, "<a href='$1'>$1</a>"); //infoboxContent.dataset.content = infoboxContent.dataset.content.replace(/((https?:\/\/)?[\w-]+(\.[\w-]+)+\.?(:\d+)?(\/\S*)?)?/gi, "<a href='$1'>$1</a>");

View File

@@ -1981,3 +1981,10 @@ ol, ul, dl {
p.comment { p.comment {
word-wrap: break-word; word-wrap: break-word;
} }
.dropdown-menu.LinksGrid.show {
display: grid;
grid-template-rows: auto;
grid-template-columns: min-content;
min-width: auto;
}

View File

@@ -176,8 +176,8 @@
<a href="/privacy">Privacy</a> | <a href="/contact">Contact</a> | <a href="/irc">IRC</a> <a href="/privacy">Privacy</a> | <a href="/contact">Contact</a> | <a href="/irc">IRC</a>
</div> </div>
</div> </div>
<div hidden class="testthumbnailslol"> <div class="copyright">
The w0bm.com Logo is copyrighted and owned by w0bm.com
</div> </div>
</div> </div>
@endif @endif