Iβm going to be showing you how to stop teachers from closing your tabs on your school Chromebook.
Before we start this post, please coppy this:
javascript:onbeforeunload=i=>1
Step 1, highlight this right click, click copy go to the bookmarks bar up here right click β Add pageβ
Step 2, you can just name it prevent teachers from closing tab or do no closing tab and highlight the URL delete it and paste this code there, should look like this and click save
Step 3, the site youβre on it could be Youtube or game and then what you need to do is just click on this thing here.
If they try to reload the page, itβll say reload site changes you made may not be saved and you just click β Cancelβ and you can stay on the site.
If they try to close it again just click cancel over and over and you can keep playing your game and they wonβt be able to close your site.
Itβs a super simple tutorial and I really hope you enjoy. Thanks for reading.