Thread:Extension talk:TwitterCards/Breaks user script and stylesheet pages/reply

This is the workaround I came up with. With my luck, I'm probably doing it all wrong: $lstitleext = strtolower(strrchr(@$_REQUEST['title'], '.')); $lsiscss = $lstitleext === '.css' || $lstitleext === '.js'; $lsisuser = explode(':', strtolower(@$_REQUEST['title'])); $lsisuser = $lsisuser[0] === 'user'; if (!$lsisuser || !$lsiscss) { require_once "$IP/extensions/TwitterCards/TwitterCards.php"; }