duolingo_immersion_every_language

This script gives access to immersion if you don't have it, and in unsupported languages.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name duolingo_immersion_every_language
// @namespace   duolingo_immersion_every_language
// @include     https://www.duolingo.com/*
// @version     1
// @run-at      document-start
// @grant       none
// @description This script gives access to immersion if you don't have it, and in unsupported languages.
// @description based on script: https://greasyfork.org/en/scripts/17151-web-noimmersion-experiment-optout
// ==/UserScript==

window.addEventListener('beforescriptexecute', function(e){
    if(duo.immersion_enabled == false) duo.immersion_enabled = true;
    if (e.target.innerHTML.contains('duo.immersion_enabled = false;')){
    eval(e.target.innerHTML.replace('duo.immersion_enabled = false;','duo.immersion_enabled = true;').replace('"web_noimmersion_experiment": true','"web_noimmersion_experiment": false'));
    e.stopPropagation();
    e.preventDefault();
    window.removeEventListener(e.type, arguments.callee, true);
  }
}, false);