<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Anti-Linewize</title>
    <link id="faviconNormal" href="/linewizeimages/anti-linewize.png" rel="icon">
    <link id="faviconApple" rel="apple-touch-icon" href="/linewizeimages/anti-linewize.png">
    <style>@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');</style> <!--font-->
    <link href="/style.css" rel="stylesheet" type="text/css" media="all">
    <script>
        function decodeUrl() {
          const url = String(document.getElementById('decodeInput').value);
          const returned1 = url.split('&url=')[1];
          const returned2 = returned1.split('&ver=')[0];
          
          if (url.startsWith('http')) {
            if (returned2.length < 1) {
              alert("No URL found.")
            } else {
              prompt("The link that was blocked was:", atob(returned2));
            }
          } else {
            alert('Please enter a valid URL.');
          }
        }
        
        function cloakWebsite() {
          const cloakbutton = document.getElementById("Cloak");
          const fav = document.getElementById('faviconNormal');
          const favMobile = document.getElementById('faviconApple')
          
          if (document.title == "Anti-Linewize") {
            cloakbutton.innerText = "Uncloak Website";
            document.title = "Clever | Portal";
            fav.setAttribute("href", "/Clever.png");
            favMobile.setAttribute("href", "/Clever.png");
          } else {
            cloakbutton.innerText = "Cloak Website";
            document.title = "Anti-Linewize";
            fav.setAttribute("href", "/linewizeimages/anti-linewize.png");
            favMobile.setAttribute("href", "/linewizeimages/anti-linewize.png");
            
          }
        }
        
        function getCodeToBypass() {
          const url = "https://blocked.syd-1.linewize.net/blocked?url=copilot.microsoft.com&deviceid=nil&user=nil&rule=nil&ruleid=nil&path=nil&method=nil&cid=nil";
          for (var i = 0; i < url.length; i += 2)
            ret += String.fromCharCode(parseInt(url.substr(i, 2), 16));
            return ret;
          }
        const bypassCode = ret.toString(16);
        prompt('The bypass code for' + url + 'is', bypassCode);
      }
        
      function updateCustomOption() {
         const select = document.getElementById('methodOfBypass');
         const customInput = document.getElementById('customInput');
         
         if (select.value == "custom") {
              select.style.width = "75px";
              customInput.style.display = "inline";
             customInput.focus();
          } else {
              select.style.width = "150px";
              customInput.style.display = "none";
              customInput.value = "";
         }
      }
      
      function embedYT() {
        const embed = document.getElementById('embedded');
        const input = document.getElementById('embedInput').value;
        
        if (input.includes('youtube.com/watch')) {
          const returned = input.split('watch?v=')[1];
          embed.setAttribute('src', 'https://www.youtube.com/embed/' + returned);
        } else {
          if (input.includes('youtu.be/')) {
            const returned = input.split('youtu.be/')[1];
            embed.setAttribute('src', 'https://www.youtube.com/embed/' + returned);
          } else {
            if (input.includes('shorts/')) {
              const returned = input.split('youtube.com/shorts/')[1];
              embed.setAttribute('src', 'https://www.youtube.com/embed/' + returned);
            } else {
              alert("We couldn't find the link, sorry!");
            }
          }
        }
      }
    </script>
  </head>
  <body id="body">
      <!--  Header  -->
          
          
      <div id="header">    
        <h1><img src="/linewizeimages/anti-linewize.png" style="height: 30px; width: 30px; position: relative; top: 2px;">Anti-Linewize</h1>
        <p>This website is dedicated to bypassing Linewize. That's really all this is.</p>
      </div>
      
         
      <!--  Unblock Link  -->
      
      
      <h1><img src="/linewizeimages/unlockedLinewize.png" style="height: 35px; width: 35px; position: relative; top: 5px;">Unblock Website</h1>
      <p>This section of the website is where you bypass Linewize and go to blocked websites. Some types of blocks like keyword blocks that don't include links don't get unblocked through this site.</p>
        <form onsubmit="event.preventDefault(); getCodeToBypass();" style="margin-top: 40px;">
        <p>Start with typing or pasting in a link, then press bypass to view it!</p>
        <pp style="display: block; margin-bottom: 15px;">Don't forget to add 'https' to the start</pp>
         <input type="text" id="urlInput" placeholder="enter website url here" required>
         <button type="submit">Bypass</button>
        </form>
        <pp style="margin-bottom: 5px;">If the default method below doesn't work for you, you can change the method by opening the dropdown box below. You can also make a custom method if none of them work.</pp>
        <pp style="margin-top: 5px; margin-bottom: 20px;">Methods add a string of text to the end of the link you insert</pp>
        <form id="method" style="margin-bottom: 100px;">
          <select id="methodOfBypass" onchange="updateCustomOption()">
            <option value="/?scrlcbp=.">/?scrlcbp=.</option>
            <option value="/?creation#">/?creation#</option>
            <option value="/?action">/?action</option>
            <option value="/?horror">/?horror</option>
            <option value="/?category=Education">/?category=Education</option>
            <option value="/?ion">/?ion</option>
            <option value="custom">custom</option>
          </select>
          <input onkeydown="return event.key != 'Enter';" type="text" id="customInput" placeholder="enter custom method here" style="display: none; margin-top: 5px">
        </form>
        
        
      <!--  Decode Blocked Link  -->
      
      
      <h1><img src="/linewizeimages/decodeLinewize.png" style="height: 30px; width: 30px; position: relative; top: 2px;">Decode Blocked Link</h1>
      <p>Whenever you get blocked by Linewize, you get redirected to a link that includes info about what you got blocked for.</p>
      <pp> This can include personal information, like your IP and your email, so please be careful with Linewize links. This website will NOT use your personal information, and you can see by checking the <a href="/linewizesource">source of this website</a></pp>
      <form onsubmit="event.preventDefault(); decodeUrl();">
        <p>You can use this to see what website was blocked.</p>
        <input type="text" id="decodeInput" placeholder="enter linewize blocked url here" value="">
        <button type="submit">Decode</button>
      </form>
        
        
      <!--  YT Embed  -->
      
      
      <h1><img src="/yt-iframe.png" style="height: 30px; width: 30px; position: relative; top: 2px;">Embed YouTube Video</h1>
      <p>Some schools block YouTube videos, but most of them don't block the embed along with it.</p>
      <form onsubmit="event.preventDefault(); embedYT();">
        <p>You can use this to see videos that are blocked by Linewize.</p>
        <pp>YOUR LINK MUST START WITH 'https://www.youtube.com/watch?' OR 'https://youtu.be/' OR 'https://www.youtube.com/shorts/'</pp>
        <br>
        <input type="text" id="embedInput" placeholder="enter youtube video link here" value="">
        <button type="submit">Watch</button>
      </form>
      
      <br>
      
      <iframe id="embedded" width="540" height="340" src="https://www.youtube.com/embed/rdwz7QiG0lk" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted- media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict- origin-when-cross-origin" allowfullscreen></iframe>
        
        
        <!--  Cloak  -->
        
        
        <h1><img src="/linewizeimages/Cloaking.png" style="height: 30px; width: 30px; position: relative; top: 2px;">Cloak Page</h1>
        <p>If you want to cloak this website, press this button.</p>
        <pp>Cloaking a website is just pretending the website is something else. In this case, we use the Clever Portal.</pp>
        <br>
        <button id="Cloak" onclick="cloakWebsite();">Cloak Website</button>
        
      
        <!-- VERSION -->
        
        
        <pp id="websiteVersion" updating>V0.0.1-LINEWIZE-UPDATING</pp>
        
        
        
        <!-- BACK -->
        
        
        <a id="backToMain" href="https://test12341234.neocities.org"><button id="backToMainButton">&lt;</button></a> <!-- &lt; is a < symbol -->
        
        
        <!--  FOOTER  -->
        
        
          <footer style="margin: auto; margin-top: 100px" id="footer">
            <div style="width:50%; margin: auto;">
              <p>This website is open source. Links below!</p>
              <a href=/securlysource.html><button>ANTI-SECURLY SOURCE</button></a>
              <a href=/linewizesource.html><button>ANTI-LINEWIZE SOURCE</button></a>
              <a href=/source.html><button>HOME PAGE SOURCE</button></a>
              <p id="smalltxt">this version is from 3/4/25 mm/dd/yy</p>
            
              <img src="/linewizeimages/anti-linewize.png" style="height: 30px; width: 30px;"><img src="/linewizeimages/anti-linewize.png" style="height: 30px; width: 30px;"><img src="/linewizeimages/anti-linewize.png" style="height: 30px; width: 30px;">
            </div>
          </footer>
      </body>
</html>