Skip to content

Instantly share code, notes, and snippets.

@uahim
Last active September 28, 2024 21:33
Show Gist options
  • Save uahim/65bb1a190f507131b9d36d2190841e3d to your computer and use it in GitHub Desktop.
Save uahim/65bb1a190f507131b9d36d2190841e3d to your computer and use it in GitHub Desktop.
new york times paywall breaker
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>";
@uahim
Copy link
Author

uahim commented Sep 28, 2024

works as a bookmarklet or as userjs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment