[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

UserScript Thread

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 98
Thread images: 18

File: a93b714a57d0a6cdb1498e589160e2b3.jpg (437KB, 1398x2048px) Image search: [Google]
a93b714a57d0a6cdb1498e589160e2b3.jpg
437KB, 1398x2048px
Lets see if this lasts.
>>
>>1381974
Of course it won't, dumb weebposter.
>>
I want to sniff Hibiki's hat!
>>
console.log("feminine penis");
>>
Shadilay kekistanian
>>
What do you have planned?
>>
wakarimasen lol.
Just wanted to see if a general userscript thread had any interest at this point in time.

There should be a lot of scripts people have made on 4chan that maybe a comprehensive list would be nice.
>>
post scripts
>>
>>1383326
https://greasyfork.org/en/scripts/29955-hide-images
>>
I want this thread to last, but I can't contribute scripts because I don't know how to make them.
>>
age
>>
>>1387670
I'll just merge with >>1384737
>>
>>1383326
Guys?
>>
File: 0 (4).webm (90KB, 500x500px) Image search: [Google]
0 (4).webm
90KB, 500x500px
>>1387670
Actually you give me a new idea that might be interesting.
>>
Post good ideas in this thread.
>>
Age
>>
>>1388782
Something /qa/ is devoid of..
>>
File: c474f0faf6fbe5bfc13b03c77b5b0ab8.jpg (160KB, 1024x576px) Image search: [Google]
c474f0faf6fbe5bfc13b03c77b5b0ab8.jpg
160KB, 1024x576px
>>1390961
Why python?
>>
>>1390966
>>1390980
The better choice would be JS so you could make it into a bookmarklet which populates the Quick Reply.

mods are 2da just spaghetti
>>
>>1391002
>mods are 2da just spaghetti
Say again?
>>
File: board lol jej dubs you.jpg (1009B, 48x48px) Image search: [Google]
board lol jej dubs you.jpg
1009B, 48x48px
>>1391662
>>
File: can you get it to work?.png (3MB, 1375x1375px) Image search: [Google]
can you get it to work?.png
3MB, 1375x1375px
>>1381974
https://my.mixtape.moe/qyabsl.user.js
>>
>>1391681
>Error 521
>>
File: 1395283739363ng.png (3MB, 1496x1196px) Image search: [Google]
1395283739363ng.png
3MB, 1496x1196px
>>1391690
huh, how about now?
>>
Hard to read your code on a phone.
Please fix that.
-sincerely, your boss.
>>
>>1391693
I can see it now, but that site seems to be "optimizing" the Javascript and stripping out the metadata block.
>>
File: 935955.jpg (3MB, 1181x1181px) Image search: [Google]
935955.jpg
3MB, 1181x1181px
>>1391697
I'll put it on another site then
https://pomf.pyonpyon.moe/nyybvr.js
>>
>>1391700
That's better. I have this one already, although it seems your copy has the @include list updated for newer archives. Strangely, it seems to have started working again in the latest version of Firefox+Greasemonkey after being broken by something for a long time. The third does not work as expected from EXIF stripping. But the others do.
>>
File: Fujiwara.no.Mokoud.png (3MB, 1110x1110px) Image search: [Google]
Fujiwara.no.Mokoud.png
3MB, 1110x1110px
>>1391706
oh, yeah I posted the .jpg by accident
>>
>>1391708
mediafire.com/?b4mtwyq6nly1y7d
mediafire.com/?f9a9fczfv968far
folders of old sound images if you want, they're fuck huge though
>>
File: Screenshot_2017-06-12-01-29-02.png (790KB, 2560x1440px) Image search: [Google]
Screenshot_2017-06-12-01-29-02.png
790KB, 2560x1440px
>>1391002

>mods are 2da just spaghetti

Ok
>>
can't hide threads from within the thread?
>>
>>1391679
I love these smileys!
>>
>>1381974
>>
How do I make a script in FF so I can just click a button instead of pasting it in the console?
>>
javascript:(function(){var replies = document.querySelectorAll('.replyContainer');var replyCount, n = 0;var chanX = document.querySelector("[title='4chan X Settings']") !== null; function getReplyLength(node) { if(chanX) { return node.querySelectorAll('.desktop .container a').length; } return node.querySelectorAll('.desktop .backlink > span').length;}for(var i = 0; i < replies.length; i++) { replyCount = getReplyLength(replies[i]); if(replyCount > n) { n = replyCount; }}while(n !== -1) { for(var i = 0; i < replies.length; i++) { replyCount = getReplyLength(replies[i]); if(replyCount === n) { document.querySelector('.thread').appendChild(replies[i]); } } n--;}})();

Make a bookmark with that as its location and then press the bookmark in a thread to make it explode......
>>
>>1393927
Will check.
>>
>>1393927
Guess I won't be seeing you here for a whole month....*sniffles*
>>
>>1393927
what does it do
>>
>>1381974
>>
>>1381974
>>
>>1394945
Run it and find out.
>>
Trying to make an android app to do cleanup for my bumping script on my PC.
I don't like getting banned every day for running it.
>>
>>1397069
Don't do it!!
>>
>>1397481
Joke's on you, if you opened the thread you get the screamer if you DON'T run the Javascript.
>>
Uh, should I run it on a VM?
>>
>>1398111
Your browser already runs it in a VM. The worst code like that could do is download CP and post it to 4chan from your IP. Or it could steal your tripcode or change your settings. That code doesn't do anything harmful, though.
>>
post scripts
>>
File: 5ae2511cb6c8c787a63c8f73de269924.jpg (213KB, 1600x1000px) Image search: [Google]
5ae2511cb6c8c787a63c8f73de269924.jpg
213KB, 1600x1000px
>>1398353
I'm afraid anon. Microsoft always warns me whenever I open an .exe.
I can't help my irrational fear of non commercial code.
>>
>>1400532
Grand Theft Universe
>>
Statistical userscripts might be nice.
At the moment I'm thinking about tools that make things easier for people who want to make meaningful threads rather than shitposting threads.
>>
>>1400552
Sounds like a good idea
>>
>>1400552
What sort of tools do you have in mind?
>>
>>1381974
>>
>>1405325
Xute
>>
Have any of you worked with a Booru API?
Did you have any particular issues while working with it?
>>
>>1381974
>>
Automatic image adder.
If you want an image attatched to your post, put in some tags, submit and it'll fetch you a <xMB photo to use.

I'm just going back to cycling through ideas now.
I might not do this or I might look into the ghost script that I think more people want.
>>
>>1409187
Image adder would probably be less work.
>>
>>1409278
Ya, but in terms of return on investment it's debatable.
Image adder would give image dumpers an easier time, but a ghost interface would be used by everyone.
>>
>>1409284
The image adder would probably be more fun though...
>>
>>1381974
>>
File: d087fe23bca8b1847371f2943a9ba15c.jpg (279KB, 2000x2003px) Image search: [Google]
d087fe23bca8b1847371f2943a9ba15c.jpg
279KB, 2000x2003px
WAROSU SCRIPT:
Add Images to posts

Put a URL ending in jpg, gif, png, mp4 or webm in the comments and it adds it to the post.

https://greasyfork.org/en/scripts/30826-warosu-images

Current issues:
Images retrieved from Boorus will end up giving you a 403 error. Webms seem to work for sankaku, but other booorus fail.
Clicking on Booru links will get you to a 403 or 1011 error if you haven't previously visited them on your browser.
>>
>>1412734
Also I guess the images are kind of obtrusive since I'm not downscaling them to a certain size and just reducing it by a factor of 0.5;
>>
>>1400552
Bump for this.
>>
what a bunch of homos you are
>>
>>1400552
Yeh, I guess I'll start drafting up some ideas for this.
>>
File: 1448634878516.png (144KB, 800x600px) Image search: [Google]
1448634878516.png
144KB, 800x600px
>>1399920
>fear of non commercial code
But windows is just as bad?
>>
>>1422234
Boredom from downtime between spam.
>>
Glad this thread is still here. Yesterday i was dozing and dreamed of 4chans extension having a "filter by hexadecimal color code" option for images.

Is that even possible?
>>
>>1424150
Why wouldn't it be?
>>
>>1424150
It's possible, 4chan X needs to be fixed to support the filters working asynchronously though.
https://github.com/ccd0/4chan-x/issues/794
>>
>>1381974
>>
age
>>
>>1427095
>already opened
Won't that just keep any code from running until it's closed? I assume you're talking about JS?
>>
>>1427114
You can make your own dialog box out of HTML if you need something like that. Why do you need to redefine window.prompt though? That said, I just tested and could set window.prompt.
>>
>>1427123
Whether setting window.prompt in your script changes anything for scripts running on the page depends on whether you have @grant none.
Apparently window.eval is enough now:
https://wiki.greasespot.net/Content_Script_Injection
You'd only need the old append a script to the head technique if you want compatibility with old 1.15.
>>
>>1427135
Although I'd have to test whether that also applies to Tampermonkey, Violentmonkey, etc.
>>
Are you trying to change the value of window.prompt as seen by a script running on the page, or by another userscript? Because the latter isn't going to work.
>>
>>1427143
Although if it was another userscript, you could just edit that, so maybe it was a dumb question.
>>
>>1427148
It's your machine, you can do anything you want. If you're trying to publish something for others to use, that's a different story, I guess.
>>
>>1427150
You can use custom events like
https://github.com/ccd0/4chan-x/wiki/4chan-X-API
>>
>>1427170
I thought you might be talking about that. The "post from URL" mechanism in 4chan X is deliberately done that way to prevent Javascript on the page from getting cross-domain request privileges. The recommended way would be to do the request yourself with GM_xmlhttpRequest, and then feed the result to 4chan X with the QRSetFile event.
>>
>>1425034
That would be nice as a button or hotkey.
*click*
>all pepes hidden and MD5s added to filter
>>
Could someone rip out all the youtube links from
>>1261803
and put them in a pastebin for me?
>>
>>1427629
Use BASC-archiver or x-links.
>>
>>1427629
https://spit.mixtape.moe/view/c73f6e5a
>>
File: Untitled.jpg (767KB, 1853x933px) Image search: [Google]
Untitled.jpg
767KB, 1853x933px
>>1427629
I wrote a thing that does that for entire boards, it's pretty neat. It dumps them all into playlists.
If you wanted I could modify it to take individual threads as input.
>>
Why has youtube been accepted all these years as a fucking music website of all things?
>>
>>1427715
itw orks better
>>
Now that that's worked out, I'll design a version designed for legitimate use.
>>
File: a.png (867KB, 2149x3035px) Image search: [Google]
a.png
867KB, 2149x3035px
>>1427629
Not a userscript but it works.

mpv --ytdl-format=best $(curl "a.4cdn.org/$Board/thread/$Thread.json" | sed -e "s/\"com\"/\n/g" | sed -e "s/[\\]//g" | sed -e "s/<wbr>//g" | grep -o "https\?:\/\/\([0-9A-Za-z]*\.\)\?[0-9A-Za-z]*\.[0-9A-Za-z]*\/\(watch?v=\)\?[0-9A-Za-z_\-]\{11\}")
>>
For those of you who use 4chan X, do you think filters should affect the sorting of "Last Reply" order? Do any of you use "Last Long Reply"?
>>
>>1427715
It's standard, and big enough to have aggregated a large library.
>>
>>1383326
no
>>
>>1381974
Yes
>>
onwards and upwards
>>
Maybe I should look into the theories behind a thread saving bot...
Thread posts: 98
Thread images: 18


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
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.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.