-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbookmarklet.html
31 lines (31 loc) · 8.56 KB
/
bookmarklet.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Image Darkener Bookmarklet Tool</title>
<script>
/*(function(){
var darkener=document.createElement('style');darkener.innerText='img{filter: brightness(50%);}';var head=document.getElementsByTagName('head')[0];head.appendChild(darkener);
})();*/
</script>
<style>
body {
background-color: #444444;
}
p,h1,h2,a {
color: white;
font-family:Verdana, Geneva, Tahoma, sans-serif
}
</style>
</head>
<body>
<h2>Image Darkener Bookmarklet Tool</h2>
<p>As suggested by <b>u/idonutlikedatdough</b>.<br />
To install it, simply drag it to your Bookmarks bar. Press it like any other bookmark to run it on the page.
This darkens EVERY image on site, apologies if that's an issue. <br />
<a href="javascript:(function(){var darkener=document.createElement('style');darkener.innerText='img{filter: brightness(50%);}';var head=document.getElementsByTagName('head')[0];head.appendChild(darkener);})();console.log('Images should be darkened!');">Reddit Image Darkener</a> -- drag this to your bookmarks bar!</p>
<h1>Test the bookmarklet here to see it in action</h1>
<img src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxISEhUSExIVFRUWFRYVFxYVFRUYFhUXFxUYFhcVFRcYHSggGBolHRcVITEhJSkrLi4uFx8zODMtNygtLisBCgoKDg0OGhAQGi0lHx0tLS0tLS0tLSstLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tKy0tLS0tLS0tLS0tLf/AABEIAMIBAwMBIgACEQEDEQH/xAAbAAABBQEBAAAAAAAAAAAAAAACAAEDBAUGB//EAD4QAAEDAQQHBgQEBQQDAQAAAAEAAhEDBBIhMQVBUWFxkaEGE4Gx0fAUIlLBMkLh8SNDYoKSFRZTcjOi0gf/xAAbAQADAQEBAQEAAA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