Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
ewsgit authored Oct 17, 2023
1 parent d09a2cf commit 92914f4
Show file tree
Hide file tree
Showing 32 changed files with 1,319 additions and 14 deletions.
1 change: 1 addition & 0 deletions background.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log("EWSGIT-OS Browser Extension Loaded!")
49 changes: 35 additions & 14 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,57 +1,58 @@
{
"name": "EwsgitOS Web Extension",
"description": "The EwsgitOS website customizations",
"version": "0.0.1",
"version": "0.0.2",
"manifest_version": 3,
"author": "Ewsgit",
"permissions": ["activeTab", "storage", "scripting", "declarativeNetRequest"],
"host_permissions": ["https://*/*", "http://*/*"],
"content_scripts": [
{
"matches": [ "https://*.youtube.com/*" ],
"css": [ "./youtube.com/all.css" ]
"css": [ "./src/sites/youtube.com/all.css" ],
"js": ["./src/sites/youtube.com/youtube.js"]
},
{
"matches": ["https://music.youtube.com/history"],
"js": [ "./music.youtube.com/history.js" ]
"matches": [ "https://music.youtube.com/history" ],
"js": [ "./src/sites/music.youtube.com/history.js" ]
},
{
"matches": [ "https://searx.be/" ],
"css": [ "./searx.be/index.css" ]
"css": [ "./src/sites/searx.be/index.css" ]
},
{
"matches": [ "https://searx.be/search" ],
"css": [ "./searx.be/search.css" ]
"css": [ "./src/sites/searx.be/search.css" ]
},
{
"matches": [ "https://www.google.com/*", "https://www.google.co.uk/*" ],
"css": [ "./google.com/all.css" ]
"css": [ "./src/sites/google.com/all.css" ]
},
{
"matches": [ "https://www.sparxmaths.uk/student*" ],
"js": [ "sparxmaths.uk/bookwork.js" ],
"css": [ "sparxmaths.uk/student.css" ],
"js": [ "./src/sites/sparxmaths.uk/bookwork.js" ],
"css": [ "./src/sites/sparxmaths.uk/student.css" ],
"run_at": "document_end"
},
{
"matches": [ "https://auth.sparxmaths.uk/*" ],
"css": [ "./sparxmaths.uk/auth.css" ]
"css": [ "./src/sites/sparxmaths.uk/auth.css" ]
},
{
"matches": [ "https://*.sparxmaths.com/*" ],
"js": [ "./sparxmaths.com/redirect.js" ]
"js": [ "./src/sites/sparxmaths.com/redirect.js" ]
},
{
"matches": [ "https://twitter.com/*" ],
"css": [ "./twitter.com/all.css" ]
"css": [ "./src/sites/twitter.com/all.css" ]
},
{
"matches": [ "https://manchesterworld.uk/*" ],
"css": [ "./manchesterworld.uk/all.css" ]
"css": [ "./src/sites/manchesterworld.uk/all.css" ]
},
{
"matches": [ "https://drafts.csswg.org/*" ],
"css": [ "./csswg.org/drafts.css" ]
"css": [ "./src/sites/csswg.org/drafts.css" ]
},
{
"matches": [ "https://*.sharepoint.com/*" ],
Expand Down Expand Up @@ -80,6 +81,18 @@
{
"matches": [ "https://slopegame.io/" ],
"js": [ "./slopegame.io/redirect.js" ]
},
{
"matches": [ "https://developer.mozilla.org/*" ],
"css": [ "./developer.mozilla.org/main.css" ]
},
{
"matches": [ "https://*.bing.com/*" ],
"css": [ "./bing.com/all.css" ]
},
{
"matches": [ "https://localhost:6543/block" ],
"css": [ "./siteblocker-localhost6543/block.css" ]
}
],
"declarative_net_request": {
Expand All @@ -93,7 +106,15 @@
"id": "youtube-com",
"enabled": true,
"path": "youtube.com/block_rules.json"
},
{
"id": "siteblocker-localhost6543",
"enabled": true,
"path": "siteblocker-localhost6543/block_rules.json"
}
]
},
"background": {
"service_worker": "background.js"
}
}
9 changes: 9 additions & 0 deletions src/sites/bing.com/all.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#mfa_root {
display: none;
visibility: hidden;
}

#sydneyLetsChatWidgetContainer {
display: none;
visibility: hidden;
}
32 changes: 32 additions & 0 deletions src/sites/csswg.org/drafts.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
body {
--bg: #222;
--def-bg: #111;
--defrow-border: #333;
}

.mdn-anno > .mdn-anno-btn > span {
background-color: transparent !important;
}

* {
font-family: roboto, sans-serif !important;
}

.note,
.example,
.def,
.advisement,
.wpt-tests-block {
border-radius: 0.5rem;
}

.wpt-tests-block:not([open]) > summary {
padding: 0.5rem !important;
background-color: #333 !important;
border-radius: 0.5rem;
color: #999;
}

.wpt-tests-block:not([open]) {
min-height: 2rem;
}
4 changes: 4 additions & 0 deletions src/sites/developer.mozilla.org/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#root > div > div.main-wrapper > div > div,
#root > div > div.top-banner.visible {
display: none;
}
41 changes: 41 additions & 0 deletions src/sites/duckduckgo.com/homepage.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#__next > main > article > div.legacy-homepage-variants_hero__t5u43 > div:nth-child(2) > section.legacy-homepage_ctaSection__5siuM,
#__next > main > article > div.legacy-homepage-variants_hero__t5u43 > div.legacy-homepage-variants_scrollCta__hNjqv.center_root__Uf1xM.center_intrinsic__mk_Ab.center_andText__ejUnC,
#features {
display: none;
}

#__next > main > article > div.legacy-homepage-variants_hero__t5u43 > div:nth-child(2) > section:first-child {
width: 100%;
height: auto;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}

#__next > main > article > div.legacy-homepage-variants_hero__t5u43 {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}

body {
overflow: hidden;
}

@media (min-width: 480px) {
#__next > main > article > div.legacy-homepage-variants_hero__t5u43 > header {
width: 30rem;
margin: 0;
padding: 0;
}

#__next > main > article > div.legacy-homepage-variants_hero__t5u43 > header > div > button:last-child {
margin-left: auto;
}

#searchbox_homepage {
width: 30rem;
}
}
Loading

0 comments on commit 92914f4

Please sign in to comment.