User:Shelkovitsa/CBB.js

var tables = document.querySelectorAll('table');

var textFound = false;

tables.forEach(function(table) {	if (table.innerText.includes("men's basketball team") || table.innerText.includes("women's basketball team")) {   	table.classList.add("cbb-roster-table");    	textFound = true;	} });

if (textFound) { mw.loader.load('/w/index.php?title=User:Shelkovitsa/CBB.css&action=raw&ctype=text/css', 'text/css'); }