1
19
submitted 1 week ago by [email protected] to c/[email protected]
2
3
submitted 1 week ago by [email protected] to c/[email protected]
3
15
submitted 1 week ago by [email protected] to c/[email protected]
4
2
submitted 2 weeks ago by [email protected] to c/[email protected]
5
9
submitted 3 weeks ago by [email protected] to c/[email protected]

I stumbled on the exact same issue described at the end of the "The same issue, but with web platform functions" section today, thought it might be worth sharing that article here.

6
3
submitted 3 weeks ago by [email protected] to c/[email protected]
7
10
submitted 4 weeks ago by [email protected] to c/[email protected]
8
1
submitted 1 month ago* (last edited 1 month ago) by [email protected] to c/[email protected]

✍️ Reusable API proxy in just a few lines of JavaScript

For my project Mentions United, which collects interactions from various platforms via API to display them on the own page, at some point I needed a way to hide the authentication tokens required for some APIs from being used by unauthorized parties. You simply don’t leave your security keys lying around in the code, especially not if it’s publicly visible on GitHub. ...

9
9
submitted 1 month ago by [email protected] to c/[email protected]
10
2
submitted 1 month ago by [email protected] to c/[email protected]
11
11
submitted 2 months ago by [email protected] to c/[email protected]
12
10
Biome v2.0 beta (biomejs.dev)
submitted 2 months ago by [email protected] to c/[email protected]
13
0
Announcing Babylon.js 8.0 (blogs.windows.com)
submitted 2 months ago by [email protected] to c/[email protected]
14
3
submitted 2 months ago by [email protected] to c/[email protected]
15
3
Tampermonkey redirect script (discuss.tchncs.de)
submitted 3 months ago by [email protected] to c/[email protected]

I don't know if anyone here uses [Tamper|Grease]monkey, but I asked my LLM to come up with a redirect from Xitter and it gave me this gem:

// ==UserScript==
// @name         Redirect x.com to xcancel.com
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://x.com/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    var url = window.location.href;
    url = url.replace("https://x.com/", "https://xcancel.com/");
    window.location.replace(url);
})();

Works like a charm.

16
-1
submitted 3 months ago* (last edited 3 months ago) by [email protected] to c/[email protected]
17
6
submitted 3 months ago by [email protected] to c/[email protected]
18
28
submitted 3 months ago by [email protected] to c/[email protected]
19
21
submitted 3 months ago by [email protected] to c/[email protected]
20
58
JavaScript Temporal is coming (developer.mozilla.org)
submitted 4 months ago by [email protected] to c/[email protected]
21
8
submitted 4 months ago by [email protected] to c/[email protected]

The title says it all. Let's talk about one of JavaScript's most underrated features: Object.freeze(). This powerhouse of immutability isn't just another method - it's your secret weapon for writing safer, more predictable code ✨.

I'll be honest, when I first discovered Object.freeze(), I mostly ignored it. "Just don't mutate your objects," I thought. But as my applications grew more complex, I started to see its true value. Now, it's an essential part of my toolkit.

22
9
submitted 4 months ago* (last edited 4 months ago) by [email protected] to c/[email protected]

hello. I recently asked here for help with Lemmy HTTP API and someone said "why don't you use lemmy-js-client?". i tried to add it and...

first i searched the internet about this library and it turns out that it is an npm library... (I have github pages) i searched different variations of the library and found a cdn version of it. i tried to add it. it was a hell of a torture.... i added it the way I add cdn libraries, nothing. i searched all over the internet, but found null. i even asked chatgpt! to no avail. the library (and everything I tried to get out of it) turned into undefined!

what am I supposed to do? this is cdn version what i tried to add
if u want here is source code

23
6
submitted 4 months ago by [email protected] to c/[email protected]

hello! im developing lemmy client (on html5). i tried to do login function but... when i try to fetch /v3/user backend with auth-token it give me error:

{
  "error": "no_id_given"
}

but why? what im doing wrong? if you want here is my source file on github ( function: getLoggined() )

24
3
submitted 4 months ago by [email protected] to c/[email protected]

hello! im developing lemmy client (on html5). i tried to do login function but... when i try to fetch /v3/user backend with auth-token it give me error:

{
  "error": "no_id_given"
}

but why? what im doing wrong? if you want here is my source file on github ( function: getLoggined() )

25
18
submitted 5 months ago by [email protected] to c/[email protected]
view more: next ›

JavaScript

2363 readers
1 users here now

founded 2 years ago
MODERATORS