Last active
December 16, 2020 13:12
-
-
Save senpl/88114c41cfaca431db16d9d5b9f5e197 to your computer and use it in GitHub Desktop.
Piłka nożna męska i hokej na TVP sport
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 Piłka nożna męska i hokej na TVP sport | |
// @namespace https://gist.github.com/senpl | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author Michał Urbanek | |
// @match https://sport.tvp.pl/program-tv* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
var rows=document.querySelectorAll("#app > section > section.programtv-section.programtv-section--listing > div > div > div > div"); | |
rows.forEach(row => { | |
var title=row.querySelector("h2.station-item__title"); | |
if((!title.textContent.includes("Liga Mistrzów - Skróty meczów")&&!title.textContent.includes("iłka nożna")&&!title.textContent.includes("GOL")&&!title.textContent.includes("4-4-2")&&!title.textContent.includes("utbolu")&&!title.textContent.includes("okej na lodzie"))||title.textContent.includes("obiet")){ | |
row.style.display= "none"; | |
} | |
},) | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment