NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Radio Record Set Icons, Megamix // @namespace radiorecord.ru_player_megamix.user.js // @version 0.0.1 // @description try to take over the world! // @author You // @license GPL-2.0-only // @match *.radiorecord.ru/player/* // @grant none // @@run-at document-end // @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js // @require file:///home/alex/0Mega/MyProjects/UserScripts/radiorecord.ru_player_megamix.user.js // ==/UserScript== (function ($, undefined) { //radio/stations/ $(function(){ // 'use strict'; var cl = console.log, isset = function (e){ return typeof e == 'undefined' ? false : true;}, currentTrack = null, endvar; //cl($('.lists_stations a')); function set_stations(){ $.each($('.lists_stations a'), function(){ var $this = $(this); //cl($this.children().eq(0).children().eq(0).children().eq(0)); if( $this.children().eq(0).hasClass('station_mix') || $this.children().eq(0).hasClass('station_gold') || $this.children().eq(0).hasClass('station_bighits') || $this.children().eq(0).hasClass('station_rmx') || $this.children().eq(0).hasClass('station_edm') || $this.children().eq(0).hasClass('station_vip') ){ $this.prependTo($('.lists_stations')); } /* if( $this.children().eq(0).hasClass('station_gold') ){ $this.find('.hasSVG').html(`<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-2 2 70.8 67.5" enable-background="new -2 2 70.8 67.5" xml:space="preserve"> <g><polyline fill="none" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points=" 31.7,16.9 35.4,8.5 43,26.2 62.2,28 47.7,40.7 51.9,59.5 35.4,49.7 18.8,59.5 23,40.7 8.6,28 23,26.6 "/><path fill-rule="evenodd" clip-rule="evenodd" fill="none" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d=" M34.3,23.6c-5.3,0-5.5-4.6-5.5-10c0,5.4-0.2,10-5.5,10c5.3,0,5.5,4.6,5.5,10C28.8,28.2,29,23.6,34.3,23.6L34.3,23.6z"/> <path fill="none" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d=" M35.4,18l5.1,11.7 M53.1,30.9l-9.6,8.4l2.8,12.4l-11-6.5l-11,6.5"/> </g> </svg>`); }*/ cl($this.find('.hasSVG')); //$this.find('.hasSVG') }); } function timeout(){ if($('.lists_stations a').length){ set_stations(); return; } setTimeout(timeout, 100); } timeout(); //$('.textinfo pull-left').eq(0). }); })(window.jQuery.noConflict(true));