Collection of my scripts megathread (SFW threads only, Time Spent) BetterLooksmax.org

Filler

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)

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":
1745086569915


3. Delete all the default code, and paste my code from below this spoiler, repeat this process for every script I make
After you downloaded TamperMonkey, which script you like:
(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 :ogre:
Cracking Up Lol GIF


@St.Rotter @Underdog9494 @Greypiller @moggerofhumanity @Jonas2k7
 
Last edited:
  • +1
Reactions: Vultus Tui Res, emeraldglass, loyolaxavvierretard and 4 others
@short ginger ugly @wsada @itzyaboyJJ
 
  • +1
Reactions: loyolaxavvierretard, Underdog9494 and short ginger ugly
over when people start using my scripts and see how much they rot
 
  • +1
Reactions: loyolaxavvierretard, Underdog9494 and short ginger ugly
forum legend
 
  • +1
Reactions: loyolaxavvierretard and Underdog9494
Scripts for what purpose exactly?
 
  • +1
Reactions: loyolaxavvierretard, Underdog9494, eternalcoper and 1 other person
1745088122673
 
  • +1
Reactions: emeraldglass, loyolaxavvierretard and Underdog9494
Doing all of this for a dead site
 
  • JFL
Reactions: Underdog9494
make a script to change the site's appearance to something much cooler
 
  • +1
Reactions: Vultus Tui Res, loyolaxavvierretard and Underdog9494
Scripts for what purpose exactly?
it was stated in the thread
they are there to block nsfw threads and also show how much time you spend on the forum
 
  • +1
Reactions: emeraldglass, loyolaxavvierretard, Underdog9494 and 1 other person
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)

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":
View attachment 3662625

3. Delete all the default code, and paste my code from below this spoiler, repeat this process for every script I make
After you downloaded TamperMonkey, which script you like:
(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 :ogre:
Cracking Up Lol GIF


@St.Rotter @Underdog9494 @Greypiller @moggerofhumanity @Jonas2k7
Violentmonkey mogs
I think
 
  • +1
Reactions: loyolaxavvierretard
Make a script that can automatically post a given line of text or image or gif in a post if enough keywords fit in the title. Very demanding and challenging
 
it was stated in the thread
they are there to block nsfw threads and also show how much time you spend on the forum
It would be even better if he could add a feature that lets users set a time limit, so after spending a certain amount of time on the forum, it becomes inaccessible for the next 24 hours. A lot of users could benefit from that. For example, I set mine to a maximum of 1 hour per day. When I have 20 minutes left, I get a warning, and once the hour is up, the site locks me out automatically for the next 24 hours.
 
  • +1
Reactions: Greypiller, Filler and Vultus Tui Res
I made a script with ChatGPT

bettER

challangER



ovER
 
ovER ovER ovER ovER ovER ovER ovER
 
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)

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":
View attachment 3662625

3. Delete all the default code, and paste my code from below this spoiler, repeat this process for every script I make
After you downloaded TamperMonkey, which script you like:
(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 :ogre:
Cracking Up Lol GIF


@St.Rotter @Underdog9494 @Greypiller @moggerofhumanity @Jonas2k7
make a script to change the site's appearance to something much cooler

This!
 
  • +1
Reactions: Filler
It would be even better if he could add a feature that lets users set a time limit, so after spending a certain amount of time on the forum, it becomes inaccessible for the next 24 hours. A lot of users could benefit from that. For example, I set mine to a maximum of 1 hour per day. When I have 20 minutes left, I get a warning, and once the hour is up, the site locks me out automatically for the next 24 hours.
Thanks for the suggestion, tomorrow it should be released
 
  • Love it
Reactions: emeraldglass
It would be even better if he could add a feature that lets users set a time limit, so after spending a certain amount of time on the forum, it becomes inaccessible for the next 24 hours. A lot of users could benefit from that. For example, I set mine to a maximum of 1 hour per day. When I have 20 minutes left, I get a warning, and once the hour is up, the site locks me out automatically for the next 24 hours.
@Filler applied for some point for mod lol so he could forward these sort of suggestions but numb said no
 
  • +1
Reactions: emeraldglass and Filler

Similar threads

Jonas2k7
Replies
69
Views
865
spanishmog
spanishmog
enchanted_elixir
Replies
25
Views
719
maxximus
maxximus
stefthetics
Replies
30
Views
4K
thegiganigga
thegiganigga
Wombles
Replies
39
Views
466
whitebitchslayer
whitebitchslayer

Users who are viewing this thread

Back
Top