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!).

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==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
})();