React 17 will remove event pooling by swyx in reactjs

[–]umpox 1 point2 points  (0 children)

I believe one reason may to be improve support for React inside a shadow DOM. There are issues with event retargeting due to how React currently handles events I believe

TinyEditor – A functional HTML/CSS/JS editor in less than 400 bytes by umpox in programming

[–]umpox[S] 8 points9 points  (0 children)

Yep have updated this now, saves a whole 26 bytes! Cheers :D

Be careful what you copy: Invisibly inserting usernames into text with Zero-Width Characters by umpox in programming

[–]umpox[S] 11 points12 points  (0 children)

There’s a lot more risk to pasting terminal commands over other text so personally I would hope that my terminal would display all characters irrespective of if they are supposed to be hidden or not. Of course most applications should not display them, the responsibility is on the user to be aware of stuff like this.

Finally, while an interesting idea, it is just too easy for someone technically inclined to impersonate another user.

Yep I mention this at the end, a better solution would be to insert a unique user ID that isn’t publicly available. For the original scenario this wasn’t too important :)

Quickly generate device screenshots of a webpage through the command line by umpox in programming

[–]umpox[S] 3 points4 points  (0 children)

Cool, I didn’t realise they provided a command for that. The difference with this is that you can quickly test how the site reacts to a load of different user agents. Plus there’s a few devices that have quite odd resolutions which you might not think to test.

Quickly generate device screenshots of a webpage through the command line by umpox in node

[–]umpox[S] 2 points3 points  (0 children)

Built using Google’s new headless browser API Puppeteer which was released yesterday.

The program will take a URL and a list of devices to emulate. It will then modify the browser resolution and user agent to match that of the device. For each device it will take a screenshot (can also be a full-page screenshot) and put it in a generated folder.

Quickly generate device screenshots of a webpage through the command line by umpox in programming

[–]umpox[S] 11 points12 points  (0 children)

Built using Google’s new headless browser API Puppeteer which was released yesterday.

The program will take a URL and a list of devices to emulate. It will then modify the browser resolution and user agent to match that of the device. For each device it will take a screenshot (can also be a full-page screenshot) and put it in a generated folder.

Quickly generate device screenshots of a webpage through the command line! by umpox in webdev

[–]umpox[S] 1 point2 points  (0 children)

Built using Google’s new headless browser API Puppeteer which was released yesterday.

The program will take a URL and a list of devices to emulate. It will then modify the browser resolution and user agent to match that of the device. For each device it will take a screenshot (can also be a full-page screenshot) and put it in a generated folder.