[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/vip/ - Very Important Posts

Name
Spoiler?[]
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File[]
Draw Size ×
  • Please read the Rules and FAQ before posting.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: mfw the sharty reset.jpg (98 KB, 1055x1280)
98 KB
98 KB JPG
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]
>>
>>136393
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



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.