// ==UserScript==
// @name BasketPulse - live match
// @namespace https://www.basketpulse.com
// @description BasketPulse - live match
// @version 1
// @grant none
// @require http://code.jquery.com/jquery-latest.js
// @include https://www.basketpulse.com/**/Rungtynes-live-*
// ==/UserScript==
this.$ = this.jQuery = jQuery.noConflict(true);
$(document).ready(function() {
$(liveMatchStyle).appendTo('head');
});
var liveMatchStyle = `
<style>
@media (min-width: 1401px) {
#board,
#board .b-top,
#board .b-mid,
#board .box,
#board .box-head,
#board .box-list,
#board .bhead1,
#board .box-foot,
#board .actions-head,
#board .actions-list .action,
#board .actions-foot,
#board hr.box-split,
#board .b-mid .b-leag,
#board .court-players,
#board .cont {
width: 100%;
}
#board .b-mid {
position: absolute;
margin: 0;
}
#board .b-mid .b-l,
#board .b-mid .b-r {
width: 0;
overflow: hidden;
}
.b-leag {
position: absolute;
top: 126px;
}
#board .b-bot {
z-index: 1;
}
#board .box .c1 {
display: none;
}
#board .box .c2 {
width: 80px;
white-space: nowrap;
overflow: hidden;
text-indent: 0;
padding: 0 3px;
text-overflow: ellipsis;
}
#board .bhead1 .bc1 {
width: 172px;
}
#board .b-tab {
padding: 5px 0;
}
#board .tab-cont {
width: fit-content;
}
#board .actions {
width: calc(100% - 673px - 22px);
height: calc(100vh - 220px);
margin: 0;
border-left: 0;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
#board .actions-list {
width: 100%;
height: calc(100% - 15px - 45px);
}
#board .actions .c3 {
width: calc(100% - 70px - 46px - 20px - 40px);
}
#board #tab-1,
#board #tab-2 {
width: 673px;
}
.cont {
display: flex;
flex-wrap: wrap;
position: relative;
}
#board .court-players {
display: flex;
flex-direction: column;
justify-content: space-evenly;
align-items: center;
height: 693px;
flex-direction: row;
flex-wrap: wrap;
gap: 10px;
}
#board .court-players .court {
order: 0;
width: 100%;
height: 50%;
background-size: 100%;
}
#board .court-players .court-shots {
transform: scale(1.65);
transform-origin: top left;
}
#board .court-players .players {
order: 1;
height: 50%;
}
#board .b-mid {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
#breakInfo {
width: 100% !important;
height: 100% !important;
}
#breakInfoContent {
width: 100% !important;
height: 100% !important;
}
}
</style>
`;