No banners, make a banners thread

/jp/ - Japanese Culture

Cooking Bird


New Reply on thread #699
X
Max 20 files0 B total
[New Reply]

Index | Catalog | Banners | Logs
Posting mode: Reply [Return]


 >>/1238/
I think you only need to put dumploop.lua and the copyff directory in your scripts directory, and comment out ctrl+c in input.conf. I really only use the a,b loop keys, ctrl+a, and ctrl+c all the time. I don't use the transcoding commands anymore since I hate losing quality. Feel free to ask questions.
thumbnail of aupay.komaki.01:36:15.500.jpg
thumbnail of aupay.komaki.01:36:15.500.jpg
aupay.koma... jpg
(289.81 KB, 1080x1920)
 >>/1241/
I finally installed it into its own config directory separate from my main mpv config, and I wrote a little helper script to help me invoke mpv with that config.
/.local/bin/pta

#!/bin/sh
exec mpv --config-dir="$HOME/.config/mpv_conf" $@

I'll have to practice using it later.  The first surprise was that you moved quit to capital Q to make accidental quitting harder.  I Ctrl-C'd to quit the first couple of times.
 >>/1248/
I have 32GB of RAM on my machine, and something in the page brought it down to 0.  I was hoping Linux's OOM killer would kill a process and make the machine responsive again.  Maybe it did, because after a little bit, it came back to like 1 or 2GB of free memory, and then I closed out the magtherea tabs.

The feature that I really wanted was the ability to hover over an image or video to display it.  Unfortunately, that wasn't working for me (while using Floorp, a Firefox derivative).  Another feature I'd like is syntax highlighting for code blocks, but that's not that important for this board.
 >>/1262/
Well the project is here:
https://gitgud.io/odilitime/lynxphp/
Although Magrathea is less relevant since it is always outdated by a couple of steps and it is hacked on top of vanilla Endchan's backend (doesn't uses its native DoublePlus backend).
Feel free to open a Magra related thread on >>>/operate/ or you can reach out on Odilitime's Discord (link is on the navbar of the homepage).
thumbnail of Screenshot 2025-08-26 at 17-43-12 _jp_ - _faaag_ - Female Announcer and Alternative General #119.2.png
thumbnail of Screenshot 2025-08-26 at 17-43-12 _jp_ - _faaag_ - Female Announcer and Alternative General #119.2.png
Screenshot 2025-08-26... png
(428.2 KB, 1815x1188)
 >>/1261/
I just whipped up a userscript that implements a way to display images on hover.  It doesn't do videos yet.  This is a quick proof-of-concept.

// UserScript
// @name        endchan.org media on hover
// @namespace   Violentmonkey Scripts
// @match       https://endchan.org/*/res/*.html*
// @grant       none
// @version     1.0
// @author      -
// @description Display media by hovering over it.
// /UserScript

function createHoverMediaContainer() {
  const div = document.createElement("div")
  div.id = "hoverMedia"
  const img = document.createElement("img")
  div.appendChild(img)
  return div
}

function displayOnHover(ev) {
  const target = ev.target
  const parent = target.parentElement
  const hover = document.getElementById("hoverMedia")
  const hoverImg = hover.querySelector("img")

  //console.log(target, parent)
  if (target.tagName  "IMG" && parent.classList.contains("imgLink")) {
    hoverImg.src = parent.href
    hover.classList.add("enabled")
  }
}

function hideOnLeave(ev) {
  const target = ev.target
  const parent = target.parentElement
  const hover = document.getElementById("hoverMedia")
  const hoverImg = hover.querySelector("img")

  if (target.tagName  "IMG" && parent.classList.contains("imgLink")) {
    hoverImg.src = parent.href
    hover.classList.remove("enabled")
  }
}

const css = `
#hoverMedia {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
}

#hoverMedia.enabled {
  display: block;
}

#hoverMedia img {
  max-width: 100vw;
  max-height: 100vh;
}
`

// Add CSS
let style = document.createElement("style");
style.type = "text/css";
style.appendChild(document.createTextNode(css));
document.head.appendChild(style);

// setup container for image
document.body.append(createHoverMediaContainer())

// setup event handlers
document.addEventListener('mouseover', displayOnHover)
document.addEventListener('mouseout', hideOnLeave)


Post(s) action:


Moderation Help
Scope:
Duration: Days

Ban Type:


535 replies | 808 file
New Reply on thread #699
Max 20 files0 B total