Skip to content

Commit 67a6a9b

Browse files
committed
INIT
0 parents  commit 67a6a9b

3 files changed

Lines changed: 57 additions & 0 deletions

File tree

LICENSE

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Copyright 2025 Modula <https://modula.dev>
2+
3+
Redistribution and use in source and binary forms, with or without modification,
4+
are permitted provided that the following conditions are met:
5+
6+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7+
8+
2. Redistributions in binary form must reproduce the above copyright notice,
9+
this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
10+
11+
3. Neither the name of the copyright holder nor the names of its contributors
12+
may be used to endorse or promote products derived from this software without specific prior written permission.
13+
14+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
15+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
16+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17+
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
18+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
19+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
20+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21+
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
22+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
23+
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

manifest.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"manifest_version": 3,
3+
"name": "styleless",
4+
"version": "0.0.0",
5+
"description": "On styleless, white text websites, this saves you from getting flashbanged",
6+
"permissions": ["scripting"],
7+
"host_permissions": ["<all_urls>"],
8+
"content_scripts": [{
9+
"matches": ["<all_urls>"],
10+
"js": ["styleless.js"],
11+
"run_at": "document_idle"
12+
}]
13+
}

styleless.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
const hasStyleTag = document.getElementsByTagName("style").length > 0;
2+
const hasLinkCSS = !!document.querySelector('link[rel="stylesheet"]');
3+
4+
if (!hasStyleTag && !hasLinkCSS) {
5+
const style = document.createElement("style");
6+
style.textContent = `
7+
body {
8+
font-family: 'Courier New', Courier, monospace;
9+
text-shadow: 2px 2px 4px black;
10+
background-color: #111;
11+
color: white;
12+
margin: 0px;
13+
padding: 64px 15%;
14+
}
15+
a {
16+
text-decoration: none;
17+
color: #46f;
18+
}
19+
`;
20+
document.head.appendChild(style);
21+
}

0 commit comments

Comments
 (0)