Skip to content

Instantly share code, notes, and snippets.

@senpl
Last active December 16, 2020 13:12
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 senpl/88114c41cfaca431db16d9d5b9f5e197 to your computer and use it in GitHub Desktop.
Save senpl/88114c41cfaca431db16d9d5b9f5e197 to your computer and use it in GitHub Desktop.
Piłka nożna męska i hokej na TVP sport
// ==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