Discuss Scratch

--Explosion--
Scratcher
1000+ posts

Epic dark mode bookmarklet!!

Hi guys! As I was falling asleep last night I had an epiphany, What if I could make a dark mode bookmarklet with CSS filters?lol So I set out to do do. Below is the bookmarklet I made:
I removed the code because it's evidently not allowed :(
It works using CSS filters. First I inverted everything, which wouldn't make a great dark mode, images would look terrible, the colors would be messed up, a lot more too. But then I realized that by applying the
hue-rotate(180deg)
filter I could invert the brightness but not the color! After that just some more simple testing and styling (including forcing all text to be white, which is sort of annoying, but the only easy way to do it) I finished it! It looks great everywhere that is light normally but don't try it on websites that are already in dark mode! Below are my results:

(YouTube, not the included YouTube dark mode)


Scratch discuss

A topic

The scratch homepage

Google docs

Anyways! Thanks for checking out my post! I'm pretty proud of this bookmarklet because, well, it's a bookmarklet! Sure browser extensions can do better Not linking them, chill But I think it's pretty good!

–Explosion–

Last edited by --Explosion-- (Oct. 18, 2020 00:34:54)

herohamp
Scratcher
1000+ posts

Epic dark mode bookmarklet!!

I don't think giving out bookmarklets is allowed
--Explosion--
Scratcher
1000+ posts

Epic dark mode bookmarklet!!

herohamp wrote:

I don't think giving out bookmarklets is allowed
( I'll edit the post then.
-CloudGate-
Scratcher
1000+ posts

Epic dark mode bookmarklet!!

cee bee look like zombie
--Explosion--
Scratcher
1000+ posts

Epic dark mode bookmarklet!!

-CloudGate- wrote:

cee bee look like zombie
lol that's her pfp.
Wainggan
Scratcher
500+ posts

Epic dark mode bookmarklet!!

I can't find anything that says you can't give out bookmarklets
--Explosion--
Scratcher
1000+ posts

Epic dark mode bookmarklet!!

Wainggan wrote:

I can't find anything that says you can't give out bookmarklets
Function code I thnk.
Jeffalo
Scratcher
1000+ posts

Epic dark mode bookmarklet!!

--Explosion-- wrote:

Wainggan wrote:

I can't find anything that says you can't give out bookmarklets
Function code I thnk.
any code that could theoretically work is extremely dangerous to be posted on the advanced topics section of a forum about a coding site because it could do bad things.
Maximouse
Scratcher
1000+ posts

Epic dark mode bookmarklet!!

Wainggan wrote:

I can't find anything that says you can't give out bookmarklets
https://scratch.mit.edu/discuss/topic/284272/ says “We want to announce today that we’re shifting our policy related to browser extensions, userscripts, userstyles, and other similar external software.” Bookmarklets count as “similar external software”.
--Explosion--
Scratcher
1000+ posts

Epic dark mode bookmarklet!!

Maximouse wrote:

Wainggan wrote:

I can't find anything that says you can't give out bookmarklets
https://scratch.mit.edu/discuss/topic/284272/ says “We want to announce today that we’re shifting our policy related to browser extensions, userscripts, userstyles, and other similar external software.” Bookmarklets count as “similar external software”.
XD lol -_- =/ ='( T~T

Powered by DjangoBB