Histórico de versões de domain.cls - 6 versões
domain.cls por Bruce Wen
Histórico de versões de domain.cls - 6 versões
Tenha cuidado com versões antigas! Estas versões são mostradas para fins de teste e referência.Recomenda-se que utilize sempre a versão mais recente de um complemento.
Versão mais recente
Versão 1.6
Lançada em 22 de fev de 2022 - 68,21 KBFunciona com firefox 48.0 e superiorTo 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.Código fonte lançado sob Licença Pública Mozilla 2.0
Versões antigas
Versão 1.5
Lançada em 22 de fev de 2022 - 68,21 KBFunciona com firefox 48.0 e superiorBug 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('_')
}Código fonte lançado sob Licença Pública Mozilla 2.0
Versão 1.4
Lançada em 22 de fev de 2022 - 68,17 KBFunciona com firefox 48.0 e superiorFix bug:
by using d_array.slice(start, end) - end is not included. That's different from node.js behavior.Código fonte lançado sob Licença Pública Mozilla 2.0
Versão 1.3
Lançada em 22 de fev de 2022 - 68,17 KBFunciona com firefox 48.0 e superiorIf 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.Código fonte lançado sob Licença Pública Mozilla 2.0
Versão 1.2
Lançada em 17 de fev de 2022 - 8,84 KBFunciona com firefox 48.0 e superiorBy 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.Código fonte lançado sob Licença Pública Mozilla 2.0
Versão 1.1
Lançada em 16 de fev de 2022 - 8,84 KBFunciona com firefox 48.0 e superiorFix domain name
Only choose last 2 parts in document.domain as domain nameCódigo fonte lançado sob Licença Pública Mozilla 2.0