From 1944a804c7b8731dc9c8ff9c09817592fdf45c30 Mon Sep 17 00:00:00 2001 From: ewsgit Date: Mon, 9 Jan 2023 18:09:36 +0000 Subject: [PATCH] add support for new websites --- .../generated_indexed_rulesets/_ruleset1 | Bin 523 -> 627 bytes background.js | 3 + core/background.js | 13 -- core/background.ts | 12 - csswg.org/drafts.css | 32 +++ google.com/all.css | 218 ++++++++++++++++++ google.com/index.css | 57 ----- jsconfig.json | 5 + manchesterworld.uk/all.css | 7 + manifest.json | 37 +-- package-lock.json | 101 -------- package.json | 18 -- sharepoint.com/all.css | 60 +++++ sparxmaths.uk/background.js | 0 sparxmaths.uk/block_rules.json | 13 ++ sparxmaths.uk/bookwork.js | 45 +++- sparxmaths.uk/bookwork.ts | 21 -- tsconfig.json | 106 --------- twitter.com/all.css | 7 + yarn.lock | 33 --- 20 files changed, 400 insertions(+), 388 deletions(-) create mode 100644 background.js delete mode 100644 core/background.js delete mode 100644 core/background.ts create mode 100644 csswg.org/drafts.css create mode 100644 google.com/all.css delete mode 100644 google.com/index.css create mode 100644 jsconfig.json create mode 100644 manchesterworld.uk/all.css delete mode 100644 package-lock.json delete mode 100644 package.json create mode 100644 sharepoint.com/all.css create mode 100644 sparxmaths.uk/background.js delete mode 100644 sparxmaths.uk/bookwork.ts delete mode 100644 tsconfig.json create mode 100644 twitter.com/all.css delete mode 100644 yarn.lock diff --git a/_metadata/generated_indexed_rulesets/_ruleset1 b/_metadata/generated_indexed_rulesets/_ruleset1 index 5806b61fee3ee64646b3fc7e1dcf643af67f63ce..6a77eea40a82396491940672306da8ff865e13b2 100644 GIT binary patch literal 627 zcmbu7&q~8U5XPrA#vnQDp$88=oH}}`KXGHX{m_0)frz9w#h+@1EjX~sq z&=L3@U>ywc{sSIC0KWUaKZXi$<<=l3KY?;B?ll5@CI(!abMKJ5J|O=KxiKnR=fc$X zUY4#0#PoZCF2D@jfG5B+u$L*=np#8?)oP7zj7qN{g6qh1u-U>-8}!1u)S z@oYX4On>4(c9d^hP-53Yz8lUTa%02=sI_j@B+tvGtQwuJD&5IaWkoA9)fV07s?fE{ zKHm7ez~lSc%65i*KVu3x0kP}rzn^e0!aiH^e)#-3@SbF&tF9a?=;#ADI`}xgS^WOn z6d%A7zWm9}J^wl9W;Pq*xoEp;wYk1u*8ei+;l+ zgz(Y#{T`aY`LKrg+$nkl@=_h`i9x=~os;|XkNhukW1Kf#C*FJ8%Y3MT_^Xv=hC^RL#McmP=%`eg`5(;D@K9NQ#AwKhB!vO&vlknOINh{!ts~W Uys6Tz$=h|EyRu8)U$ayD1^PfVBme*a diff --git a/background.js b/background.js new file mode 100644 index 0000000..dbc613c --- /dev/null +++ b/background.js @@ -0,0 +1,3 @@ +chrome.tabs.onUpdated.addListener(() => { + console.log("updated tab"); +}); diff --git a/core/background.js b/core/background.js deleted file mode 100644 index 7f37376..0000000 --- a/core/background.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -chrome.runtime.onInstalled.addListener(() => { - chrome.runtime.onMessage.addListener((request, sender, sendResponse) => { - var _a; - console.log((_a = sender === null || sender === void 0 ? void 0 : sender.tab) === null || _a === void 0 ? void 0 : _a.url); - }); - // chrome.storage.sync.set({ key: value }).then(() => { - // console.log("Value is set to " + value); - // }); - // chrome.storage.sync.get(["key"]).then(result => { - // console.log("Value currently is " + result.key); - // }); -}); diff --git a/core/background.ts b/core/background.ts deleted file mode 100644 index 0dcc0da..0000000 --- a/core/background.ts +++ /dev/null @@ -1,12 +0,0 @@ -chrome.runtime.onInstalled.addListener(() => { - chrome.runtime.onMessage.addListener((request, sender, sendResponse) => { - console.log(sender?.tab?.url); - }); - // chrome.storage.sync.set({ key: value }).then(() => { - // console.log("Value is set to " + value); - // }); - - // chrome.storage.sync.get(["key"]).then(result => { - // console.log("Value currently is " + result.key); - // }); -}); diff --git a/csswg.org/drafts.css b/csswg.org/drafts.css new file mode 100644 index 0000000..ca7b82a --- /dev/null +++ b/csswg.org/drafts.css @@ -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; +} diff --git a/google.com/all.css b/google.com/all.css new file mode 100644 index 0000000..d94fc11 --- /dev/null +++ b/google.com/all.css @@ -0,0 +1,218 @@ +.gb_Ba { + border-radius: 0.5rem !important; +} + +.JZFjpd { + border-radius: 1rem !important; +} + +.gb_Se button svg, +.gb_A { + border-radius: 0.5rem !important; +} + +.uU7dJb { + border-bottom: 0 !important; + padding-bottom: 0 !important; +} + +.MV3Tnb, +.gb_d { + display: none !important; +} + +iframe[src="https://ogs.google.com/u/0/widget/callout/sid?prid=19001869&pgid=748494848&puid=b9973bdff5742177&dc=1&origin=https%3A%2F%2Fwww.google.com&cn=callout&pid=1&spid=538&hl=en"] +{ + visibility: hidden !important; +} + +.FPdoLc.lJ9FBc { + display: none !important; +} + +.uU7dJb { + display: none !important; +} + +body + > div.L3eUgb + > div.o3j99.ikrT4e.om7nvf + > form + > div:nth-child(1) + > div.A8SBwf + > div.RNNXgb { + border-radius: 0.5rem; +} + +body + > div.L3eUgb + > div.o3j99.ikrT4e.om7nvf + > form + > div:nth-child(1) + > div.A8SBwf.emcav + > div.UUbT9 + > div.aajZCb { + border-radius: 0.5rem; + padding-bottom: 0; + margin-top: 0.5rem; +} + +body + > div.L3eUgb + > div.o3j99.ikrT4e.om7nvf + > form + > div:nth-child(1) + > div.A8SBwf.emcav + > div.UUbT9 + > div.aajZCb + > div.lJ9FBc + > center { + display: none; +} + +body + > div.L3eUgb + > div.o3j99.ikrT4e.om7nvf + > form + > div:nth-child(1) + > div.A8SBwf.emcav + > div.UUbT9 + > div.aajZCb + > div.xtSCL { + display: none; +} + +body + > div.L3eUgb + > div.o3j99.ikrT4e.om7nvf + > form + > div:nth-child(1) + > div.A8SBwf.emcav + > div.UUbT9 + > div.aajZCb + > div.lJ9FBc { + display: none; +} + +body > div.L3eUgb > div.o3j99.LLD4me.yr19Zb.LS8OJ { + min-height: none; + max-height: none; + height: max-content; +} + +body > div.L3eUgb { + display: grid; + place-items: center; + grid-template-rows: 1fr 1fr; + height: 100vh; + width: 100%; + position: relative; +} + +body > div.L3eUgb > div.o3j99.n1xJcf.Ne6nSd { + width: 100%; + position: absolute; + top: 0; + left: 0; +} + +#gb > div > div:nth-child(1) { + display: none; +} + +body > div.L3eUgb > div.o3j99.c93Gbe { + display: none; +} + +body > div.L3eUgb > div.o3j99.LLD4me.yr19Zb.LS8OJ { + place-self: flex-end center; +} + +body > div.L3eUgb > div.o3j99.ikrT4e.om7nvf { + place-self: flex-start center; + min-width: 50%; +} + +#sbfblt { + display: none; +} + +body + > div.L3eUgb + > div.o3j99.ikrT4e.om7nvf + > form + > div:nth-child(1) + > div.A8SBwf.emcav + > div.UUbT9 + > div.aajZCb { + transition: all 250ms ease-in-out; +} + +body + > div.L3eUgb + > div.o3j99.ikrT4e.om7nvf + > form + > div:nth-child(1) + > div.A8SBwf.emcav + > div.UUbT9 + > div.aajZCb { + opacity: 0; +} + +body + > div.L3eUgb + > div.o3j99.ikrT4e.om7nvf + > form + > div:nth-child(1) + > div.A8SBwf.emcav.sbfc + > div.UUbT9 + > div.aajZCb { + opacity: 1; +} + +#gbwa > div > a { + border-radius: 0.5rem; +} + +#gb > div > div.gb_Ve > div.gb_b.gb_kd.gb_pg.gb_o.gb_Ef > div > a > img { + border-radius: 0.5rem; +} + +#gb > div > div.gb_Ve > div.gb_b.gb_kd.gb_pg.gb_o.gb_Ef > div > a { + border-radius: calc(0.5rem + 4px); +} + +#tsf > div:nth-child(1) > div.A8SBwf > div.RNNXgb { + border-radius: 0.5rem; +} + +#rcnt { + max-width: 100vw; +} + +#res { + max-width: 100%; +} + +#main { + max-width: 100vw; + min-width: 0; +} + +#searchform { + min-width: 0; + max-width: 100vw; +} + +body + > div.L3eUgb + > div.o3j99.ikrT4e.om7nvf + > form + > div:nth-child(1) + > div.A8SBwf.emcav + > div.UUbT9 + > div.aajZCb + > div.mkHrUc + > div.erkvQe { + padding-bottom: 0; +} diff --git a/google.com/index.css b/google.com/index.css deleted file mode 100644 index 5f4c0ff..0000000 --- a/google.com/index.css +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (c) 2022 Ewsgit - * All rights reserved. - - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -.gb_Ba { - border-radius: 0.5rem !important; -} - -.JZFjpd { - border-radius: 1rem !important; -} - -.gb_Se button svg, -.gb_A { - border-radius: 0.5rem !important; -} - -.uU7dJb { - border-bottom: 0 !important; - padding-bottom: 0 !important; -} - -.MV3Tnb, -.gb_d { - display: none !important; -} - -iframe[src="https://ogs.google.com/u/0/widget/callout/sid?prid=19001869&pgid=748494848&puid=b9973bdff5742177&dc=1&origin=https%3A%2F%2Fwww.google.com&cn=callout&pid=1&spid=538&hl=en"] { - visibility: hidden !important; -} - -.FPdoLc.lJ9FBc { - display: none !important; -} - -.uU7dJb { - display: none !important; -} \ No newline at end of file diff --git a/jsconfig.json b/jsconfig.json new file mode 100644 index 0000000..3c8d131 --- /dev/null +++ b/jsconfig.json @@ -0,0 +1,5 @@ +{ + "typeAcquisition": { + "include": ["chrome"] + } +} diff --git a/manchesterworld.uk/all.css b/manchesterworld.uk/all.css new file mode 100644 index 0000000..b1ee552 --- /dev/null +++ b/manchesterworld.uk/all.css @@ -0,0 +1,7 @@ +body > div.tp-modal { + display: none; +} + +body > div.tp-backdrop.tp-active { + display: none; +} diff --git a/manifest.json b/manifest.json index 2ff8196..97eceaa 100644 --- a/manifest.json +++ b/manifest.json @@ -5,7 +5,7 @@ "manifest_version": 3, "author": "Ewsgit", "permissions": ["activeTab", "storage", "scripting", "declarativeNetRequest"], - "host_permissions": ["https://*/*", "http://*/*", "declarativeNetRequest"], + "host_permissions": ["https://*/*", "http://*/*"], "content_scripts": [ { "matches": ["https://*.youtube.com/*"], @@ -20,31 +20,38 @@ "css": ["./searx.be/search.css"] }, { - "matches": [ - "https://www.google.com/*", - "https://www.google.co.uk/*", - "https://www.google.ge/*", - "https://www.google.ca/*", - "https://www.google.de/*", - "https://www.google.fr/*", - "https://www.google.es/*", - "https://www.google.be/*", - "https://www.google.fr/*" - ], - "css": ["./google.com/index.css"] + "matches": ["https://www.google.com/*", "https://www.google.co.uk/*"], + "css": ["./google.com/all.css"] }, { "matches": ["https://www.sparxmaths.uk/student"], "js": ["./sparxmaths.uk/bookwork.js"] + }, + { + "matches": ["https://twitter.com/*"], + "css": ["./twitter.com/all.css"] + }, + { + "matches": ["https://manchesterworld.uk/*"], + "css": ["./manchesterworld.uk/all.css"] + }, + { + "matches": ["https://drafts.csswg.org/*"], + "css": ["./csswg.org/drafts.css"] + }, + { + "matches": ["https://*.sharepoint.com/*"], + "css": ["./sharepoint.com/all.css"] } ], "background": { - "service_worker": "core/background.js" + "service_worker": "./background.js", + "type": "module" }, "declarative_net_request": { "rule_resources": [ { - "id": "stop_it_sparx", + "id": "depressing-sparxmath", "enabled": true, "path": "sparxmaths.uk/block_rules.json" } diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index 278d077..0000000 --- a/package-lock.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "name": "ewsgitos-browser-extension", - "version": "1.0.0", - "lockfileVersion": 2, - "requires": true, - "packages": { - "": { - "name": "ewsgitos-browser-extension", - "version": "1.0.0", - "license": "MIT", - "dependencies": { - "typescript": "^4.9.4" - }, - "devDependencies": { - "@types/chrome": "^0.0.204" - } - }, - "node_modules/@types/chrome": { - "version": "0.0.204", - "resolved": "https://registry.npmjs.org/@types/chrome/-/chrome-0.0.204.tgz", - "integrity": "sha512-EvnHfxMHUWP5EAlRMK66uIEUiy36t72vg5RwmzQv9tdIl2ZmAp92NwvmEZJKpbRnIMTEc2BmSmtrFiEISUJ0Sw==", - "dev": true, - "dependencies": { - "@types/filesystem": "*", - "@types/har-format": "*" - } - }, - "node_modules/@types/filesystem": { - "version": "0.0.32", - "resolved": "https://registry.npmjs.org/@types/filesystem/-/filesystem-0.0.32.tgz", - "integrity": "sha512-Yuf4jR5YYMR2DVgwuCiP11s0xuVRyPKmz8vo6HBY3CGdeMj8af93CFZX+T82+VD1+UqHOxTq31lO7MI7lepBtQ==", - "dev": true, - "dependencies": { - "@types/filewriter": "*" - } - }, - "node_modules/@types/filewriter": { - "version": "0.0.29", - "resolved": "https://registry.npmjs.org/@types/filewriter/-/filewriter-0.0.29.tgz", - "integrity": "sha512-BsPXH/irW0ht0Ji6iw/jJaK8Lj3FJemon2gvEqHKpCdDCeemHa+rI3WBGq5z7cDMZgoLjY40oninGxqk+8NzNQ==", - "dev": true - }, - "node_modules/@types/har-format": { - "version": "1.2.10", - "resolved": "https://registry.npmjs.org/@types/har-format/-/har-format-1.2.10.tgz", - "integrity": "sha512-o0J30wqycjF5miWDKYKKzzOU1ZTLuA42HZ4HE7/zqTOc/jTLdQ5NhYWvsRQo45Nfi1KHoRdNhteSI4BAxTF1Pg==", - "dev": true - }, - "node_modules/typescript": { - "version": "4.9.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.4.tgz", - "integrity": "sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg==", - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=4.2.0" - } - } - }, - "dependencies": { - "@types/chrome": { - "version": "0.0.204", - "resolved": "https://registry.npmjs.org/@types/chrome/-/chrome-0.0.204.tgz", - "integrity": "sha512-EvnHfxMHUWP5EAlRMK66uIEUiy36t72vg5RwmzQv9tdIl2ZmAp92NwvmEZJKpbRnIMTEc2BmSmtrFiEISUJ0Sw==", - "dev": true, - "requires": { - "@types/filesystem": "*", - "@types/har-format": "*" - } - }, - "@types/filesystem": { - "version": "0.0.32", - "resolved": "https://registry.npmjs.org/@types/filesystem/-/filesystem-0.0.32.tgz", - "integrity": "sha512-Yuf4jR5YYMR2DVgwuCiP11s0xuVRyPKmz8vo6HBY3CGdeMj8af93CFZX+T82+VD1+UqHOxTq31lO7MI7lepBtQ==", - "dev": true, - "requires": { - "@types/filewriter": "*" - } - }, - "@types/filewriter": { - "version": "0.0.29", - "resolved": "https://registry.npmjs.org/@types/filewriter/-/filewriter-0.0.29.tgz", - "integrity": "sha512-BsPXH/irW0ht0Ji6iw/jJaK8Lj3FJemon2gvEqHKpCdDCeemHa+rI3WBGq5z7cDMZgoLjY40oninGxqk+8NzNQ==", - "dev": true - }, - "@types/har-format": { - "version": "1.2.10", - "resolved": "https://registry.npmjs.org/@types/har-format/-/har-format-1.2.10.tgz", - "integrity": "sha512-o0J30wqycjF5miWDKYKKzzOU1ZTLuA42HZ4HE7/zqTOc/jTLdQ5NhYWvsRQo45Nfi1KHoRdNhteSI4BAxTF1Pg==", - "dev": true - }, - "typescript": { - "version": "4.9.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.4.tgz", - "integrity": "sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg==" - } - } -} diff --git a/package.json b/package.json deleted file mode 100644 index 915b480..0000000 --- a/package.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "ewsgitos-browser-extension", - "version": "1.0.0", - "main": "index.js", - "repository": "git@github.com:ewsgit/ewsgitos-browser-extension", - "author": "Ewsgit ", - "license": "MIT", - "private": false, - "dependencies": { - "typescript": "^4.9.4" - }, - "scripts": { - "start": "tsc" - }, - "devDependencies": { - "@types/chrome": "^0.0.204" - } -} diff --git a/sharepoint.com/all.css b/sharepoint.com/all.css new file mode 100644 index 0000000..34a396e --- /dev/null +++ b/sharepoint.com/all.css @@ -0,0 +1,60 @@ +#myProfileByCloudDesignBox_93c78e54 + > div + > div + > div.minimisedProfile_93c78e54 + > div { + border-radius: 0.5rem; + filter: blur(1rem); + margin: 0; + transition: filter 500ms ease-in-out; +} + +#myProfileByCloudDesignBox_93c78e54 + > div + > div + > div.minimisedProfile_93c78e54 + > div:hover { + filter: blur(0rem); +} + +#myProfileByCloudDesignBox_93c78e54 + > div + > div + > div.minimisedProfile_93c78e54 { + border-radius: 1rem; + overflow: hidden; + padding: 0; + margin-bottom: 0.5rem; + position: relative; + border: 0.25rem #565656 solid; +} + +#myProfileByCloudDesignBox_93c78e54 + > div + > div + > div.minimisedProfile_93c78e54::before { + content: "no peaking"; + position: absolute; + z-index: 10; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + opacity: 1; + transition: opacity 500ms ease-in-out; + font-weight: 900; + color: #ffffff; + letter-spacing: 0.125rem; + user-select: none; + pointer-events: none; +} + +#myProfileByCloudDesignBox_93c78e54 + > div + > div + > div.minimisedProfile_93c78e54:hover::before { + opacity: 0; +} + +#O365_MainLink_Help_container { + display: none; +} diff --git a/sparxmaths.uk/background.js b/sparxmaths.uk/background.js new file mode 100644 index 0000000..e69de29 diff --git a/sparxmaths.uk/block_rules.json b/sparxmaths.uk/block_rules.json index 9cf2d22..21a8546 100644 --- a/sparxmaths.uk/block_rules.json +++ b/sparxmaths.uk/block_rules.json @@ -11,5 +11,18 @@ "condition": { "urlFilter": "https://interaction.api.sparxmaths.uk/*" } + }, + { + "id": 2, + "priority": 1, + "action": { + "type": "block", + "redirect": { + "transform": { "scheme": "https", "host": "example.com" } + } + }, + "condition": { + "urlFilter": "https://client-metrics.api.sparxmaths.uk" + } } ] diff --git a/sparxmaths.uk/bookwork.js b/sparxmaths.uk/bookwork.js index 60f87dd..311a242 100644 --- a/sparxmaths.uk/bookwork.js +++ b/sparxmaths.uk/bookwork.js @@ -1,16 +1,37 @@ -"use strict"; /* remove the atrocity that is the sparxmaths bookwork check */ + document.body.style.background = "red"; -console.log("Settings "); -let value = "test"; -chrome.runtime.sendMessage({ a: "bad" }, res => { - console.log(res); -}); -// chrome.storage.sync.set({ key: value }).then(() => { -// console.log("Value is set to " + value); -// }); -// chrome.storage.sync.get(["key"]).then(result => { -// console.log("Value currently is " + result.key); -// }); + +// implement this's calculations: https://www.triangle-calculator.com/?what=sas&a=7.5&a1=76&b=8.6&submit=Solve + +/* +WAC / WACED Prompt (book code) converted to yaml after being de-obfuscated (the correct answer was c) + +activityIndex: 1 +activityType: WAC +wac: + bookworkCode: M38 + taskItem: + packageID: 0bfa2e56-080e-4bdd-a5d4-bb0acb11ff47 + taskIndex: 2 + taskItemIndex: 3 + options: + - wacedAnswer: + components: + - key: oI + value: true + filledAnswerTemplate: B + - wacedAnswer: + components: + - key: iH + value: C + hash: C + filledAnswerTemplate: C + - wacedAnswer: + components: + - key: iU + value: true + filledAnswerTemplate: A +*/ diff --git a/sparxmaths.uk/bookwork.ts b/sparxmaths.uk/bookwork.ts deleted file mode 100644 index 23668f8..0000000 --- a/sparxmaths.uk/bookwork.ts +++ /dev/null @@ -1,21 +0,0 @@ -/* - remove the atrocity that is the sparxmaths bookwork check -*/ - -document.body.style.background = "red"; - -console.log("Settings "); - -let value = "test"; - -chrome.runtime.sendMessage({ a: "bad" }, res => { - console.log(res); -}); - -// chrome.storage.sync.set({ key: value }).then(() => { -// console.log("Value is set to " + value); -// }); - -// chrome.storage.sync.get(["key"]).then(result => { -// console.log("Value currently is " + result.key); -// }); diff --git a/tsconfig.json b/tsconfig.json deleted file mode 100644 index dcdf53f..0000000 --- a/tsconfig.json +++ /dev/null @@ -1,106 +0,0 @@ -{ - "include": ["./**/*"], - "exclude": ["./node_modules/"], - "compilerOptions": { - "watch": true, - /* Visit https://aka.ms/tsconfig to read more about this file */ - - /* Projects */ - // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */ - // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */ - // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */ - // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */ - // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */ - // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */ - - /* Language and Environment */ - "target": "es2016" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */, - // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ - // "jsx": "preserve", /* Specify what JSX code is generated. */ - // "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */ - // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */ - // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */ - // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */ - // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */ - // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */ - // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */ - // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */ - // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */ - - /* Modules */ - "module": "ESNext" /* Specify what module code is generated. */, - // "rootDir": "./", /* Specify the root folder within your source files. */ - // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */ - // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ - // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ - // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ - // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */ - // "types": [], /* Specify type package names to be included without being referenced in a source file. */ - // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ - // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */ - // "resolveJsonModule": true, /* Enable importing .json files. */ - // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */ - - /* JavaScript Support */ - // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */ - // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */ - // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */ - - /* Emit */ - // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ - // "declarationMap": true, /* Create sourcemaps for d.ts files. */ - // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */ - // "sourceMap": true, /* Create source map files for emitted JavaScript files. */ - // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */ - // "outDir": "./", /* Specify an output folder for all emitted files. */ - // "removeComments": true, /* Disable emitting comments. */ - // "noEmit": true, /* Disable emitting files from a compilation. */ - // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */ - // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */ - // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */ - // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */ - // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ - // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */ - // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */ - // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */ - // "newLine": "crlf", /* Set the newline character for emitting files. */ - // "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */ - // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */ - // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */ - // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */ - // "declarationDir": "./", /* Specify the output directory for generated declaration files. */ - // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */ - - /* Interop Constraints */ - // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */ - // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */ - "esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */, - // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */ - "forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */, - - /* Type Checking */ - "strict": true /* Enable all strict type-checking options. */, - // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */ - // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */ - // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */ - // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */ - // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */ - // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */ - // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */ - // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */ - // "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */ - // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */ - // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */ - // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */ - // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */ - // "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */ - // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */ - // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */ - // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */ - // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */ - - /* Completeness */ - // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ - "skipLibCheck": true /* Skip type checking all .d.ts files. */ - } -} diff --git a/twitter.com/all.css b/twitter.com/all.css new file mode 100644 index 0000000..61a01a4 --- /dev/null +++ b/twitter.com/all.css @@ -0,0 +1,7 @@ +.r-sdzlij { + border-radius: 0.5rem !important; +} + +#layers > div { + display: none; +} diff --git a/yarn.lock b/yarn.lock deleted file mode 100644 index e7352d9..0000000 --- a/yarn.lock +++ /dev/null @@ -1,33 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@types/chrome@^0.0.204": - "integrity" "sha512-EvnHfxMHUWP5EAlRMK66uIEUiy36t72vg5RwmzQv9tdIl2ZmAp92NwvmEZJKpbRnIMTEc2BmSmtrFiEISUJ0Sw==" - "resolved" "https://registry.npmjs.org/@types/chrome/-/chrome-0.0.204.tgz" - "version" "0.0.204" - dependencies: - "@types/filesystem" "*" - "@types/har-format" "*" - -"@types/filesystem@*": - "integrity" "sha512-Yuf4jR5YYMR2DVgwuCiP11s0xuVRyPKmz8vo6HBY3CGdeMj8af93CFZX+T82+VD1+UqHOxTq31lO7MI7lepBtQ==" - "resolved" "https://registry.npmjs.org/@types/filesystem/-/filesystem-0.0.32.tgz" - "version" "0.0.32" - dependencies: - "@types/filewriter" "*" - -"@types/filewriter@*": - "integrity" "sha512-BsPXH/irW0ht0Ji6iw/jJaK8Lj3FJemon2gvEqHKpCdDCeemHa+rI3WBGq5z7cDMZgoLjY40oninGxqk+8NzNQ==" - "resolved" "https://registry.npmjs.org/@types/filewriter/-/filewriter-0.0.29.tgz" - "version" "0.0.29" - -"@types/har-format@*": - "integrity" "sha512-o0J30wqycjF5miWDKYKKzzOU1ZTLuA42HZ4HE7/zqTOc/jTLdQ5NhYWvsRQo45Nfi1KHoRdNhteSI4BAxTF1Pg==" - "resolved" "https://registry.npmjs.org/@types/har-format/-/har-format-1.2.10.tgz" - "version" "1.2.10" - -"typescript@^4.9.4": - "integrity" "sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg==" - "resolved" "https://registry.npmjs.org/typescript/-/typescript-4.9.4.tgz" - "version" "4.9.4"