Brainly - nieskończone darmowe odpowiedzi

Darmowe nieskończone wyświetlanie odpowiedzi w brainly.pl

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 Brainly - nieskończone darmowe odpowiedzi
// @description:pl Darmowe nieskończone wyświetlanie odpowiedzi w brainly.pl
// @namespace nullby
// @author KubaWojciechowski
// @match https://brainly.pl/*
// @grant unsafeWindow
// @grant GM_addStyle
// @version 0.0.1.20191001203754
// @description Darmowe nieskończone wyświetlanie odpowiedzi w brainly.pl
// ==/UserScript==

let ldb = {};
for (var i = 0; i < localStorage.length; i++){ // enumerate over localstorage and create a local copy
    ldb[localStorage.key(i)] = localStorage.getItem(localStorage.key(i));
}

unsafeWindow.localStorage.getItem = (item)=>{
  return item == 'flexible-funnel-previews' ? '[]' : ldb[item]; // return a value from local copy of localstorage or a hardcoded value
};

// Kill banners and ads 
GM_addStyle(`
  .js-react-bottom-banner {
    display: none !important;
  }
  .brn-ads-box {
    display: none !important;
  }
  .brn-brainly-plus-box {
    display: none !important;
  }
`);