
Filler
6'3 21″
- Joined
- Dec 6, 2024
- Posts
- 671
- Reputation
- 1,435
Hello Looksmax.org, in this thread I will list all scripts I made for the forum (since @Master doesn't add them).
This list will get updated regulary:
- Time Spent
- Hide NSFW threads (SFW.org)
After you downloaded TamperMonkey, which script you like:
(And create a new script each time then save and repeat for every script I make)
I know this it's disappointing to see only 2 scripts, please give me ideas in replies. I will try to keep this thread updated with new stuff
This list will get updated regulary:
- Time Spent
- Hide NSFW threads (SFW.org)
1. Download Tamper Monkey for your browser:
Tamper monkey is a extension that allows you to easily manage all your scripts (eg: turn them on/off, edit, add scripts)
Click below to download for each browser:
Google Chrome
Microsoft Edge
Mozilla Firefox
Apple Safari
2. Click on it in the extension tab, and select "Create new script":
3. Delete all the default code, and paste my code from below this spoiler, repeat this process for every script I make
Tamper monkey is a extension that allows you to easily manage all your scripts (eg: turn them on/off, edit, add scripts)
Click below to download for each browser:
Google Chrome
Microsoft Edge
Mozilla Firefox
Apple Safari
2. Click on it in the extension tab, and select "Create new script":

3. Delete all the default code, and paste my code from below this spoiler, repeat this process for every script I make
(And create a new script each time then save and repeat for every script I make)
JavaScript:
// ==UserScript==
// @name SFW.org
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Remove NSFW threads from Looksmax.org
// @author Looksmax.org/@Filler
// @match https://looksmax.org/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
function remove() {
document.querySelectorAll('span.label--custom-nsfw').forEach(span => { // NSFW thread tag
let thread = span.closest('.structItem');
if (thread) {
thread.remove();
}
});
}
remove();
// dinamically removes threads (AJAX)
const observer = new MutationObserver(() => {
remove();
});
observer.observe(document.body, { childList: true, subtree: true });
})();
JavaScript:
// ==UserScript==
// @name Looksmax.org Time Spent
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Tracks how much time you spent on the website
// @author Looksmax.org/@Filler
// @match https://looksmax.org/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
function format(sec) { // Format time (HH:MM:SS}
const hours = Math.floor(sec / 3600);
const minutes = Math.floor((sec % 3600) / 60);
const secs = sec % 60;
return `${String(hours).padStart(2, '0')}:${String(minutes).padStart(2, '0')}:${String(secs).padStart(2, '0')}`;
}
// Puts text under logo
const logo = document.querySelector('img[alt="Looksmax.org - Men\'s Self-Improvement & Aesthetics"]');
if (logo) {
const timediv = document.createElement('div');
timediv.id = 'time-spent';
timediv.style.fontSize = '14px';
timediv.style.fontWeight = 'bold';
timediv.style.marginTop = '10px';
timediv.style.textAlign = 'center';
logo.parentElement.appendChild(timediv);
let spent = parseInt(localStorage.getItem('timeSpent')) || 0; // stores the time in localStorage
function upd() {
spent++;
localStorage.setItem('timeSpent', spent);
timediv.textContent = `Time Spent: ${format(spent)}`;
}
setInterval(upd, 1000);
upd();
}
})();
I know this it's disappointing to see only 2 scripts, please give me ideas in replies. I will try to keep this thread updated with new stuff

@St.Rotter @Underdog9494 @Greypiller @moggerofhumanity @Jonas2k7
Last edited: