Thread 136393 - /vip/

Anonymous
5/11/2025, 7:54:53 AM No.136393
mfw the sharty reset
mfw the sharty reset
md5: 86fc57e5c62dc68321802566f7fa3f6f🔍
I made a userscript that makes the pass more elegant (removes "You are using a 4chan pass" and adds a button to toggle your since4pass. 4chan devs are free to steal this idea.
[code]
// ==UserScript==
// @name 4chan pass script
// @namespace localhost
// @include *://boards.4chan.org/*
// @version 1
// @grant GM_addStyle
// @grant unsafeWindow
// @run-at document-end
// ==/UserScript==

function toggleSince4pass(ev) {
const options = document.forms.post.email;
if (/since4pass/.test(options.value)) {
options.value = options.value.replaceAll('since4pass', '');
ev.target.style.opacity = "0.5";
} else {
options.value+= 'since4pass';
ev.target.style.opacity = "1";
}
}

if (unsafeWindow.passEnabled) {
const formcaptcha = document.getElementById('captchaFormPart');
if (formcaptcha !== null) {
formcaptcha.style.display = 'none';
}
const submit = document.querySelector('#postForm [type="submit"]');
if (submit !== null) {
const options = document.forms.post.email;
submit.parentElement.style.whiteSpace = 'nowrap';
const pass = document.createElement('SPAN');
pass.classList.add('n-pu');
pass.style.opacity = '0.75';
pass.style.cursor = 'pointer';
pass.onclick = toggleSince4pass;
submit.insertAdjacentElement('afterend', pass);
options.addEventListener('input', () => {
pass.style.opacity = /since4pass/.test(options.value) ? '1' : '0.75';
});
}
}
[/code]
Replies: >>136409
Anonymous
5/13/2025, 12:18:12 PM No.136409
>>136393 (OP)
could you make a script that automatically tries to log in when i think i'm passposting but for some reason i'm unlogged? It's so annoying when you change IPs and
>This pass has been in use by another IP
>Try again in 15 minuten
then you go log in and it logs in just fine

the algorithm would be
>...trying to post...
>if there is a pass error while posting, try to log in again and keep the post attempt going
>otherwise error as normal