Interactive Teachnouvelle Book Hack

This will get a FREE KEY to any book, and give you all the answers (In only 14 lines of code!).

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το 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         Interactive Teachnouvelle Book Hack
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  This will get a FREE KEY to any book, and give you all the answers (In only 14 lines of code!).
// @author       You
// @match        https://interactive.teachnouvelle.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=teachnouvelle.com
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    if(document.cookie == "") {
         var bookid = document.getElementsByTagName('body')[0].className.substring(document.getElementsByTagName('body')[0].className.indexOf('postid') + 7).split(' ')[0];
         document.cookie = "book_"+bookid+"=yes"
         location.reload()}
   var answer = document.getElementById('correct-1').value.split(',')[0];
   document.getElementsByClassName('txtAnswer')[0].value = (answer)
    let ans = prompt("Here is the answer", (answer));
    if (ans != null) {
        setTimeout(() => {  $('#question_submit button').click(); }, 500);}
    else {setTimeout(() => {  $('#question_submit button').click(); }, 500);}
    var nextlink = document.getElementsByClassName('is_bookpage_nav content_block')[0].children[0].children[0].href
    window.location.href = nextlink
})();