Bearbeiten von „OS2.spielerstatistik“
Zur Navigation springen
Zur Suche springen
Die Bearbeitung kann rückgängig gemacht werden. Bitte prüfe den Vergleich unten, um sicherzustellen, dass du dies tun möchtest, und veröffentliche dann unten deine Änderungen, um die Bearbeitung rückgängig zu machen.
Aktuelle Version | Dein Text | ||
Zeile 1: | Zeile 1: | ||
[[Kategorie:Greasemonkey]] | [[Kategorie:Greasemonkey]] | ||
{| style="background-color:white; font-size:11px; float: right; margin:3px 3px 3px 10px; border:1px solid #999; border-color: #8c9a7c; border-collapse:collapse;" width=500 cellpadding=3 cellspacing=0 | {| style="background-color:white; font-size:11px; float: right; margin:3px 3px 3px 10px; border:1px solid #999; border-color: #8c9a7c; border-collapse:collapse;" width=500 cellpadding=3 cellspacing=0 | ||
| colspan="2" style="padding:0.3em; background-color:#8c9a7c; font-size: 18px; color:#FFFFFF" align=center| '''OS2.spielerstatistik''' | | colspan="2" style="padding:0.3em; background-color:#8c9a7c; font-size: 18px; color:#FFFFFF" align=center| '''OS2.spielerstatistik''' | ||
Zeile 8: | Zeile 7: | ||
|- bgcolor="#CCCCCC" | |- bgcolor="#CCCCCC" | ||
| '''Version''' | | '''Version''' | ||
| 0.1 | | 0.1 | ||
|- bgcolor="#CCCCCC" | |- bgcolor="#CCCCCC" | ||
| '''Autor''' | | '''Autor''' | ||
Zeile 21: | Zeile 20: | ||
|} | |} | ||
== | == Quellcode == | ||
<pre> | <pre> | ||
// ==UserScript== | // ==UserScript== | ||
// @name OS2.spielerstatistik | // @name OS2.spielerstatistik | ||
// @namespace http://os.ongapo.com/ | // @namespace http://os.ongapo.com/ | ||
// @version 0.1 | // @version 0.1 | ||
// @copyright 2016+ | // @copyright 2016+ | ||
// @author Roman Bauer | // @author Roman Bauer | ||
// @description Sortierung/Formatierung der Statistikspalten | // @description Sortierung/Formatierung der Statistikspalten | ||
// @include / | // @include http*://os.ongapo.com/showteam.php?s=3&* | ||
// @include / | // @include http*://www.os.ongapo.com/showteam.php?s=3&* | ||
// @ | // @include http*://online-soccer.eu/showteam.php?s=3&* | ||
// @ | // @include http*://www.online-soccer.eu/showteam.php?s=3&* | ||
// @include http*://www.os-zeitungen.com/showteam.php?s=3 | |||
// @include http*://os.ongapo.com/st.php?*s=3* | |||
// @include http*://www.os.ongapo.com/st.php?*s=3* | |||
// @include http*://online-soccer.eu/st.php?*s=3* | |||
// @include http*://www.online-soccer.eu/st.php?*s=3* | |||
// @include http*://www.os-zeitungen.com/st.php?*s=3* | |||
// @include http*://os.ongapo.com/showteam.php?s=4&* | |||
// @include http*://www.os.ongapo.com/showteam.php?s=4&* | |||
// @include http*://online-soccer.eu/showteam.php?s=4&* | |||
// @include http*://www.online-soccer.eu/showteam.php?s=4&* | |||
// @include http*://www.os-zeitungen.com/showteam.php?s=4 | |||
// @include http*://os.ongapo.com/st.php?*s=4* | |||
// @include http*://www.os.ongapo.com/st.php?*s=4* | |||
// @include http*://online-soccer.eu/st.php?*s=4* | |||
// @include http*://www.online-soccer.eu/st.php?*s=4* | |||
// @include http*://www.os-zeitungen.com/st.php?*s=4* | |||
// @grant GM_addStyle | // @grant GM_addStyle | ||
// ==/UserScript== | // ==/UserScript== | ||
/*global GM_addStyle */ | |||
(function () { | (function () { | ||
Zeile 65: | Zeile 82: | ||
if (r === 0 || r === (tableClone.rows.length - 1)) { | if (r === 0 || r === (tableClone.rows.length - 1)) { | ||
// Zeile wird | // Zeile wird weier unten gelöscht | ||
} else if (r === 1 || r === (tableClone.rows.length - 2)) { | } else if (r === 1 || r === (tableClone.rows.length - 2)) { | ||
Zeile 99: | Zeile 116: | ||
} | } | ||
if | if (r > 0 && r < (tableClone.rows.length - 1)) { | ||
for (c = 3; c < SORT_COLUMNS.length; c++) { | for (c = 3; c < SORT_COLUMNS.length; c++) { | ||
tableClone.rows[r].cells[c].setAttribute("art", SORT_COLUMNS[c]); | tableClone.rows[r].cells[c].setAttribute("art", SORT_COLUMNS[c]); | ||
Zeile 115: | Zeile 132: | ||
table.parentNode.replaceChild(tableClone, table); | table.parentNode.replaceChild(tableClone, table); | ||
GM_addStyle('table[id^=team] td[art=LI] div div { margin-left:-8px !important; }'); | |||
GM_addStyle('table[id^=team] td[art=LI] { padding-left:10px !important; }'); | |||
})(); | })(); | ||
</pre> | </pre> |