Better replit editor

Get the old and best replit editor!

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name         Better replit editor
// @namespace    http://tampermonkey.net/
// @version      1
// @description  Get the old and best replit editor!
// @author       @OfirApps on replit
// @match        https://replit.com/*
// @icon         https://replit.com/public/icons/favicon-196.png
// @grant        none
// @license      Apache License 2.0
// ==/UserScript==

(function() {
    'use strict';
    if ((window.location.href).includes("@")) { /* check if url is an actual codable repl*/
    if ((window.location.href).includes("?monaco=1")) { /* check if the url has ?Monaco=1*/
    //Nothing happens if it does have it
    } else { /* redirect the url Actions: */
     if ((window.location.href).includes("#")) { /* check if the url got an file specified like main.py*/
         var splittedurl = (window.location.href).split("#") /* split the url that contains the file*/
         window.location.href = splittedurl[0] + "?monaco=1#" + splittedurl[1] /* remake the url and redirect to it */
     } else { /* if it dosent have a file specfied in the url */
    window.location.href = window.location.href + "?monaco=1" /* switch to the simpler version of ?monaco=1*/
     }
    }
    }
})();