NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name rojadirecta schedule // @namespace http://ibrodtv.net/gm // @version 0.1 // @description Find channel faster. configure your channels, it will be marked as RED and Bold // @author Sliightz // @include http://www.rojadirecta.me/* // @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js // @grant GM_addStyle // ==/UserScript== /*$(function(){ var search = 'iBrodTV 27'; $("table tr td").filter(function() { return $(this).text() == search; }).parent('tr').css('color','red').css('font-weight', 'bold'); }); $("table tr td").filter(function() { if ($(this).text().toLowerCase() == 'ibrod TV20'.toLowerCase() || $(this).text().toLowerCase() == 'Ibrod TV19'.toLowerCase()) { $(this).parent('tr').css('color','red').css('font-weight', 'bold'); } });*/ //var nameList = ['Ibrod TV20','Ibrod TV19','vikash','jammy','tumblr','kamal']; array = ["iBrodTV 1","iBrodTV 2","iBrodTV 3","iBrodTV 4","iBrodTV 5","iBrodTV 6","iBrodTV 7","iBrodTV 8","iBrodTV 9","iBrodTV 10","iBrodTV 11","iBrodTV 12","iBrodTV 13","iBrodTV 14","iBrodTV 15","iBrodTV 16","iBrodTV 17","iBrodTV 18","iBrodTV 19","iBrodTV 20","iBrodTV 21","iBrodTV 22","iBrodTV 23","iBrodTV 24","iBrodTV 25","iBrodTV 26","iBrodTV 27","iBrodTV 28","iBrodTV 29","iBrodTV 30","iBrodTV 31","iBrodTV 32","iBrodTV 33","iBrodTV 34","iBrodTV 35","iBrodTV 36","iBrodTV 37","iBrodTV 38"]; //console.log("array: "+array); //array: Apples,Oranges,FRUIT arrayString = array.toString(); arrayLowerString = arrayString.toLowerCase(); var arrayLower = arrayLowerString.split(","); //console.log("arrayLower: "+arrayLower); //apples,oranges,fruit /* Search vikash in array list. */ $("table tr td").filter(function() { if($.inArray($(this).text().toLowerCase(), arrayLower)>=0){ $(this).parent('tr').css('color','red').css('font-weight', 'bold'); console.log('1'); }/*else{ console.log('2'); //$("table tr td").not(':contains("Ibrod TV20")').parent('tr').css('background-color','red'); // code for false condition }*/ });