Last active
September 28, 2024 21:33
-
-
Save uahim/65bb1a190f507131b9d36d2190841e3d to your computer and use it in GitHub Desktop.
new york times paywall breaker
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
var t = "";$ = function(_) {return document.getElementsByTagName(_)} | |
for (var i = 0, l = __preloadedData.initialData.data.article.sprinkledBody.content.length; i < l; ++i) { | |
var n = __preloadedData.initialData.data.article.sprinkledBody; | |
if (n.content[i].__typename == "ParagraphBlock") {t += '<p class="css-at9mc1 evys1bk0">' + n.content[i].content[0].text + "</p><br /><br />";} | |
} | |
$("body")[0].innerHTML = '<blockquote style="padding:255px"><p class="css-at9mc1 evys1bk0">' + $("header")[1].innerHTML + t + "</p></blockquote>"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
works as a bookmarklet or as userjs