Last active
July 16, 2019 19:58
-
-
Save nathansmith/090a0ef04b9f54fa39c0d3c3d7ea94ad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Paste this into the console on | |
crunchbase.com to remove the | |
extra overlay upsell stuff. | |
Example page: | |
https://www.crunchbase.com/search/funding_rounds/field/organizations/last_funding_type/invisionapp | |
*/ | |
(function () { | |
const { forEach } = Array.prototype | |
const $ = str => { | |
return document.querySelectorAll('.' + str) | |
} | |
const cx = { | |
blur: 'blurred-row', | |
upsell: 'new-upsell-wrapper' | |
} | |
const rows = $(cx.blur) | |
const upsell = $(cx.upsell) | |
if (upsell.length) { | |
upsell[0].remove() | |
} | |
forEach.call(rows, item => { | |
item.classList.remove(cx.blur) | |
}) | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment