Last active
April 11, 2017 22:17
-
-
Save kolyanok/ec00d255a528918ff5c0897432f7c54f 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
// ==UserScript== | |
// @name NePoehavshiTJ | |
// @include https://tjournal.ru/* | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js | |
// @grant GM_addStyle | |
// @grant GM_xmlhttpRequest | |
// ==/UserScript== | |
var badCSS = $("link[href*='main.min.css']"); | |
var badURL = badCSS.attr ("href"); | |
badCSS.remove (); | |
GM_xmlhttpRequest ( { | |
method: "GET", | |
url: badURL, | |
onload: function (rsp){ | |
var betterCSS = rsp.responseText.replace ( | |
/min-width:1340px/g, "display: none" | |
); | |
betterCSS = betterCSS.replace(/\.\.\//g, "/static/main/"); | |
GM_addStyle (betterCSS); | |
} | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment