« first day (2319 days earlier)      last day (2628 days later) » 

1:00 PM
@FlyingGambit Well, if you want such features, you can enable experimental JS in 42
 
Anyone got any ideas?
How to click all buttons with class .delete-note on a website
 
My idea would be to investigate, and figure out where the loop is stopping
 
either all at once or one after another with a loop
I get the message <- undefined
 
@Omnitored normally, what ben has provided is sufficient
ah, what's "undefined" then
 
1:02 PM
@KendallFrey Thanks
 
@Omnitored That's simply because a loop does not evaluate to a value
 
I am completly new to js man..
 
how karma is handling tests with async methods, trying to have same what mocha is doing with "done" callback or returning a promise from test case
 
Do you know how to program other languages?
 
for of ---> for any iterable
for in ---> for objects
Does this not mean we have no use for "for...in" anymore ?
 
1:04 PM
@Omnitored Here, this is the same:
 
!!s/js\s/feelsbad/
 
@jAndy I am completly new to feelsbadman.. (source)
 
!!> for (let i of [1, 2, 3]) {}
 
@Omnitored even if you are new to js ... you should understand what you have written ...
 
@MadaraUchiha "undefined"
 
1:04 PM
The result here is "undefined" because the loop doesn't return a value
 
@FlyingGambit No, but it was never really very useful
 
first loop loops 30 times, which executed the body 30 times. And the body is ...
 
@FlyingGambit Here: for (const [key, value] of Object.entries(obj)) { ... }
for..of for objects
 
I really can't understand why it only works on one at a time
 
ok, now that's the weirdest firefox bug I've ever encountered... codepen.io/ThiefMaster/pen/zNVJRB
 
1:10 PM
@ThiefMaster Interesting
 
@MadaraUchiha Thats cool
 
@Omnitored go debug the things then ... do first let b = document.querySelectorAll('.delete-note'); then just b to see what it holds
if it's one item, then the loop will run one time. If it's 1+ it should loop more than one time
 
@ThiefMaster Very odd indeed
 
It does select 122 elements
 
Try console.log before you click each one
 
1:21 PM
What exactly do you mean?
 
` $wtf.remove(); ` removes element on keydown, so both Chrome and Firefox not working ?
 
@ThiefMaster Do you have a ticket open for that? Or are you assuming a problem with the code?
 
@OliverSalzburg I haven't opened an FF bug yet, will do it though. Just wanted to mention some FF weirdness here ;) CSS shouldn't be able to cause this so I think it's clearly a bug
 
It should be a rule that you have to post a comment on the post when you downvote it..
http://stackoverflow.com/questions/42345821/chrome-console-loop-pressing-buttons-with-a-given-class-on-a-website

Downvote came, no idea what's wrong :|
 
@Omnitored Why?
 
1:31 PM
0
Q: Centralized Error Handling & Reporting for node.js

Gandalf the WhiteI want to have a system which will either send me a text message or email based on severity of error on respective occurrence. I have done some research on the subject but I haven't been able to simplify matters. All in all my end goal is to get notification whenever something is going wrong wi...

 
@Omnitored Wow, I have never heard that suggestion before. You should post about it on meta
 
Because now I'm question banned because of the old negative questions I asked over half a year ago and I have no way to fix the error since Idk what the hell is wrong with my question
 
@Omnitored Ask better questions
 
What's wrong with that one?
 
@Omnitored there is a rule about it - it forbids posting comments that explain a downvote
 
1:33 PM
Seriously?
 
@Omnitored Do you even understand the code you've posted?
 
yes
 
you're really not listening to us ... Or don't want to pay attention
 
I try man but as I said I am not known with js at all
 
@Omnitored There is no need in have "I downvoted your question because it sucks" thousands of times on the site
 
1:33 PM
I just want to solve this
 
you don't have to be an expert in js ...
do you know what a for-loop does?
 
@Omnitored Why the hell would you post that question , without debugging it yourself ?
 
@FlyingGambit He doesn't want to debug it, he wants to solve it. Duh!
 
@Omnitored well .. have you tried learning javascript?
 
the for-loop in javascript is same as in C# / Java, while both are one of the most used high level programming languages
 
1:35 PM
Teresko I am learning different things atm, and I just want to get rid of those messages
 
I would comprehend if you ask that kind of question if you're talking about haskell eg
(haskell doesn't have loops)
do first let e of document.querySelectorAll('.delete-note'); in your console
then e;
you should get a response
 
... or you could hire a developer
since you think that your time is too valuable to learn basics of JS
 
I don't say my time is valuable wtf man
 
lol ^
 
3 mins ago, by Omnitored
Teresko I am learning different things atm, and I just want to get rid of those messages
you did
 
1:38 PM
94
A: What is a help vampire?

Anubian NoobAccording to the Help Vampire tag: The Help Vampire problem is the idea that some users will continually ask the same tired questions in the hope that someone else will do their work for them, irrespective of whether the same question has already been asked or whether they could easily find t...

 
Alright, let's take it down a notch.
 
I just say that I don't want to spend time on js atm as I am learning a different language, just to fix one thing on a website
 
I could just use a f****** spambot to post the code that presses one button at a time in the console, but I hoped to maybe get an easier solution
 
StackOverflow is not a free crowd-sourced code generator
4
 
1:42 PM
blasphemy
 
@tereško That's what you think. github.com/drathier/stack-overflow-import
 
The reason for why I have it in a second loop is because it simply gives an "Unexpected identifier" if I don't
Check the question..
 
lol
 
1:46 PM
I was just about to comment on that on his question
 
What's wrong?...
 
are you really a developer ?
 
I am not that's exactly what I've been saying apst 30 min
 
read again
15 mins ago, by KarelG
do first let e of document.querySelectorAll('.delete-note'); in your console
do you notice the font change ?
...
 
1:52 PM
@Omnitored You need a developer, many available for hire
 
MAN I MADE A BIG FAIL
 
LMFAO ^
 
Karel
 
let e = document.querySelectorAll('.delete-note'); // it's correct now
;_;
 
It does select all the elements yes
but how does that help IF THE FUNCTION ONLY DELETES ONE?
for(let e of document.querySelectorAll('.delete-note')) e.click();
This only deletes ONE
not all, I've said it 2+ times now
 
1:53 PM
@Omnitored The magic number is somewhere around 5
 
then that querySelectorAll returns with 1 element
 
Repetition is the most important (and underrated) aspect of text-based communication
 
Repetition is the most important (and underrated) aspect of text-based communication
 
Repetition is the most important (and underrated) aspect of text-based communication
 
Repetition is the most important (and underrated) aspect of text-based communication
 
1:54 PM
Repetition is the most important (and underrated) aspect of text-based communication
 
Repetition is the most important (and underrated) aspect of the game
 
Actually, just counted it, said it 4 times plus one in the question, so five
-4
Q: Chrome console loop pressing buttons with a given class on a website

OmnitoredI have a list of messages on a forum. I wish to delete those and there are over 1000 of them, while the only option to delete them is to click the "X" button (one at a time), which is given the class .delete-note So far I've tried this, but it only closes one message, so I would have to copy-pas...

Updated the question
 
can you inspect that element and ss the HTML elements ?
not sure about the classnames tho
 
Check if the website already using jQuery, that will be a lot simpler! — ibrahim mahrir 16 secs ago
Classic
 
1:58 PM
Is this what you mean?
 
the loop that ben has posted should work ... o.O
 
Well, now you understand why I am pissed off by the downvotes?
I know it SHOULD work
 
If you just want to get rid of the msgs from your screen (in case its blocking your view), element select the alert div and set style as display:none
 
but guess what man, it doesn't, that's why I'm asking for help
@FlyingGambit Thanks that did solve the problem of deleting the messages -.-
wat
 
that's normal
it doesn't return something.
 
2:03 PM
it's enabled
1
just checked
 
use return 'isLoaded'; eg
 
Petition is the most important (and underrated) aspect of law-based communication.
 
Array.from(document.querySelectorAll('.delete-note')).forEach(el => el.dispatchEvent(new Event('click')) );
perhaps that aria thingie doesn't work well with .click()
 
who changed the font size?
 
your mom
 
2:06 PM
I'm not kendall
 
your mom is
 
:O
how
 
that's because you, as spanish speaking person got deported from USA
so you might be kendall
 
xDD
 
bye guys, it was fun
 
2:07 PM
What motivates you guys?
 
your mom was fun
 
Speak for yourself
2 mins ago, by Shmiddty
your mom
 
but seriously, though
 
change is a good motivator
 
2:09 PM
why?
 
Because money leads to happiness. It's pretty common knowledge
 
why is that?
I made a lot of money at one point, but I wasn't happy
 
@Shmiddty Did you spend it all?
 
you made bad money
 
@OliverSalzburg eventually, yes.
 
2:12 PM
Maybe you were doing it wrong. Next time, send the money to me and I will spend it for you, for a small fee of course
 
I'd saved about $10k-12k
Spending money makes you happy?
 
@Shmiddty it's not that money leads to happiness, it's that having enough money leads to have less problems
 
But why is money even a factor?
 
because if you don't have it, you have to spend a lot of time managing it
 
it's not unless it's factored in
 
2:13 PM
"This is my code"
"It should work"
"It doesn't"..
 
@FlorianMargaine if you don't have money, you have to spend 0 time managing it
 
downvoted
 
@Shmiddty sure, if you like being homeless.
 
But why is money necessary to procure food and shelter?
 
when writing a password change client & server. Should I encrypt the password already on client side with bycrypt? yes or?
 
2:16 PM
@OliverSalzburg i believe that it was proven that having too much money reduces happiness
 
@Shmiddty I'm not sure if you're serious or not.
 
deadly serious
 
ok, I don't really see the point in discussing with you then :)
 
Money === Time , the time of some people is more valuable that others, so they earn more
 
@RobBoerman Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
2:19 PM
@RobBoerman start with trying to answer that, first, and realize it's a pointless discussion chat.stackoverflow.com/transcript/message/35746274#35746274
 
haha your right :)
 
@FlorianMargaine Don't feel like admitting that money is a tool used to enslave people?
 
@Shmiddty don't feel like getting off your high horse and opening your eyes a bit?
 
@FlorianMargaine care to elaborate?
 
not really
 
2:22 PM
stop being childish
 
how can you get food & shelter without money?
 
What? If Florian is being childish it'll be the first time.
 
doing these yourselves ?
 
@KarelG exactamundo
 
I'm the childish one and I resent someone else taking that title.
 
2:24 PM
but you need resources for that.
 
@KarelG an axe and a ho
 
it's not easy to manufacture these resources at your own. Unless you go plant trees and use only wood
 
but here's the thing
why should anyone have to do it themselves?
why do humans let humans suffer when they have the power to help?
 
same reason you do.
 
what's that?
 
2:26 PM
Unless you give absolutely everything you can to charities, you let people suffer every day. We all do.
 
I have no income
and charities don't help
 
Assuming you have skills with which to get an income, you are still failing to earn and donate.
 
charities don't solve the problem
 
What does?
 
the problem is our capitalist society
 
2:28 PM
Ah.
 
@Luggage do you understand why I stopped this discussion now? :)
 
indeed.
 
because it's pointless to try and change things, amiright?
so what motivates you to continue living in this hell?
 
No. I am infavor of re-thinking the status quo, and I am much more socialist than most.
But pure communism is not a silver bullet, either.
 
It doesn't matter, Luggage. The problem is that people only care about themselves, and this will never change.
 
2:30 PM
It doesn't magically cause the haves to want to share with the have-nots.
 
I'm having an "only works while DevTools are open" issue. Anyone wanna offer some weird advice on how to approach?
 
@OliverSalzburg it is IE? console.logs
 
@FlorianMargaine Edge actually
 
@Shmiddty history has proven that communism doesn't work
 
2:32 PM
I don't think it's console this time though. IIRC it's no longer a problem in Edge and we're also shimming that stuff
 
a human always wants to distinguish himself from others. It's a part of our behavior
 
I found a question on Stack Overflow that suggests that it was a bug in Edge :P
 
ohh, nice. A link to the SO main page. I needed that. :)
 
@Luggage It's faster to type
The question was this one: stackoverflow.com/questions/37593802/…
 
@KarelG because Humans are greedy and selfish
 
2:36 PM
Obviously, there's also this one: stackoverflow.com/questions/7742781/…
 
See... it wouldn't be a problem to make sure that everyone has food, shelter, and health care. We could even throw capitalism on top of that. But we don't
because clearly Humans want people to suffer
 
Many people are fighting for just that. Making sure people have shelter and healthcare.
 
@Luggage History has proven that they'll never succeed
 
Not with that attitude..
except history has proven just the opposite. things have gotten better and better.
 
!!afk
 
2:40 PM
less people starve, etc.
Ignore the title, I'm not calling you ignorant.
 
@Shmiddty err, that a human wants others to suffer isn't merely true or there wouldn't any charity
 
@KarelG Shmiddty is afk.
 
Humanity is fucked. When you have a big fat label "DONT PRESS" on a button, people will queue up to press that button. People are stupid and you need to learn to deal with it. That is paired with the desire to always come out on top of the other stupid people. And to make sure you do, you need money. Thus, money up your life
 
ah, that's a result of human's urge of curiosity
or dancing pigs syndrome :P
 
If your train of thought starts with "If only everyone would..." you're already wasting your time on that thought
 
2:47 PM
are ternary's short circuited?
 
@Luggage I think so, yes
 
let foo = bar ? 1 : baz(); // will baz() execute if bar has a truthy value?
 
@Luggage To my knowledge, it will not
And I have written quite a bit of code that relies on that fact. Would hate to hear otherwise :P
 
it shouldn't execute
 
cool
 
2:50 PM
it's a syntactic sugar btw
 
user2620028
weird, i would have assumed that it would
 
user2620028
ahh i didn't read the whole thing
 

« first day (2319 days earlier)      last day (2628 days later) »