Skip to content

Instantly share code, notes, and snippets.

View omzi's full-sized avatar
🦄
Crafting amazing digital experiences ✨

Omezibe Obioha omzi

🦄
Crafting amazing digital experiences ✨
View GitHub Profile
@omzi
omzi / caseInverse.js
Last active November 17, 2020 09:01
Returns a string with inversed cases
/**
* Returns a string with inversed cases
* @param {String} string The 'string' to inverse the cases of its characters
*/
const caseInverse = string => string.split('').map(letter => letter.toUpperCase() === letter ? letter.toLowerCase() : letter.toUpperCase()).join('');
module.exports = caseInverse;
@omzi
omzi / chrome-autofill-transparent-fix.css
Created June 18, 2025 15:35
CSS fix to remove browser autofill background colour. Works in Edge, Chrome, & other Chromium-based browsers (2025).
/*
Autofill Background Transparency CSS Fix
Author: @omzi
Date: 2025
Works in: Chrome, Edge, & other Chromium-based browsers
This trick uses -webkit-background-clip: text to effectively
hide the browser's default yellow/gray autofill background without
needing JavaScript or animation tricks.
*/