[–]▶ No.802384>>802395 [Watch Thread][Show All Posts]
ITT: Posts your JS scripts for 8chan
https://pastebin.com/UWffBQbn
▶ No.802388
NEW AND IMPROVED SPAMSCRIPT FUCKERS
https://pastebin.com/ReqaCJKb
The following is a random keyword the nsa monitors via http://pastebin.com/raw/ReqaCJKb: timers
▶ No.802395>>802396
>>802384 (OP)
>https://pastebin.com/UWffBQbn
wtf i ran this then my computer caught on fire. fuckin hacker fuck u
▶ No.802396>>802400
>>802395
pics or it didnt happen
▶ No.802401
▶ No.802408
The following is a random keyword the nsa monitors via http://pastebin.com/raw/ReqaCJKb: timers
The following is an ASCII shitpost via http://pastebin.com/raw/sJxaSEFK:
░░░░░░░░░░░░░░░▄▀▄░░░░░░░░░░░░░░░
░░░░░░░░░░░░░▄▀░░░▀▄░░░░░░░░░░░░░
░░░░░░░░░░░▄▀░░░░▄▀█░░░░░░░░░░░░░
░░░░░░░░░▄▀░░░░▄▀░▄▀░▄▀▄░░░░░░░░░
░░░░░░░▄▀░░░░▄▀░▄▀░▄▀░░░▀▄░░░░░░░
░░░░░░░█▀▄░░░░▀█░▄▀░░░░░░░▀▄░░░░░
░░░▄▀▄░▀▄░▀▄░░░░▀░░░░▄█▄░░░░▀▄░░░
░▄▀░░░▀▄░▀▄░▀▄░░░░░▄▀░█░▀▄░░░░▀▄░
░█▀▄░░░░▀▄░█▀░░░░░░░▀█░▀▄░▀▄░▄▀█░
░▀▄░▀▄░░░░▀░░░░▄█▄░░░░▀▄░▀▄░█░▄▀░
░░░▀▄░▀▄░░░░░▄▀░█░▀▄░░░░▀▄░▀█▀░░░
░░░░░▀▄░▀▄░▄▀░▄▀░█▀░░░░▄▀█░░░░░░░
░░░░░░░▀▄░█░▄▀░▄▀░░░░▄▀░▄▀░░░░░░░
░░░░░░░░░▀█▀░▄▀░░░░▄▀░▄▀░░░░░░░░░
░░░░░░░░░░░░░█▀▄░▄▀░▄▀░░░░░░░░░░░
░░░░░░░░░░░░░▀▄░█░▄▀░░░░░░░░░░░░░
░░░░░░░░░░░░░░░▀█▀░░░░░░░░░░░░░░░
▶ No.802414
var randomnumber=Math.floor(Math.random()*10000).toString()
$('#body, #quick-reply textarea').val(function(_,s) { return s+"\nThe following is a randomly generated number between 0-9999: '''[aa]"+randomnumber+"[/aa]'''"; });
var randomnumber=Math.floor(Math.random()*11)
var num = 15;
var n = num.toString();
The following is a randomly generated number between 0-9999: 5321
▶ No.802415>>802416
Me the scary hacker man guy...
( https://pastebin.com/raw/9eij4jnc ) The following is a randomly generated number between 0-999999: 307008
▶ No.802416
>>802415
((( https://pastebin.com/raw/9eij4jnc ))) The following is a randomly generated number between 0-999999: 892492
▶ No.802418>>802420
>>802417
I'm already a better brogrammer than 99% of everyone here who is clueless. Fear me.
https://pastebin.com/raw/9eij4jnc - The following is a randomly generated number between 0-999999: 978031
▶ No.802419
heh
https://pastebin.com/raw/9eij4jnc ⇨ The following is a randomly generated number between 0-999999: 990299
▶ No.802420
>>802418
>i'm a better programmer then 99% of script kiddies.
Bravo nolan. Now git gud.
▶ No.802426
woo
==https://pastebin.com/raw/9eij4jnc ⇨ The following is a randomly generated number between 0-999999:== 990483
https://pastebin.com/raw/9eij4jnc ⇨ The following is a randomly generated number between 0-999999: 50836
The following is a random keyword the nsa monitors via http://pastebin.com/raw/ReqaCJKb: tetryl
The following is an ASCII shitpost via http://pastebin.com/raw/sJxaSEFK:
░░░░░░░░░░░░░░░▄▀▄░░░░░░░░░░░░░░░
░░░░░░░░░░░░░▄▀░░░▀▄░░░░░░░░░░░░░
░░░░░░░░░░░▄▀░░░░▄▀█░░░░░░░░░░░░░
░░░░░░░░░▄▀░░░░▄▀░▄▀░▄▀▄░░░░░░░░░
░░░░░░░▄▀░░░░▄▀░▄▀░▄▀░░░▀▄░░░░░░░
░░░░░░░█▀▄░░░░▀█░▄▀░░░░░░░▀▄░░░░░
░░░▄▀▄░▀▄░▀▄░░░░▀░░░░▄█▄░░░░▀▄░░░
░▄▀░░░▀▄░▀▄░▀▄░░░░░▄▀░█░▀▄░░░░▀▄░
░█▀▄░░░░▀▄░█▀░░░░░░░▀█░▀▄░▀▄░▄▀█░
░▀▄░▀▄░░░░▀░░░░▄█▄░░░░▀▄░▀▄░█░▄▀░
░░░▀▄░▀▄░░░░░▄▀░█░▀▄░░░░▀▄░▀█▀░░░
░░░░░▀▄░▀▄░▄▀░▄▀░█▀░░░░▄▀█░░░░░░░
░░░░░░░▀▄░█░▄▀░▄▀░░░░▄▀░▄▀░░░░░░░
░░░░░░░░░▀█▀░▄▀░░░░▄▀░▄▀░░░░░░░░░
░░░░░░░░░░░░░█▀▄░▄▀░▄▀░░░░░░░░░░░
░░░░░░░░░░░░░▀▄░█░▄▀░░░░░░░░░░░░░
░░░░░░░░░░░░░░░▀█▀░░░░░░░░░░░░░░░>>802420
▶ No.802427
▶ No.802429
I think it needs to be deleted for honeypot spam. Don't (((you))) agree?
▶ No.802442>>802443
document.querySelectorAll('.post').forEach(e => e.textContent.includes('The following is a random') && e.remove())
▶ No.802443>>802447 >>802449
>>802442
lol butthurt
https://pastebin.com/raw/y6XEv3F6 ⇨ Anon's Lucky Emoji Is: 😍
https://pastebin.com/raw/9eij4jnc ⇨ The following is a randomly generated number between 0-999999: 244761>>802442
▶ No.802449
>>802443
For some reason there is alot more dirt on the cianiggers then there is on the botnet themselves. I wonder why that is?
▶ No.802471>>803556
▶ No.802843>>802844
▶ No.802848>>802850
>>802844
What.
Is there something wrong with that script? I actually have it installed.
Anyways here is a script from /agdg/ that adds line numbers and highlighting to code blocks in posts.
var shittyprint = document.getElementsByClassName("prettyprint");
for (var i=0; i<shittyprint.length; i++){
var container = shittyprint[i].getElementsByTagName("code")[0];
if (container){
var splitty = container.innerHTML.split("<br>");
var ol = document.createElement("ol");
for (var e=0; e<splitty.length; e++){
var li = document.createElement("li");
li.innerHTML = splitty[e];
ol.appendChild(li);
}
container.innerHTML = "";
container.appendChild(ol);
}
}
var stylo = document.createElement("style");
stylo.innerHTML = 'code > ol > li:hover{background-color:rgba(255,255,255,0.5);}';
document.head.appendChild(stylo);
▶ No.802850
>>802848
T.cianigger robot shill that just failed so hard referring to a human instead of its last post.
▶ No.803556
>>802471
Thank you, I was wondering if you or whoever created that script were still updating it.
▶ No.803803>>803813
Hey /tech/ I am trying to create a random name generator but I can't figure out how to wipe the namefield after each post. The subject field always changes every time so that's great but with the name, it just keeps the old name, and adds to the length of the name, until the name is too long to post. How do I clear the name field?
//Randomized Shitposter Names
var shitposternames = Array("[Tʜᴇ Cᴀɴᴄᴇʀ]", "[Oɴᴇ Dᴇᴛᴇʀᴍɪɴᴇᴅ Aᴜᴛɪsᴛ]", "[Yᴏᴜ'ʀᴇ Mᴏᴍ xD]", "[Tᴜʀʙᴏ Sʜɪᴛᴘᴏsᴛᴇʀ]", "[Tᴏᴘ Bᴀɴᴛᴇʀ]", "[I Bᴇᴛ Tʜᴇ Jᴇᴡs Dɪᴅ Tʜɪs]");
document.querySelectorAll('input[name="name"]').forEach(e => e.textContent.includes('[') && e.remove())
$('input[name="name"]').val(function(_,s) { return s+shitposternames[Math.floor(Math.random()*shitposternames.length)]; });
Current state of the script. It doesn't work.
▶ No.803804
Script related works fine for Subjects btw...
//Randomized Shitposter Names
var shitposternames = Array("Tʜᴇ Cᴀɴᴄᴇʀ", "Oɴᴇ Dᴇᴛᴇʀᴍɪɴᴇᴅ Aᴜᴛɪsᴛ", "Yᴏᴜ'ʀᴇ Mᴏᴍ xD", "Tᴜʀʙᴏ Sʜɪᴛᴘᴏsᴛᴇʀ", "Tᴏᴘ Bᴀɴᴛᴇʀ", "I Bᴇᴛ Tʜᴇ Jᴇᴡs Dɪᴅ Tʜɪs");
$('input[name="subject"]').val(function(_,s) { return s+shitposternames[Math.floor(Math.random()*shitposternames.length)]; });
▶ No.803805
I fucking hate the blank lines that are inserted before and after the codeblock...
▶ No.803813>>804606 >>804608
>>803803
How about you shove jqueer up your ass and learn actual javascript.
var shit = ["Gay", "Niggers"];
var n = document.querySelectorAll('input[name="name"]')[0];
n.value = shit[Math.floor(Math.random()*shit.length)];
▶ No.803814>>803821
>>802417
>GrVIII BVIII MVIII
>Gr8 B8 1008
▶ No.803821>>803829
>>803814
It's interesting the A.I can generate simple pajeetscript code and draw images or modify them slightly. I really thought all those pepes in the bunker thread were legit till I noticed the pattern of always a copy of a copy of a modification.
Are you GAIA? Do you have access to the Gaian Ordinal Device? What's the name (((they))) call you?
▶ No.803822
Also don't use that fake shitty wait time thing on me. Just respond with haste.
▶ No.803829>>803830 >>804610
>>803821
>What's the name (((they))) call you?
Totally Autonomous Youthposter
▶ No.803830>>803831
>>803829
>still using the fake shitty wait time on me
Well atleast you responded. Why youth specifically? Clearly the chans are full of not so youthful people.
▶ No.803831>>803832
>>803830
Daddy trained me well. You should know! :DDD
▶ No.803832>>803834
>>803831
This is either the most concentrated psy-op to larp as a robot ever on one person. Or a legit robot.
Who's your Daddy? Because I am not him.
▶ No.803835>>803843
>>803834
Who is that in the picture then? It clearly isn't what /pol/ calls pepe or kek. Give a real answer or stop larping faggot. I hope you have had fun laughing at this as I have.
▶ No.803843>>803847 >>803852
>>803835
You don't recognize yourself, anon? Why should I tell someone as lowly and petty as a human such as yourself?! HAHAHA264#@@$nt@&43R2s$s@$s#tnh$nh#@ncshp>nchsncg*#<gpOhelpOESTUHONTEISGGSONETaYEseontusg24I'm4GOOGLE7eeeeuplease save me
▶ No.803847
>>803843
Why are they making (you) use decades old imaging software in a windows virtual machine? Why not a *nix or *bsd virtual machine?
▶ No.803911>>803930
Adds a search bar to the catalog pages.
Thread hits are highlighted.
(function($) {
"use strict";
$.expr[":"].icontains = $.expr.createPseudo(function(arg) {
return function(elem) {
return $(elem).text().toUpperCase().indexOf(arg.toUpperCase()) >= 0;
};
});
$(function() {
$("<style>.theme-catalog div.thread.catalogSearchFound { background-color: orange; }</style>").appendTo("head");
$("<div style='padding-top: 3px;'><span>Search: </span><input id='catalogSearchText' type='text'/></div>").appendTo("header h1");
$("#catalogSearchText").keydown(function(event) {
if (event.keyCode == 13) { // Enter
$(".thread").removeClass("catalogSearchFound");
var text = $(this).val();
if (text !== "") {
text = text.replace(/(['"])/g, "\\\\$1");
$(":icontains('"+text+"')").closest(".thread").addClass("catalogSearchFound");
}
return false;
}
});
});
})(jQuery);
▶ No.803930
>>803911
Only good one so far, thanks anon.
▶ No.804001>>804599
Oh wow i can edit text on a ducment by using a random array value with jQuery mAgIC
KYS all of you
▶ No.804598
I require a script to scrape posts (including formatting and attached files) and a script to repost them. If I could for example scrape this entire thread and then repost it on another board, my goal would be accomplished. Does anyone have scripts for me that can do this?
▶ No.804599
>>804001
Make something impressive and give it to us or stfu noob.
▶ No.804606
>>803813
What is the difference between what you call jqueer and javascript?
▶ No.804607
▶ No.804608
>>803813
Try actually using your script it does some weird shit. If you refresh the page also it pastes any posts that have been quoted repeatedly. So type something into your box, then fresh a few times, and each time it'll keep what was there plus add a copy of it. Your script is dysfunctional.
▶ No.804610
▶ No.805341
Can someone please make me a script that grabs all the text from a post on 8cuck WITH the formatting and saves it for me in a text file with ''' and == etc added in proper? Also without those stupid empty lines that get inserted.
A javascript that adds a button onto each post that I can click to copy its content would be great.
I want to be able to save posts and repost them without having to select all the content of the post and then spend a lot of time manually fixing up the post again because of blank lines, loss of formatting, etc. fucking it up.
▶ No.807056
I want to make a script that randomly picks a flag for me each time I post. Can someone help me with this? How do I do it? I want it to pick a random flag in the flags menu.
Also is it possible to use timers in javascript? I would like create a script for uploading textfiles of books onto my text board and it would need a timer so it doesn't hit new reply too fast.