Skip to content

Instantly share code, notes, and snippets.

View d3cline's full-sized avatar
🎯
Focusing

John Spounias d3cline

🎯
Focusing
View GitHub Profile
<a href="//dobbs.town/@Homoevolutis0&quot;&gt;Mastodon&lt;/a&gt;">&lt;a rel="me" href="https://dobbs.town/@Homoevolutis0"&gt;Mastodon&lt;/a&gt;</a></p><p> </p><p>&lt;a rel="me" href="https://dobbs.town/@Homoevolutis0"&gt;Mastodon&lt;/a&gt;</p></div>
@d3cline
d3cline / bookstack.txt
Last active January 6, 2023 19:02
How to build BookStack on Opalstack.
Prefece: BookStack is seemingly a normal laravel app.
This means you need to check it out to a directory someplace,
install its deps, config the DB, and point a symlink apache app to the 'public' sub directory.
Create a new OSUser for this app to live in, it makes deployment a little easier.
Shell commands,
mkdir ~/src
cd ~/src
@d3cline
d3cline / gist:7dd28808e45d1bb1d7fb01d4f3b6830a
Created October 2, 2023 04:59
Kill 'Suggested for you' from FB
function changeColorOfSuggestedForYou(parentLevels = 0) {
let spans = document.querySelectorAll('span[dir="auto"]');
for (let span of spans) {
if (span.textContent.trim() === 'Suggested for you') {
span.style.color = 'red';
let parent = span;
for (let i = 0; i < parentLevels; i++) {
parent = parent.parentElement;
if (parent && parent.tagName.toLowerCase() === 'div') {