Historia wersji dodatku domain.cls — 6 wersji
domain.cls Autor: Bruce Wen
Historia wersji dodatku domain.cls — 6 wersji
Zachowaj ostrożność podczas używania starych wersji! Są one wyświetlane w celach testowych i historycznych.Zawsze powinno używać się najnowszej wersji dodatku.
Najnowsza wersja
Wersja 1.6
Data wydania: 22 lut 2022 — 68,21 KBDziała z: firefox 48.0 i nowszeTo support sub-domain like en.wikipedia.org, we need to use en_wikipedia as body class to distinguish other language version of wikipedia. Similar, google translate should have different body class from gmail.Licencja kodu źródłowego: Mozilla Public License 2.0
Pobierz Firefoksa i to rozszerzeniePotrzebujesz Firefoksa, aby używać tego rozszerzeniaPoprzednie wersje
Wersja 1.5
Data wydania: 22 lut 2022 — 68,21 KBDziała z: firefox 48.0 i nowszeBug fix:
If domain name consists of 2 or 3 labels, the code below won't work - it will return empty:
d_core = d_parts.slice(1, d_parts.length-1).join('_')
It's fixed as:
var d_core = d_parts[d_parts.length-2]
if (d_parts.length > 3){
d_core = d_parts.slice(1, d_parts.length-1).join('_')
}Licencja kodu źródłowego: Mozilla Public License 2.0
Wersja 1.4
Data wydania: 22 lut 2022 — 68,17 KBDziała z: firefox 48.0 i nowszeFix bug:
by using d_array.slice(start, end) - end is not included. That's different from node.js behavior.Licencja kodu źródłowego: Mozilla Public License 2.0
Wersja 1.3
Data wydania: 22 lut 2022 — 68,17 KBDziała z: firefox 48.0 i nowszeIf domain name consists of more than 3 labels, then use labels from 2nd to the one before last as the body class name. The dot will be replaced with underscore.
For example, if domain name is sandbox.gitlab.test.java.oracle.com, then use "gitlab_test_java_oracle" as body class.Licencja kodu źródłowego: Mozilla Public License 2.0
Wersja 1.2
Data wydania: 17 lut 2022 — 8,84 KBDziała z: firefox 48.0 i nowszeBy using domain name and top level domain are not necessary, and it will cause css misunderstanding the 'class' name as the dot '.' is special keyword for css class selector.
Thus, change to use domain name only as body class.Licencja kodu źródłowego: Mozilla Public License 2.0
Wersja 1.1
Data wydania: 16 lut 2022 — 8,84 KBDziała z: firefox 48.0 i nowszeFix domain name
Only choose last 2 parts in document.domain as domain nameLicencja kodu źródłowego: Mozilla Public License 2.0