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

Filler

Filler

6'3 21″
Joined
Dec 6, 2024
Posts
702
Reputation
1,524
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: BonesmashFinalBoss, Hernan, Decha and 8 others
@short ginger ugly @wsada @itzyaboyJJ
 
  • +1
Reactions: loyolaxavvierretard, Underdog9494 and Deleted member 137871
over when people start using my scripts and see how much they rot
 
  • +1
Reactions: loyolaxavvierretard, Underdog9494 and Deleted member 137871
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
  • +1
Reactions: eyewideshut and Underdog9494
make a script to change the site's appearance to something much cooler
 
  • +1
  • Love it
Reactions: flambria, Vultus Tui Res, loyolaxavvierretard and 1 other person
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: flambria and 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: menas, Greypiller, Filler and 1 other person
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
how can i use the second one?
Simply make the script, copy that shit. And under the looksmax.org logo it should be a timer
 
  • +1
Reactions: IOS
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
@imontheloose i'm stealing the last script.
 
  • JFL
  • So Sad
Reactions: imontheloose and Filler
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
second one also on a second note.
 
  • +1
Reactions: Filler
  • +1
Reactions: Filler
  • +1
Reactions: imontheloose
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
I can see my time cause I use mobile
 

Attachments

  • IMG_3920.jpeg
    IMG_3920.jpeg
    30.6 KB · Views: 0
if you're inclined to do so and serious about it. @imontheloose +1?
We really don't need it TBH. Is @warmth still on the project with us? Nonetheless, we have a decent base.

What can he possibly contribute else that you, I, or @warmth couldn't do?
 
  • +1
Reactions: Hernan
We really don't need it TBH. Is @warmth still on the project with us?
apparently not. still got the files he made.
Nonetheless, we have a decent base.

What can he possibly contribute else that you, I, or @warmth couldn't do?
nothing, but it will cost a lot less time. current coders is just you and me now so i reckon its good that he joins us and helps.
whats the ET of completion you think?
 
  • +1
Reactions: imontheloose
apparently not. still got the files he made.
That's a shame. I liked that guy.

nothing, but it will cost a lot less time. current coders is just you and me now so i reckon its good that he joins us and helps.
whats the ET of completion you think?
Too many cooks spoil the broth. I doubt he is needed.

You can always add him and see if he does anything valuable. I will probably be able to do a lot of it on my own including telling you what is needed.

ET probably a few weeks perhaps.
 
  • +1
Reactions: Hernan
That's a shame. I liked that guy.
true.
Too many cooks spoil the broth. I doubt he is needed.

You can always add him and see if he does anything valuable.
yes @Filler if you still want to help, we're open for you.
I will probably be able to do a lot of it on my own including telling you what is needed.
good. (y)
ET probably a few weeks perhaps.
hmmm, thats pretty ok.
 
  • +1
Reactions: imontheloose
@ @Filler if you still want to help, we're open for you.
What will my position involve? What programming languages etc...
 
  • JFL
  • +1
Reactions: Clavicular and Hernan
What will my position involve? What programming languages etc...
anything needed at that moment, javascript/node/AWS/HTML.
 
Get a script that hide all the dnr comments, it blocks real info. :feelsautistic:
And a new theme would be amazing, preferably dark theme.
 

Similar threads

BigJimsWornOutTires
Replies
6
Views
91
BigJimsWornOutTires
BigJimsWornOutTires
turneywest
Replies
161
Views
3K
rybxxz
rybxxz
phenylpiracetam
Replies
23
Views
2K
jqckeyy
jqckeyy

Users who are viewing this thread

Back
Top