Skip to content

Instantly share code, notes, and snippets.

@EarlGray
Created April 5, 2017 20:00
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 EarlGray/e8c77251398fe9c72c1224264254f889 to your computer and use it in GitHub Desktop.
Save EarlGray/e8c77251398fe9c72c1224264254f889 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name UndeadJournal
// @namespace https://dmytrish.net/js/fuck-ru-tos.js
// @description Fuck Ru TOS!
// @include http//*.livejournal.com/*
// @version 1
// @grant none
// ==/UserScript==
(function () {
var delay = 32;
var fuckRuTOS = function () {
if (document.body.classList.contains('p-rutos')) {
document.body.classList.remove('p-rutos');
return;
}
var rutos = document.querySelector('.rutos');
if (rutos) {
rutos.remove();
}
setTimeout(fuckRuTOS, delay);
delay *= 2;
};
fuckRuTOS();
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment