That fucking AHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH thread ruins the /general/thread catalogue for me, I can't see the right side of the table because of it. The date is pretty useless anyway, it's not even a creation date, but a last post date.
Fixed the katalog look, for Pseud0ch style. Install one of those.
https://github.com/openstyles/stylus
https://addons.mozilla.org/en-US/firefox/addon/styl-us/
/* ==UserStyle==
@name 4-ch.net better katalog
@description eh
@author eh
==/UserStyle== */
body.backlogpage {
background: #EFEFEF;
}
body.backlogpage #oldthreadlist {
background: #EFEFEF;
}
body.backlogpage #oldthreadlist tbody tr > td:nth-child(2) {
max-width: 512px;
word-wrap: break-word;
}
body.backlogpage #threads {
background: inherit;
}
So, is anyone here? Can we open a sekrit klub now, or this is merely an online notepad?
I really like the ability to only load a range of posts. This site doesn't really needs an api, it is simplistic enough by design, parsing html isn't that much harder than parsing json or whatever.
I need a livecd, what I should use? I'm thinking of downloading ubuntu livecd and put it on a usb stick, but I'm not sure if ubuntu can read windows hard drives well.
we get like 5 posts per day lol but it is still usable and i come here daily/bi-daily
>>88
linux mint. you can then personalise it later, but it is a good starting point
Megamari Replay Viewer
I'm talking about it here because it's rare for me to see an assembly program in the wild.
Guy who made it had to read Megamari assembly code, so he made replay viewer in assembly too just by inertia.
https://en.touhouwiki.net/wiki/MegaMari
https://www.mediafire.com/file/aqd6v8797vga8o6/Megamari_Replay_Viewer.zip/file
https://en.touhouwiki.net/wiki/Category:MegaMari_Replays
Code looks something like this:
ReplayFileProc:
mov ecx,iMegamariReplayCounter
cmp bRecordMode,TRUE
je WriteFileProc
add iMegamariReplayOffset,ecx
mov eax,iMegamariReplaySize
sub eax,iMegamariReplayOffset
cmp eax,REPLAY_FILE_BUFFER_SIZE
jbe @f
mov eax,REPLAY_FILE_BUFFER_SIZE
@@:
push eax
invoke SetFilePointer,hMegamariReplayFile,iMegamariReplayOffset,NULL,FILE_BEGIN
pop eax
invoke ReadFile,hMegamariReplayFile,lpMegamariReplayBuffer,eax,ADDR dwNumberOfBytesRead,NULL
test eax,eax
jz AccessDenied
retn
WriteFileProc:
push ecx
invoke SetFilePointer,hMegamariReplayFile,iMegamariReplayOffset,NULL,FILE_BEGIN
invoke WriteFile,hMegamariReplayFile,lpMegamariReplayBuffer,iMegamariReplayCounter,ADDR dwNumberOfBytesRead,NULL
pop ecx
add iMegamariReplayOffset,ecx
test eax,eax
jz AccessDenied
retn
>>62
This drops it's dlls into C:/Windows/System32, if we never meet again this is why
>>62
Tried this, it actually displays ads. How very japanese. Well, guess what I'm not going to use.
https://github.com/Open-Shell/Open-Shell-Menu
This thing is good
Made violentmonkey script that adds previews for /img/ links right into the page. Turning textboard into imageboard. I need to figure out how to turn imageboards into textboards next, I know that I can just disable images completely, but that also disables captcha.
// ==UserScript==
// @name 4-ch.net image previews
// @namespace Violentmonkey Scripts
// @match https://4-ch.net/*
// @grant none
// @version 1.0
// @author -
// @description Adds image previews for /img/ links.
// ==/UserScript==
function load_html(evt) {
var iterthis = document.getElementsByTagName("a")
if (!iterthis) return
for (var i = 0; i < iterthis.length; i++) {
var a = iterthis[i]
if (a.href.startsWith("https://4-ch.net/img/src/")) {
var filename = a.href.substring("https://4-ch.net/img/src/".length)
var index = filename.lastIndexOf(".")
filename = filename.substring(0, index)
//alert(filename)
var img = document.createElement("img")
img.src = "https://4-ch.net/img/thumb/" + filename + "s.jpg"
var br = document.createElement("br")
var nexta = document.createElement("a")
nexta.href = a.href
nexta.rel = "noreferrer noopener nofollow"
nexta.target = "_blank"
add_after(a, br)
add_after(a, nexta)
nexta.appendChild(img)
add_after(a, br)
i+=1 //skipping over "a" we just created
}
}
}
function add_after(referenceNode, newNode) {
referenceNode.parentNode.insertBefore(newNode, referenceNode.nextSibling)
}
window.addEventListener('DOMContentLoaded', load_html, false)
Made greasemonkey script to make browsing 5ch slightly less annoying. I suspect that the old style redirect exists mostly to show ads.
// ==UserScript==
// @name 5ch.net less annoying links
// @namespace Violentmonkey Scripts
// @match https://*.5ch.net/*
// @grant none
// @version 1.0
// @author -
// @description Make links slightly less annoying to open
// @run-at document-start
// ==/UserScript==
//https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types/noreferrer
//https://www.reliablesoft.net/noreferrer-noopener/
//<a href="somelink" rel="noreferrer noopener" target="_blank">
function load_html(evt) {
var iterthis = document.getElementsByTagName("a")
if (!iterthis) return
for (var i = 0; i < iterthis.length; i++) {
var a = iterthis[i]
//alert(a.href)
if (a.href.startsWith("http://jump.5ch.net/?")) {
a.href = a.href.substring("http://jump.5ch.net/?".length)
} else if (a.href.startsWith("https://jump.5ch.net/?")) {
a.href = "http://" + a.href.substring("https://jump.5ch.net/?".length)
}
}
}
window.addEventListener('DOMContentLoaded', load_html, false)
Hm, to get a thumbnail for https://i.imgur.com/gTIU1UVh.jpg , you replace the last h with t
https://i.imgur.com/gTIU1UVt.jpg
imgur thumbnail
https://webapps.stackexchange.com/questions/16103/is-it-possible-to-find-the-thumbnail-of-an-existing-imgur-image
Guys, http or https? Imgur supports both. Https is encrypted, so it's harder for middleman to read what you are reading. But because it is encrypted, online caching doesn't work anymore. For mails and other such matters encryption is a must, but for funny images it probably isn't that necessary?
updated qbittorrent, now it lags horribly. Especially when you download around 200 files at once, I have to keep downloads to about 10 files at the time for it to be tolerable. The UI itself lags. Fuck I hate Qt.
Next I need a way to hide threads, and to give threads you like priority over others.
I know, right? Doesn't require an email, loads very fast, somebody actually reads it. The downside is that anyone can shit it up if he really wants to.
Blogging is the only thing dead boards are good for. And even that barely.
How do I link posts 97-100 without adding op? Something like >>n97-100?
Added ajax like [peak-] button. Now I don't have to open each thread individually.
https://4-ch.net/img/src/1646166409855.jpg
Will maybe upload it after I test it for a bit.
http://rufus.ie/en/
tool for creating bootable usb, both windows and linux
Thinking of making a way to hide threads. I just did a lazy thing and set height:3em and overflow:hidden.
height 3em https://4-ch.net/img/src/1647106923434.jpg
height 1.25em https://4-ch.net/img/src/1647107204253.jpg
Nobody reads threads that aren't on first page, pitiful.
Is kareha unable to close a thread rather than permasaging or deleting it?
really?
cuz ieed to ask about voxel modelling
I think I will move to /tech/ after all. Maybe I'll still use this thread occasionally.
I'll post everything javascript and violentmonkey script related into https://4-ch.net/tech/kareha.pl/1637254723/l50 Javascript and webdev thread, and general questions into https://4-ch.net/tech/kareha.pl/1125953617/l50 [HELP] Single questions & Help Thread [n00b].
https://www.youtube.com/watch?v=5n90WohCSIg
Ross's Game Dungeon: Follow-up Episode #3
11:35 has an interesting explanation of how Microsoft was intentionally killing PC gaming for 15 years in hopes that xbox will catch on.
I've looked a bit into godot, and it is an interesting game engine that seems at its best when making mobile 2d games with advanced 2d animation, and also allowing to play such mobile games natively. Of course making separate native application for every platform will produce a more high quality software, but I doubt your players even notice the difference.
I wonder how perl is compared to python. Python looks more comfortable to use, but maybe perl itself is less complicated than python under the hood? I haven't seen source code of either.
>>124
They both also have a half-baked OOP support (unlike Ruby!) Perl also has great regex support and the PerlMonks community. However, Python community is larger overall. All Python, Ruby and Perl are pretty easy to learn.
sagenoko works like sage, but still throws me at the board page.
How about nokosage?