-
Notifications
You must be signed in to change notification settings - Fork 3
/
chrome automatic update blocker.html
92 lines (80 loc) · 3.69 KB
/
chrome automatic update blocker.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!DOCTYPE html>
<!-- saved from url=(0023)https://caub.glitch.me/ -->
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>chrome automatic update blocker</title>
<script defer="">
function gen() {
try {
var networks = document.querySelector("input").value;
networks = networks.replace(/(?<=[+-]..){/g, "");
networks = networks.replace(/(?<=})[^{\]}]*(?={.."C)/g, ",");
networks = networks.substring(networks.indexOf("{"));
networks = networks.substring(0, networks.lastIndexOf("}") + 1);
networks = JSON.parse("[" + networks + "]");
var onc = {
Type: "UnencryptedConfiguration",
NetworkConfigurations: [],
};
networks.forEach(function (network) {
if (!network.WiFi || !network.Connectable) return;
onc.NetworkConfigurations.push({
GUID: network.GUID,
Metered: true,
Name: network.Name,
Type: "WiFi",
WiFi: {
AutoConnect: true,
SSID: network.Name,
Security: "None",
},
});
});
if (!onc.NetworkConfigurations[0]) return;
var link = document.createElement("a");
link.href = URL.createObjectURL(new Blob([JSON.stringify(onc)]));
link.download = "caub.onc";
link.click();
link.remove();
} catch (error) {
console.error(error);
alert("caub ran into an error, check console logs");
}
}
</script>
</head>
<body style="white-space: pre-wrap; font-family: monospace">
<h1>chrome automatic update blocker</h1>
<h1>only works on chrome 85 or higher</h1>
<hr>
this method (originally found by Catakang#0987) will help you keep your
chromebook downgraded (or on the current version) without automatic updates
screwing you over using onc files, you can convince your chromebook that the
wifi that you're connected to is pay-to-use (like a hotspot using data), and
thus it will not check for updates
<b>i cannot guarantee that this will work on every wifi</b>
<hr>
<b>to start:</b>
- go to chrome://network#state (on your school chromebook of course; if this
is blocked then ur kinda screwed lol) - scroll to the bottom of the page;
you should see a list of "favorite" wifis that you've connected to in the
past - click the + sign next to the wifi name of each network that you
commonly connect your chromebook to
<b>the more wifis you expand, the better, but note that they have to come
from the "favorites" section</b>
- use ctrl+a and ctrl+c to copy all the text on the entire network#state
page - go back to this page (caub.glitch.me) - paste the copied text into
the textbox below - press the "generate onc" button below the textbox
<hr>
<input placeholder="read instructions!">
<button onclick="gen()"><b>generate and download onc file</b></button>
<b>the input stuff here is new and a little hacky, if it doesn't seem to
work, try the <a href="https://caub.glitch.me/old.html">old version</a></b>
<hr>
- once you have downloaded the file, go to chrome://network#general - click
on the "import onc" button - import the newly downloaded file
<b>your chromebook will no longer automatically update (as long as you are
on a wifi that you used caub on) be careful not to stay on a wifi for too
long without using caub on it</b>
</body></html>