Bypassing School Restrictions
h
AdCharity (1110)

Why

Sometimes we just accidentally visit a site we weren't supposed to. And now, your school transcript and record suffers cause you have ** ** ** in your history. Oops! Oh whale 4 you! No. Just kidding. In this tutorial, we'll be reviewing how you can avoid, and even ERASE history on a school chromebook. Btw Method 4 is where the real coding comes in, so if you don't want to read, just stop there.

Disclaimer

Schools actually try to help the well being of students by putting up filters and recording history. On the otherhand, if you look up something that's really messed up, there is still something you can do.

Method 1

Don't look it up. The 100% most effective method for avoiding all history problems (and STD's too!) is abstinence. You can't get in trouble if you don't do it.

But what if you already did the deed?

Method 2

If it's nothing serious, but you really want to hide that one youtube video from your dad, there is a way to cloak the tab under "Google Drive". Let's review what it does. The full script is here:

javascript:(function() { var link = document.querySelector("link[rel*='icon']") || document.createElement('link'); link.type = 'image/x-icon'; link.rel = 'shortcut icon'; link.href = 'https://ssl.gstatic.com/docs/doclist/images/infinite_arrow_favicon_5.ico'; document.title='My Drive - Google Drive'; console.log(document.title); document.getElementsByTagName('head')[0].appendChild(link);})();

Note: dots are there to save reading time. It's pretty self explanatory.
1. The first part (javascript:(function...) is just declaring that our bookmarklet is a piece of javascript. Without it, the script wouldn't even be allowed to be bookmarked.
2. var link = document... link.href = 'https://...'; gets favicon (the little thing logo representing the site) and replaces it with the "infinite arrow" google drive logo
3. document.title=...document.getElementByTagName('... the rest of the stuff replaces the document title with google drive, finds the head tag on the document and inserts all of the information we just did before. Now, when you check your history after activating (clicking) on the bookmarklet, your tab has been renamed Google Drive!

There are some pretty cool things you could do with this script - ie: putting it in a set interval to constantly cloak the current tab

Method 3

Well, maybe you went to far and cloaking the tab but not the link ain't going to cut it. How about this script:

javascript:(function() {window.location.replace("https://www.google.com"); })();

A while back, when I was trying to figure out how to make links that wouldn't save in the cache/history (which is why in my more recent projects I have some avoiding cache meta tags), I realized that replacing the window location literally ERASES HISTORY. This script replaces the current tab with a harmless site, google.com (making the other site that was up before GONE).

What is cool about this script, is (at least for me) I can click on any tab in my history, click the bookmarklet, and that particular entry is replaced with google! Some further revisions to the script could be making an array of potential sites and choosing a random one, to make the erase seem more natural.

Method 4

All of the previous examples are kind of like emergency methods. That's why, I'm introducing the use of iframes and embedding sites. A while back when I made Nova Haven (it's still up) iframes were the only method it employed. And a lot of "unblockers" are really just using iframes as well. When I figured I could just make a search thing, take the link and put it into an iframe, I just ecountered a huge relevation. And now, I'm going to teach you how to do the same.
Let's start by making a repl with html, css, and js. Rather than splitting up everthing (I hate those tutorials cause idk what they're doing). Do yourself a favor and look at the code so you know how to create your own projects :D If you find any errors, tell me... What makes this unique is that a lot of unblocked games sites just have an iframe with the site. Now you can unblock almost any site :)

Steps:
1. take user input for a user url
2. set iframe
3. site unblocked (provided they don't have some fishy protection, which is why you can't unblock discord via an iframe)

Essentially, the unblocker looks like this (hasn't actually been tested, but it's a proof of concept):

HTML + inline Vanilla JS + inline CSS

<style>
html, body{
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}
iframe{
    border: none;
    outline: none;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
}
</style>
<input id="unblock" placeholder="Enter URL"/>
<button id="go">Submit</button>
<script>
document.getElementById("go").onclick = go;
function go(){
    var target = document.getElementById("unblock").value;
    if(target.length < 1){
        alert("You need a longer link!"); return;
    }
    else{
        document.body.innerHTML = '<iframe src='+target+'></iframe>'
    }


}
</script>

Note: don't forget the doctype! (and other html standard conventions like a body or including scripts/styles)

You are viewing a single comment. View All
MrMinimax (148)

Yes i've done the same with chromedriver in polygott. @Evanlicious