From 9bee0c6639adaf23af499b4b4273d39a9be51e79 Mon Sep 17 00:00:00 2001 From: Mariotaku Date: Wed, 19 Jun 2024 15:07:53 +0900 Subject: [PATCH] updated caniroot --- package-lock.json | 8 ++-- package.json | 2 +- src/views/can-i-root/caniroot.scss | 8 +--- src/views/can-i-root/caniroot.ts | 68 ++++++++++++++++++++++++------ src/views/can-i-root/index.hbs | 4 +- src/views/rooting/index.hbs | 8 ++-- 6 files changed, 68 insertions(+), 30 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7c937a7..a7a3abf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "dependencies": { "@fontsource/orbitron": "^5.0.19", "@popperjs/core": "^2.11.8", - "@webosbrew/caniroot": "^1.0.3", + "@webosbrew/caniroot": "^1.0.5", "bootstrap": "^5.3.3", "bootstrap-icons": "^1.11.3", "gsap": "^3.12.5", @@ -2926,9 +2926,9 @@ } }, "node_modules/@webosbrew/caniroot": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@webosbrew/caniroot/-/caniroot-1.0.3.tgz", - "integrity": "sha512-J8eNMdgpFlgND+46OH+GlZbCsaUAQgfVp757BrUTPxOBy8zGry0SiI92xntYleSyKFuraBB7tL1E0g/DNazFvw==" + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@webosbrew/caniroot/-/caniroot-1.0.5.tgz", + "integrity": "sha512-z/R521w8to8p2YgEoJGRJgHA6T074oizDhVAqL5nhXGz7Fttt5sY5R3wQn8DNrQdDj2JUqUIZ8tcZVaLKpMQxg==" }, "node_modules/@webpack-cli/configtest": { "version": "2.1.1", diff --git a/package.json b/package.json index 4bba4f9..36ee1c6 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "dependencies": { "@fontsource/orbitron": "^5.0.19", "@popperjs/core": "^2.11.8", - "@webosbrew/caniroot": "^1.0.3", + "@webosbrew/caniroot": "^1.0.5", "bootstrap": "^5.3.3", "bootstrap-icons": "^1.11.3", "gsap": "^3.12.5", diff --git a/src/views/can-i-root/caniroot.scss b/src/views/can-i-root/caniroot.scss index 2846950..b4d879b 100644 --- a/src/views/can-i-root/caniroot.scss +++ b/src/views/can-i-root/caniroot.scss @@ -17,24 +17,18 @@ h1.rootmytv { @include media-breakpoint-up(xs) { font-size: 2em; } - } - & { @include media-breakpoint-up(sm) { font-size: 2.5em; } - } - & { @include media-breakpoint-up(md) { font-size: 3em; } - } - & { @include media-breakpoint-up(lg) { font-size: 4em; } } - sup { + span.question { text-shadow: 0 0 2px white, 0 0 2px white, 0 0 0.4em #731178, 0 2px 0.2em pink, 0 -3px 0.2em #aa0000; } } \ No newline at end of file diff --git a/src/views/can-i-root/caniroot.ts b/src/views/can-i-root/caniroot.ts index a661cb4..17c1a90 100644 --- a/src/views/can-i-root/caniroot.ts +++ b/src/views/can-i-root/caniroot.ts @@ -67,7 +67,23 @@ class App extends Component { } }, 300); + osVersionMap: Record = { + 'afro': 'webOS 1.x', + 'beehive': 'webOS 2.x', + 'dreadlocks': 'webOS 3.0~3.4', + 'dreadlocks2': 'webOS 3.5~3.9', + 'goldilocks': 'webOS 4.0~4.4', + 'goldilocks2': 'webOS 4.5~4.10', + 'jhericurl': 'webOS 5.x', + 'kisscurl': 'webOS 6.x', + 'mullet': 'webOS 7.x', + 'number1': 'webOS 8.x', + 'ombre': 'webOS 9.x', + }; + render(_props: RenderableProps, state: Readonly) { + const codename = state.term && state.model?.codename; + const getMeIn = codename && ['afro', 'beehive', 'dreadlocks', 'dreadlocks2'].includes(codename) || false; return html`
{ onInput=${(e: TargetedInputEvent) => this.searchChanged(e.currentTarget.value)}/> ${state.term && (state.model ? html` -

- Rooting methods are constantly being patched. This table may not be up-to-date. + Rooting methods are constantly being patched. This info may not be up-to-date.

@@ -51,7 +51,7 @@ 🪦
Patched, very unlikely to work - 3.5~ + 3.5~3.9 ⌛
Being patched @@ -61,7 +61,7 @@ ❌
Not supported - 4.5 + 4.5~4.10 5.x @@ -112,7 +112,7 @@

GetMeNow

- Works on some models running webOS 1.x and 2.x. + Works on some models running webOS 1~3. Instructions

DejaVuln