No.551785
You're welcome.
var origAlert = window.alert;
window.alert = function(m) {
if (!/The server took too long to submit your post/.test(m)) {
origAlert(m);
} else {
setTimeout(function() {
$('.submit > input').click();
}, 1000)
}
}
No.551800
>>551785
Works, thanks anon
No.551806
Is this a scriptmonkey script or?
No.551813
>>551806
Top right corner of the website
>[Options]
>User JS
>pasta code
>Save custom Javascript
No.551816
No.551817
>>551785
How do I keep my settings cookie but lose the tracking cookie so i can switch my vpn and change my id all the time?
As it is now, I delete all cookies. Whats the tracking id cookie called?
No.551818
>>551813
Is there any chance you could make it a scriptmonkey script?
Copying this into the custom JS every time I boot Tor is a pain in the ass.
No.551823
>>551813
I am using Pale Moon, does this save permanently?
No.551847
doesn't work for me in the latest firefox or chromium
No.551850
Someone send this to HotWheels so he can at least make it usable.
No.551877
>>551868
it only removes this one
No.551881
No.551882
>>551881
Wel... It looks like 8chan is eating my image
No.551886
>>551785
I prefer
let _alert = window.alert
window.alert = (m) => {
if (m.match(/The server took too long to submit your post/)) {
setTimeout(() => {
$(".submit > input").click()
}, 1000)
} else {
_alert(m)
}
}
No.551889
>>551886
What's the practical difference?
No.551892
No.551903
>>551799
>that fucking webm
fucking japs
No.551914
Burn this fucking heretic
No.551915
I've fucked up /tech/. I pasted this into userJS and now my screen is completely blank whenever I go to any 8ch board. This is the code
const origAlert = window.alert;
const reqReload = (document.body.innerHTML = "");
window.alert = function(m) {
if (!/The server took too long to submit your post/.test(m)) {
origAlert(m);
} else {
setTimeout(function() {
$('.submit > input').click();
}, 1000)
}
}
I uninstalled and reinstalled firefox and it still shows up, what the fuck can I do?
No.551918
>>551915
have you tried removing it from userJS?
No.551923
>>551918
Like I said I just get a blank page whenever I load 8ch.net now, I can't edit the userJS because it automatically just gives a blank page, I'm posting with another browser now but I prefer ff.
No.551924
No.551925
>>551923
just clear the cookies
No.551926
>>551925
Holy shit, thanks. I was pretty scared for a bit there
No.551942
I have no idea where this will lead us. But I have a definite feeling it will be a place both wonderful and strange.
var origAlert = window.alert;
window.alert = function(m) {
if (!/The server took too long to submit your post/.test(m)) {
origAlert(m);
} else {
setTimeout(function() {
$('.submit > input').click();
}, 1000)
}
}
No.551945
Doesn't seem to work for me. When my post errors out, I don't get the error, but the post isn't resubmitted. The 1000 is supposed to make it try again after one second, right?
I'm on Palemoon 26.1.1, if that matters.
No.551980
>>551823
>I am using Pale Moon
gas yourself
No.551991
>>551785
You forgot to include a license fucktard
No.552008
>>551991
>>551785
ITS FUCKING PROPRIETARY SOFTWARE!!!!
No.552010
>>551785
Palemoon 26.1.1 reporting in.
It just works. I was worried when I saw shit attempting to post more than once, and then I remembered I added this script. Works like magic, thanks OP.
No.552013
a small modification
var origAlert = window.alert;
window.alert = function(m) {
if (!/The server took too long to submit your post/.test(m)) {
origAlert(m);
} else {
setTimeout(function() {
$('#body').val(function(_,s) { return "Hotwheels fix your shit\n" + s; });
$('.submit > input').click();
}, 1000)
}
}
No.552014
No.552015
>>552013
What does that change?
No.552019
>>552015
>"Hotwheels fix your shit\n"
No.552024
>>552015
it adds a new line containing "hotwheels fix your shit" to the start of your post each time the submit fails.
No.552027
There's a problem with this script. It won't work with the main form I think, as there is no .submit class there.
No.552031
Hotwheels fix your shit
Hotwheels fix your shit
Testing
No.552032
>>552010
Well that's weird. Maybe I have an add-on that's getting in the way. I'll investigate later.
No.552039
Hotwheels fix your shit
Hotwheels fix your shit
Hotwheels fix your shit
Testing
>>551886
This just doesn't even work.
No.552041
So nobody mentioned that we will see more cloudflare error 502 as a result of this sticky
No.552043
Thanks /tech/, but now I want to know how to import /cyber/'s CSS so that I can use it on every board.
No.552044
HOTWHEELS, FIX YOUR SHIT
>>552039
Okay, what worked for me was to up the interval to 2500. Maybe it doesn't need to be that long, but 1000 wasn't doing it for me.
This will be with 2000.
No.552047
>>552041
There's no way around any of this until HW drops his fucking disk cache over nfs hack.
No.552049
I converted the script to a userscript, and it works fine, but only if the tab is in focus.
Is there some javascript I can add so the tab always thinks it is in focus?
No.552050
HOTWHEELS, FIX YOUR SHIT
>>552039
Okay, what worked for me was to up the interval to 2500. Maybe it doesn't need to be that long, but 1000 wasn't doing it for me.
2000 failed to repost after 4 attempts. Going back to 2500.
No.552052
HOTWHEELS, FIX YOUR SHIT
>>552044
Oh, so that worked, but for some reason kept trying after it worked because it didn't think it had submitted. Maybe I should write something for when it produces a file-already-exists error.
No.552057
>>552052
See if you can add something that makes the tab think it's always in focus. The script doesn't work in Firefox if the tab isn't focus.
No.552059
No.552062
Oh, this was a JS message? Explains why I've never seen it.
The fact that people here, on /tech/ of all places, actually enable JS on 8chan is pitiful, truly.
No.552063
No.552065
No.552069
>>551785
>overriding the built-in window.alert
>messing with the defaults
>not namespacing a custom function for 8ch
jesus christ hotwheels
now we just need a custom script to inline the dns-bypass page
No.552073
>>551785
Thank you anon dearest
No.552078
No.552079
>>551785
I made a better version
var origAlert = window.alert;
window.alert = function(m) {
if (!/The server took too long to submit your post/.test(m)) {
origAlert(m);
} else {
setTimeout(function() {
$('.submit > input').click();
}, 1000)
}
}
//This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
No.552080
>botnet masqueraded as a userscript
Have you forgotten already?
No.552083
>submits code for /tech/ to use
>there's no licensing information
Cool script, but I won't use/distribute it without a license
No.552086
>>552079
Thanks anon this one is a lot better.
No.552087
On Firefox, the script works for Quick Reply but it doesn't work for the normal New Reply section.
No.552088
>tfw this board is now Josh's IT help desk.
No.552089
>tfw this board is now 8chan's IT help desk.
No.552091
>>552087
Does it work for you when the tab is not in focus?
No.552110
>>552091
Focused or unfocused, it fails when I use New Reply.
Works in Quick Reply. I assume this is because Quick Reply uses JavaScript, and the code for this workaround is JavaScript.
No.552113
>>552110
It's a livable problem, having to use quick reply.
It not working when not in focus isn't.
No.552120
>>552113
>>552118
Ok, using Quick Reply, and I was focused on a different window, the script worked.
No.552124
>>552120
You sure? The thing is that if the post succeeds, you'll not notice anything, and the post will just show up, but if it has to retry it will fail if the tab is out of focus.
No.552127
>>552124
Yep, I had two Firefox windows side by side. Watched a video in the focused window and saw the script attempt to post that WebM about five times before it went through.
No.552133
>>552127
Not windows, tabs.
Two windows side by side means two pages have focus each in their own browser window.
What I'm talking about is the script not working if it is on a different tab than the one in focus in the same browser window. The proper way to test it would be to have a single browser window, try to post in one tab, and then do something else in another tab so the 8chan tab doesn't have focus. I tried it like this several times and it does not seem to work. going to try in this thread now.
No.552136
>>552133
Problem is, I can't tell what's happening if I can't see it.
Did it post on the first try? Did it post on the 8th try? I wouldn't know unless I constantly keep looking.
No.552140
No.552141
No.552143
No.552144
No.552145
No.552147
Hmmm. This is now the test thread
No.552149
No.552150
[spoiler] :^)
test
[/spoiler]
No.552152
Hotwheels fix your shit
Hotwheels fix your shit
Testing with the alternate script that adds "Hotwheels fix your shit" once for every time it fails.
If it doesn't say "fix your shit", it wen't through on the first try, and since I'm going to try it with the tab out of focus there won't be a second try, since I'm expecting script failure at that point.
>>552136
try this script, it's the edited one I just referenced.
var origAlert = window.alert;
window.alert = function(m) {
if (!/The server took too long to submit your post/.test(m)) {
origAlert(m);
} else {
setTimeout(function() {
$('#body').val(function(_,s) { return "Hotwheels fix your shit\n\n" + s; });
$('.submit > input').click();
}, 1000)
}
}
No.552153
>>552150
>[spoiler]
Hello cuckchan.
No.552154
No.552155
>>552152
>>552152
Huh, retried twice, but still worked out of focus? Weird.
Going to try again, with a refresh between each failed attempt.
No.552156
>>552154
That's not how spoilers work on fullchan.
No.552158
>>552156
I have never even used spoilers on half chan, but yeah, on 8ch brackets around the word spoiler works dumby
No.552162
>>552155
Worked on the first try, of course. Trying again.
No.552163
>>552158
Doing so is retarded when you can use the asterisks instead. The keyboard shortcut inserts the asterisks for you.
No.552165
>>552163
*neat* I just looked at how to do it on the 8ch FAQ a bunch of time ago.
No.552166
>>552163
That did not work, liar.
No.552167
>>552166
You have to enable the keyboard shortcut you retarded newfag.
Get the fuck out.
No.552168
>>552167
>use asterisks isntead
>Retard, use the keyboard shortcut
You are a real nigger, you know that?
No.552169
>>552168
They keyboard shortcut inserts the asterisks. You enable the keyboard shortcut in the 8chan options menu first though. Are you fucking 12?
No.552170
>>552169
The keyboard short cut inserts asterisks? Shift 8 is asterisks, why do I need a god damn short cut to do so?
No.552171
>>552162
Worked on the first try, again . Trying yet again.
No.552173
>>552170
Because then CTRL+S inserts four asterisks at the same time, and automatically wraps them around whatever you have highlighted, or if you have nothing highlighted then your cursor is automatically set between the four asterisks so you can start typing.
Eat shit and die, fuck off back to cuckchan.
No.552176
>>552173
Why didn't you just say use four? The problem is you suck at explaining things, you fucking autist. I like brackets better
No.552177
>>552176
Your brackets are slow and stupid. Here's a demonstration.
No.552179
>>552177
You didn't know brackets were a thing yet you criticize me for not knowing I could use asterisks
No.552180
>>552179
Why do I need to know something that is slow, stupid, and inferior?
I don't.
I learned what great features this site had to offer, instead of being a colossal retard like you.
No.552187
OK, I've tried out of focus script performance a fair bit now, about 10 times, and unless it works on the first try ( >>552155, >>552162, >>552171) then the script is grossly unreliable at best ( >>552152 ).
This post is going to be made with the tab in focus, so let's see if it works then.
No.552195
Hotwheels fix your shit
>>552187
Of course it did, and on the first try, no less.
No.552196
>>552195
Script works fine when in focus.
No.552211
No.552212
These weird 10 lines of code just fixed 8chan!
Josh HATES him!
No.552214
Is there any fix for threads 404'ing?
Friend and I both can't post threads on certain boards without them getting immediately 404'.d Seems many other people are having the same problem.
(sorry if this has already been answered, haven't been on in a few days)
No.552220
Testing with images.
>>552212
No.552238
Thanks, OP. What has got really annoying is getting the error as soon as you click "New Reply".
No.552242
Any coderfags willing to write one to open the DNSBL bypass page in a new tab (and close the popup)?
No.552249
>>552212
Hotwheels and his stupid disk cache over nfs are the problem, not anything Josh did (anymore, because board_stats table is now pruned.) But we're only here to suffer so it's not like it really matters.
No.552261
Doesn't work. Blank page in Firefox.
No.552272
>enabling javascript anywhere
>allowing someone to force you to run code on your computer that you don't see until it's too late
>effectively becoming a bot that does what it's botmaster tells it to do
When you run javascript, you become part of the botnet.
What happened to /tech/?
No.552276
>>552249
It's more like this script invalidates Josh's whole attempt.
No.552285
>>552276
This script doesn't fix the fundamental problem, and in fact will make it worse.
No.552310
>this kills the site
ever hear of exponential backoff?
No.552334
>>552222
It's failing for me.
No.552338
No.552343
No.552344
No.552346
Testing again?
>>552342
thx fam i think it works
No.552361
>>552342
You can't tell if the posts with images are due to the reattempt working, or just working first-off.
No.552380
>>552367
Poetic. Truly an inspiration.
No.552390
Good going, you crazy wizard niggers
No.552395
>>551915
>document.body.innerHTML = ""
>halp guise, why iz everything blank
>i have to reinstall firefox, because i'm not capable to clear cookies
What the fuck retards like you do on /tech/?!
No.552397
Why is the site falling apart so hard?
No.552399
Btw. this proxy https://www.proxysite.com/ behaves pretty strange when you try to make a post which includes string
body.innerHTML = ""
It alsmost looks like some kind of XSS vulnerability.
No.552430
>>552397
It was poorly put together. It was sort of built like an Ork spaceship a bunch of random shit put together and then painted red to go faster. Except we're not Orks.
No.552433
>>552397
HW doesn't care anymore.
No.552436
>>552430
Why don't we make it better? We have the technology!
No.552438
>>552436
I don't know /tech/ why don't you?
No.552442
>>551915
document.body.innerHTML = ""
basically sets the page content to "" (nothing).
Next time don't run scripts you get from Pajeet blindly.
No.552444
No.552449
No.552450
No.552462
>>551785
>>551799
>>551800
>>551806
>>551813
>>551816
>>551817
>>551818
H O T W H E E L S
O
T
W
H
E
E
L
S
G E T
E
T
O F F
F
F
Y O U R
O
U
R
L A Z Y
A
Z
Y
F U C K I N G
U
C
K
I
N
G
A S S
S
S
A N D
N
D
F I X
I
X
Y O U R
O
U
R
F U C K I N G
U
C
K
I
N
G
S H I T
H
I
T
A L R E A D Y
L
R
E
A
D
Y
No.552536
No.552562
No.552581
No.552628
Hotwheels fix your shit
Testing
No.552728
No.552738
>>552163
The brackets have their use. Combining the brackets with the asterisks is the only way to get
spoilers within spoilers
No.552782
>>551915
>>551923
>>551926
>blank page
>scared
you're an idiot
No.552786
var origAlert = window.alert;
window.alert = function(m) {
if (!/The server took too long to submit your post/.test(m)) {
origAlert(m);
} else {
setTimeout(function() {
$('#body').val(function(_,s) { return "==Hotwheels fix your shit==\n" + s; });
$('.submit > input').click();
}, 1000)
}
}
Made it redtext
No.552788
No.552791
No.552797
No.552804
No.552805
No.552806
No.552807
No.552809
No.552875
No.552915
>>552809
No. Someone should really get on that.
No.552926
i may just be autistic but i don't see where Options > User JS is at all
i've looked over the whole fucking thing
No.552961
Could anyone of you make a small script that randomizes filenames to random unix timestamps (eg 1459220364472.png)? I'd really love to have such a script. halfchanX had such a function, tried to recreate it but failed hard..
No.552966
No.552968
No.553197
No.553212
No.553213
No.553238
>>552380
Alex Jones' voice is healthier today than it was 5 years ago
Thank you Donald
No.553256
TESTING
TESTING
TESTING
TESTING
No.553261
File: 1459265003547.jpg (329.24 KB, 445x651, 445:651, look up Leroy Anderson 'ty….jpg)

Thanks /tech/, you unsung heroes
No.553269
>>553256
>TESTING
TESTING
TESTING
&&TESTING&&
No.553421
>>552177
>tfw you can do that shortcut thing
>tfw I've been inserting four asterisks manually
>tfw I didn't even suspect what >>552738 said
Also test.
No.553433
>>552216
Lol he shagged a pig
No.553434
No.553435
>>553434
Oh yeah and you need javascript enabled
No.553814
No.554292
I just put my post function into a while loop to
auto-retry if the server response comes back with the
dns_bypass or 'took too long' response, since I made my
own cli helper script.
Eat shit firefox, you memory hog.
It did make sure to take 'flood detected, post discarded'
into account and quit trying to post after that.
I still at least use a cooldown timer to not spam the
shit out of the server with requests, since that probably
doesn't make matters any better.
No.554438
>>551817
>As it is now, I delete all cookies. Whats the tracking id cookie called?
If you're talking about cloudflare's, it's called cfduid.
STI wrote some js to keep it off of your system though.
https://raw.githubusercontent.com/savetheinternet/CloudFlare-Tracking-Opt-Out/master/cloudflare-opt-out.user.js
No.554696
No.555276
No.555312
No.555314
>>552915
>>552809
We really don't need more people trying to break this fragile site
No.555316
No.555545
Is this already merged to 8chan?
No.555607
No.555662
No.557091
>>555545
It really does need to be, on by default even. If I were competent I'd submit a pull request for it.
No.557092
>>552436
We don't. /tech/ is highly incompetent and nobody here could code their way out of a paper bag.
No.557142
>>552013
Need to add some way to send that as an email to hotwheels, maybe the useless fuck might actually do something about it.
No.557145
>>552083
>>552079
>muh licenses
oy vey you filthy goyim how dare you run plaintext code without the consent of a license
No.557156
>>557142
>Implying HW even gives a shit about the site anymore.
Nice joke there.
No.557233
No.557245
No.557386
Here's my less intrusive version
var origAlert = window.alert;
window.alert = function(m) {
if (!/The server took too long to submit your post/.test(m)) {
origAlert(m);
} else {
setTimeout(function() {
$('#body').val(function(_,s) { return s+"\n'''Hotwheels fix your crap'''\n"; });
$('.submit > input').click();
}, 1000)
}
}
No.557816
>>557142
var origAlert = window.alert;
window.alert = function(m) {
if (!/The server took too long to submit your post/.test(m)) {
origAlert(m);
} else {
setTimeout(function() {
window.location.href = "mailto:admin@8chan.co?subject=Re:%20Fixing%20your%20shit&body=Fix%20your%20site";
$('.submit > input').click();
}, 1000)
}
}
No.561191
No.562423
File: 1460303848556.png (583.33 KB, 594x897, 198:299, _y__by_delano_laramie-d5r7….png)

No.565639
No.568925
>>552462
Chad Thunderwheels is too busy DDoSing wizchan for revenge after that mutiny.