tips

quiz tips

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         tips
// @namespace    https://greasyfork.org/users/auto-generated/notebooklm-tabs-1a9f3c
// @version      1.0.0
// @description  quiz tips
// @license      MIT
// @match        *://*.usercontent.goog/*
// @match        *://notebooklm.google.com/*
// @run-at       document-start
// @grant        none
// ==/UserScript==

if (window.location.href.includes('notebooklm.google.com')) {
    let prev = null;
    
    window.addEventListener('message', (e) => {
        if (e.data && e.data.type === 'gverwgregewrfew') {
            if (prev === null) {
                prev = document.title.slice(1);
            }
            document.title = e.data.title + prev;
        }
    });
}

if (window.location.href.includes('usercontent.goog/notebooklm-apps/shim.html')) {
    const feewfewfewfewf = window.Blob;
    
    window.Blob = function(parts, options) {
        if (options && options.type && options.type.includes('text/html')) {
            parts = parts.map(part => {
                if (typeof part === 'string') {
                    part = part.replace(/<meta[^>]*content-security-policy[^>]*>/gi, '');
                    part = part.replaceAll('c.isCorrect;', 'c.isCorrect; c.isCorrect ? window.top.postMessage({type:"gverwgregewrfew",title:b+1},"*") : {};');
                    return part;
                }
                return part;
            });
        }
        return new feewfewfewfewf(parts, options);
    };
}