212 private links
Simply good
Country flag code to unicode emoji flag
function getFlagEmoji(countryCode) {
const codePoints = countryCode
.toUpperCase()
.split('')
.map(char => 127397 + char.charCodeAt());
return String.fromCodePoint(...codePoints);
}
Simple projects that are handy to learn HTML, CSS and Javascript
Insert a code snippet in one line as a bookmark:
javascript: (() => {
// Code here
})();
For example:
- Find a "Jobs", "Careers" or "Hiring" link in the page, and click it.
- Find all email addresses on the current page, and display them in an alert.
These are not limited with permissions, so we should only execute code we checked.
A way to work with indexedDB in the browser.
They are different. HTML attributes are set on the HTML tags, whereas DOM properties are set in JS on the HTMLElement.
This post highlights the differences.
Rights management in JS
The UnJS project is getting bigger and has now multiple .
The major advantage of UnJS is they are independent of a platform such as NodeJS, Deno, Bun, etc...
They simply rely on ECMAScript.
A small JavaScript library to create and animate annotations on a web page.
Nice. With a bit of interactivity, the user can highlights everything.
How to link webmentions.io messages, likeCount, replyCount and reportCount to a personal blog with a few JS lines.
Crazy how much MB of JS are needed
Simulate a terminal in the UI
The matching expression ([^\\])"(.*)([^\\])":
should use: $1$2$3:
It seems to be the best package manager as it also includes a way to manage node versions.
It avoid to rely on both npm and nvm for example.
Let's create a holiday card generator by learning how to get access to a user's webcam and compose a screenshot.
Create an accessible <marquee>
tag
How to log performance information client-side.