« first day (2476 days earlier)      last day (2475 days later) » 

12:02 PM
I think the chat is closer to being discontinued than being updated
but that's just a feeling
 
Denys, did have checked his question tab?
had to rub my eye first
that destructuring question can lead to a risky operation if you play with argument ... yours comment is good enough
 
He has his own very specific way of chasing rep...
 
Thank you. Is there a use-case for an async function without the await keyword used inside it? –
soalmost all my functions are async without await o.o
 
need some help here please , thanks!
 
@Ahmad That question has not improved since you posted it the last time
 
12:13 PM
@Nick It's kinda contradicting that he asks such questions but fails to answer that question on his own
 
@GNi33 we are more like a tumor to the site in the eyes of the owners
 
@OliverSalzburg, improved what?
@o
@OliverSalzburg, i edited it today
 
TIL awaiting for undefined doesn't make you wait til the next tick
That doesn't seem really consistent
 
is that different than 0?
 
@KamilSolecki well, the chat is creating a lot of noise
 
12:16 PM
why should it wait for something ... void ?
 
Not to start a flame war, but coming from 2008-era web and modern iOS background, what's the best way (or some ways) to set up a brand new web project?
I don't especially care about which framework I'm using, just in general.
 
Really depends on your project
 
What kinds of applications are there?
 
You don't need much
 
I mean, I've been using a basic index.html, and directories for css, js, and img, but if I want to use a fancy JS framework, I need webpackor npm or something?
 
12:20 PM
@GNi33 Yeah, Thats what i meant.
 
@Moshe if you want to use a fancy JS framework look at its tutorial
 
So each one has its own setup I guess?
 
He got me searching, here...
Thank you. Is there a use-case for an async function without the await keyword used inside it? — Ben Aston 14 mins ago
@Moshe This is far too general a question
 
I mean, each framework will have a unique hierarchy and pipeline, no?
Or is there some commonality falling into place across web frameworks?
 
not really
mostly it comes down to your build process
 
12:26 PM
Hi guys
 
But remember that you don't have to use a framework.
 
What will be the url when i will have multiple parameters in http verb delete url/
?
 
nowadays, I personally really like to have npm set up, and additionally webpack + Babel
npm for obvious reasons, webpack + Babel to be able to write ES6
 
hello
Can someone help me out?
 
!!welcome Suraj
 
12:30 PM
@Suraj Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
 
Sir
 
madame
 
it
 
when we search in google something
It encode the search query like If i search for "asdasdasda g+++A+sd asd+++"
in url q=asdasdasda+g%2B%2B%2BA%2Bsd+asd%2B%2B%2B
 
12:32 PM
@CapricaSix what? why did it ping me?
 
you share a name
 
Hi suraj
 
yes, it does
 
I want to decode that string back to search query
using javascript
 
12:33 PM
decodeURIComponent
 
I tried decodeUricOMPONENT
 
!!> decodeURIComponent( encodeURIComponent( ' hello world' ) )
 
@rlemon " hello world"
 
seems to work
 
It does not
wait
 
12:34 PM
your browser may be broken beyond repair then
 
When I search "aasdasd + /a3434 +qweqe d"
the search query in url is
q=aasdasd+%2B+%2Fa3434+%2Bqweqe+d
decode that
 
!!> decodeURIComponent( encodeURIComponent( 'aasdasd + /a3434 +qweqe d' ) )
 
@GNi33 "aasdasd + /a3434 +qweqe d"
 
Why are you encoding it
 
!!> decodeURIComponent("aasdasd+%2B+%2Fa3434+%2Bqweqe+d")
 
12:36 PM
@GNi33 "aasdasd+++/a3434++qweqe+d"
 
I am giving you what q is
It seems@GNi33 is broken and cannot be repair
 
it is possible google encodes it further.
at which point you'll need to manually translate it back
 
yeah so any one knows any way
 
nope, that's all you
 
@GNi33 Ok, thanks! I'll keep investigating.
@DenysSéguret Thank you too!
 
12:37 PM
okay what I am trying to achieve is that I want to remove some xyz.com result from my search query
 
@Moshe it is a little overwhelming at first
 
@KendallFrey https://i.redd.it/8m1fgdrqf1cz.jpg :D
 
so now if user search "hello world"
 
so probably take it step by step
 
i want it to be "hello world -xyz.com"
I am making a script for it
How should I proceed
 
12:38 PM
@rlemon haha
 
what I am doing currently is
getting the query, adding that thing and by using window.replace
making that edited query
 
Hey
Anyone here and wants to help me reproduce a Chrome bug I think I might have found?
 
shoot
 
Kk, one sec
 
12:41 PM
can someone help e
 
e.preventHelp()
 
I just want to edit google search query
and then redirect
 
and what exactly is your problem?
 
I want to remove some results from google
Like if site xyz.com
gives result
 
that's your goal
what's the problem?
 
12:44 PM
it can be removed if I do searc - xyz.com
I want to remove w3schools.com results
they often distract, that is the main problem
Devloping a tampermonkey script
 
there is already one
 
FYI
 
Multiple even
 
That hide image of result
not edit query
Let us take
that i want to learn how to do it
 
12:48 PM
I'd rather one request and hide the DOM vs two requests
think of the bandwidth
 
anyway
 
@MadaraUchiha lmao, show me (in private)
 
I just want to develo
even if it exists
I am 90 percent done
 
@BenjaminGruenbaum Nitzan will send it to you later
 
12:49 PM
Please show me way what would you do if you had to do
Change query and show results
 
@MadaraUchiha Chrome has a pretty terrible bug, want to help me test it real quick?
 
@SurajJain Download one of the existing solutions and copy&paste if you can't figure it out yourself :P
 
Or super busy day?
 
olver I really want to do
why cannot you just tell me
 
window.location += '&q=-w3schools.com';
there, helped. move on
 
12:51 PM
@SurajJain if you have asked a question here, and people feel you haven't done enough research - ask on stackoverflow.com
It's a great site for questions and answers, you've probably heard of it.
 
@SurajJain Then you wouldn't really be doing it, would you?
 
(so that more people will feel you haven't done enough research)
@BenjaminGruenbaum why don't you show us all that nasty chrome bug ?
 
if i had not done research and asked on stackoverflow.com
 
we love bugs
 
they would just kill me with downvotes
Heard it tried it,,
and have 1400 points
@rlemon
 
12:53 PM
@SurajJain
 
@Nick
 
But that is initially going to visit first search
 
you can't stop that
 
can't I just redirect fast
 
no
 
12:54 PM
@DenysSéguret because I need to give a link to a 100mb file on my server and I'd rather not do that publicly, if you feel like helping I'd love to give it to you. Here's the bug itself bugs.chromium.org/p/chromium/issues/detail?id=749482#c1
 
well, maybe, I suppose, if the extension api lets you pickup the url before the page loads, but that's still two requests.
and I don't think it will let you do that.
 
why won't it
 
damn, only for Android ?
 
By the way I am not using any extension
just plain javascript
 
you are writing one 😉
and I just said I don't know, I suspect it won't
 
12:55 PM
yeah tampermonkey script
 
The bieber fanhood is real and wants to kill me
 
go look it up
 
Step 4: Wait
that's something that I can
 
But that window.location += '&q=-w3schools.com'; helped
 
0
Q: Tampermonkey script run before page load

Giovanni VigorelliI need to hide a section from an html page: <h1 data-ng-show="!menuPinned &amp;&amp; !isSaaS" class="logo floatLeft" aria-hidden="false"><span>XXX&nbsp;</span><span style="font-weight: bold;">XXX&nbsp;</span><span>XXXXX</span></h1> The following code works fine in Chrome dev. tools var ibmlog...

 
12:56 PM
I was trying to get parameters
 
I commented on Reddit on an article that Justin Bieber is canceling tours to "rest"
 
I researched
and I did that
 
@DenysSéguret it reproduces on chrome mobile, and possibly desktop chrome
 
@Neil why would you do such a thing?
 
Chrome might be lazzy
 
12:57 PM
Saying that I'm sure he meant to visit the paparazzi that he ran over with his car
He actually ran over some guy with his car because he wouldn't move
The amount of hate that that comment generated is becoming legendary
 
@BenjaminGruenbaum Oink o.O
 
The reply to my own comment was "I don't know any of the facts of this story but I am prepared to bet it was 100% the paparazzo's fault."
It got upvoted hugely!
Then I reply "So let's just assume Justin Bieber was in the right because we don't like paparazzi and because we like Justin Bieber, based purely on hearsay? A little biased, aren't you? "
 
well, Paparazzi aren't really known for being the nicest and modest people there are
 
Again downvote city
True but that doesn't give anyone the right to run one over
 
Neil, link ?
maybe a belieber
 
1:00 PM
yes, i want to downvote you as well :D
 
ah, -36, it's not so bad
 
Go ahead. I'm already downvoted to hell
 
@Neil The real question is why you're reading such a shit thread to begin with
 
haha
 
1:02 PM
@OliverSalzburg it was in /r/music. Don't judge :p
 
Do you have bieber fever?
 
err, was he not just tired of doing those concerts ?
(despite he's a spoiled brat)
 
It feels like I'm actually that guy who gets downvoted for not using enough jquery
2
 
I've met him a few times, he's a prick.
grade a prick.
 
The comments are absurdly biased
 
1:05 PM
@rlemon I imagine boatloads of money and godlike celebrity status at that age does some weird things to a person
 
@KendallFrey No, I did not put it on a server. But I gave the link to the code, you can run it locally
 
but i don't wanna....
 
I guess I'd be a proper cunt as well
 
@GNi33 idk, maybe, never had it.
 
12 hours ago, by Kendall Frey
I'm so lazy right now. I have a reddit post I should be making, and I don't even want to do that.
 
1:09 PM
tl;dr → Too Lazy; Didn't Reddit
 
@GNi33 yes it does. Being attractive isn't a factor. Look to Ed sheeran. He's not attractive, but you clearly see screaming adolescent women near him
* Also, being
 
Hi to all
 
i have some doubt, when i create pdf using blob, but i cant change the name of pdf and title, currently pdf title as displaying blob random text
window.open(blobURL, "_blank", "location=no,menubar=no,toolbar=no,scrollbars=no,resizable=no,status=no,titlebar‌​=no,top=0,left=0,width=400,height=400,replace=true");
 
Oh shit Factorio 0.15 is now the stable branch
 
1:16 PM
but window.open("test.pdf", "_blank", "location=no,menubar=no,toolbar=no,scrollbars=no,resizable=no,status=no,titlebar‌​=no,top=0,left=0,width=400,height=400,replace=true"); if i use these code it will display pdf title as test.pdf but instead of test.pdf we use bloburl
 
Is there a pattern or term for when you check properties conditionally before trying to hit them? i.e. if (item && item.property && item.property.value)
 
Hi to everyone, is it possible to fix this issue?
 
yes it is
 
@AbdurRehman Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
 
1:21 PM
@Austin my name is Austin Williams awesome!
 
woohoo! high fives william, I will look into that Oliver
I can't even spell because it was so epic >.>
 
NSFW?
 
@rlemon Is it amazing?
 
quite
 
1:25 PM
that was a terrible joke
 
no, it was outstanding.
 
@OliverSalzburg I've my own function for that
:o
 
@rlemon so lengthy, it is really a joke or jokes :P
 
@AbdurRehman that's a short joke
gist.github.com/rlemon/4586368 here's a medium joke
 
1:28 PM
@rlemon oh man, i need to code as well :d
@rlemon use some compression tool for your jokes, will mod_deflate work?
 
no, but the joke will make you sigh, so close enough
 
@rlemon where can I find rest of the story ?
 
for a moment, I thought that you had a giant kerb there
 
I wonder what the Isp of beer is
 
1:34 PM
^ updated do deal with corners.
 
hurray
 
;-)
 
if you sell a bonded animal in rimworld, they can still die later on, and you can still get buffed by it
 
Still doesnt end game if you click on a bomb though
 
apparently.
 
1:42 PM
@Neal Maybe you still had a good leg
 
@OliverSalzburg lol
 
I found it much more frustrating that there is no fireworks after clearing the board
Okay, I also triggered all bombs, but still
No civilian casualties. Firework would be in order
 
The ads sometimes...
senior : 18k$ in London ?
 
@Neal first click ... got alerted. ;_;
 
hmmm?
 
1:44 PM
@DenysSéguret lol
Is that even above minimum wage?
 
@KarelG lol yea. I dont know all the ins and outs of minesweeper. Apparently in the real one it seeds after first click (to make sure you dont hit bomb on first click)
 
@BenFortune
^^^
 
that's why I cried
I still recall that first click has a small additional delay
(i'm talking about being on a pre-2000 pc ...)
 
@Neal also the real one lets you uncover squares by double-button clicking on a number with enough nearby flags
 
@DenysSéguret Remote
 
1:46 PM
@KendallFrey What do you mean?
@OliverSalzburg So what?
still nothing.
 
@OliverSalzburg And ? I'm working full remote and I have a way bigger salary. Working remote doesn't imply a lower salary, on the contrary
 
@Neal If you click with both mouse buttons simultaneously, it will uncover any neighbouring squares that cannot have a bomb
 
@DenysSéguret You seemed to make a point of it being in London
 
Essentially if you double-button click a 1 with 1 flag nearby, it does the same as a 0 does automatically
 
@KendallFrey and if they do it blows them up? I still down understand. double clicking on a number? or empty not clicked space?
 
1:48 PM
How much you make wasn't really part of the story ;D
 
@Neal On a number. It's faster to click on a number and uncover, say 3 neighouring squares than clicking each individually
 
@KendallFrey Interesting. maybe ill work that in later.
im trying to fig out how to reset the game with react. it is being annoying atm, and I cannot figure it out.
 
function free(ab) {
  //var ab = new ArrayBuffer(1000);
  //var view = new Uint8Array(ab);
  //for(var i = 0; i < 1000; i++) view[i] = i;
  let worker;
  if(free.worker) {
    worker = free.worker;
  } else {
    var response = ` self.onmessage = function(e){ };`;

    var blob;
    try {
      blob = new Blob([response], {type: 'application/javascript'});
    } catch (e) { // Backwards-compatibility
      blob = new BlobBuilder();
      blob.append(response);
      blob = blob.getBlob();
    }
I need stronger ale
 
@rlemon £7.50 an hour if you're over 25
 
@DenysSéguret Maybe its monthly? :D
 
1:50 PM
not terrible. > 25 is strange
here it's >18 for student wages cutoff iirc
 
25-21 is £7.05 iirc
 
11.40 is minimum here, 10.70 for students.
and student minimum is <18 years old <28 hours worked for the week.
if you go above either, you get 11.40
 
for the whole year ?
in my country, there is a max 500 hours per yearfor students that works
 
@KendallFrey do you know a good site that has all of the minesweeper rules? I could not find one last night...
 
My brain? That's all I know
 
1:53 PM
lol
so double clicking on a flag or on a number? Sorry if I am confused.
 
number
 
also can double clicking cause bombs to go off?
 
@BenjaminGruenbaum sure, still relevant?
 
@Neal only if you incorrectly flagged an empty space
 
Neal, you can use the strategy solutions on the internet as directive
 
1:55 PM
I want to match this regex https:\/\/www\.google\..*#q=.* in tampermonkey so that script fired when this url is visited
But unable to do so.
 
@KarelG link me? I could not find much. only videos and I was not in the mood
 
can someone help me
 
@SurajJain An apple a day keeps the doctor away.
!!welcome SurajJain
 
!!undo
he did ask his question Neal
not very well, but it was asked.
 
he's almost a vamp
 
@rlemon "can someone help me" flagged my welcome mat
 
try reading more than one message Neal.
not like I haven't been telling you to read context for 5 years....
 
@rlemon Really the only question was "Can someone help me"
 
@kende
@KendallFrey Oh and how was it
 
1:57 PM
> I want to match this: blah
was the implied question
 
@rlemon There was no real question
but whatever.
lyfe goes on
 
it's a googleable question tho
 
match this regex https:\/\/www\.google\..*#q=.* in tampermonkey
 
I got a phone call to be on.
 
@rlemon That's not a question, it's "this doesn't work"
 
1:57 PM
@Neal How was there no real question Neal
 
I'm not defending the question, I'm saying the welcome message wasn't needed in this case.
yall can bitch all you want.
 
@KendallFrey This works, I tried on regex site, But including

"@match https:\/\/www\.google\..*#q=.*" in tampermonkey does not work
 
And I just want to know how to add it , I reaseached and visited their docs
 
1:59 PM
If you do not have enough courtesy, you can just stop
 
HAMMERTIME!
 

« first day (2476 days earlier)      last day (2475 days later) »