Skip to content

Instantly share code, notes, and snippets.

@jerryfromearth
Last active February 16, 2024 09:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jerryfromearth/22946fede90c8217ce4618fa5504b614 to your computer and use it in GitHub Desktop.
Save jerryfromearth/22946fede90c8217ce4618fa5504b614 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name the foreign premium
// @namespace http://tampermonkey.net/
// @version 0.1
// @description View premium content
// @author someone
// @match https://www.theforeign.se/*
// @grant none
// @require http://code.jquery.com/jquery-latest.js
// ==/UserScript==
var interval=1000;
function timeFunc() {
if(true || $("body").hasClass("tp-modal-open")) {
$("body").removeClass("tp-modal-open");
$(".tp-backdrop").hide();
$(".tp-modal").hide();
$("#checkout-container").hide();
$(".article-single__content").removeClass("piano-hide");
}
setTimeout(timeFunc, interval);
}
$(document).ready(function() {
//'use strict';
/*$("script").each(function (){
var found = $(this).html().search("articleBody");
if(found!=-1){
var x = JSON.parse($(this).html());
$("#article-body").replaceWith(x.articleBody);
}
});*/
setTimeout(timeFunc, interval);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment