Remove Coursehero Monthly Limit

Removes the Coursehero monthly document preview limit (originally 3).

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 Remove Coursehero Monthly Limit
// @description Removes the Coursehero monthly document preview limit (originally 3).
// @author Luigi Agcaoili
// @include *coursehero.com/file/*
// @version 1.0.2
// @grant none
// @namespace https://greasyfork.org/users/208370
// @copyright 2019, luigia (https://github.com/luigia)
// @license MIT
// ==/UserScript==
window.addEventListener('load', () => {
  // pop-up modals
  if ( document.querySelector('.mfp-wrap') && document.querySelector('.mfp-bg') ) {
    let wrap = document.querySelector('.mfp-wrap'),
        bg = document.querySelector('.mfp-bg');
    wrap.remove();
    bg.remove();
  }

// remove dynamically added styles
document.body.className = '';
document.body.style.cursor = '';
// re-enable scrolling
document.body.style.setProperty ("overflow", "visible", "important");
document.body.click();
}, false);