NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @namespace https://openuserjs.org/users/Flegm // @name rcm_helper // @copyright 2020, Flegm (https://openuserjs.org/users/Flegm) // @author Flegm // @license MIT // @version 0.1.0 // @require https://code.jquery.com/jquery-3.5.1.min.js // @include http://192.168.102.6:3000/* // @grant none // ==/UserScript== // ==OpenUserJS== // @author Flegm // ==/OpenUserJS== //$(document).ready(function(){ // console.log($(document).find("div")); //}); let timerId = setInterval(function loadWait() { if ($('div[data-qa="stop-card"]').length < 10){ timerId = setTimeout(loadWait, 100); } else { main(); } }, 1000); function main() { $('div [data-qa="language-card-title"]').each(function(index){ if ($( this ).text() == "Английский" || $( this ).text() == "Национальный"){ if ($( this ).parent().css ('display') != 'none'){ $( this ).parent().css ('display', 'none'); console.log($( this ).parent().parent().html()); } } else if ($( this ).text() == "Русский") { $( this ).parent().css('height', '350px'); } }); }