Firefox Browser Add-ons
  • Extensions
  • Themes
    • for Firefox
    • Dictionaries & Language Packs
    • Other Browser Sites
    • Add-ons for Android
Log in
Add-on icon

domain.cls version history - 6 versions

domain.cls by Bruce Wen

There are no ratings yet
0 Stars out of 5
5
0
4
0
3
0
2
0
1
0
domain.cls version history - 6 versions
  • Be careful with old versions! These versions are displayed for testing and reference purposes.You should always use the latest version of an add-on.

  • Latest version

    Version 1.6

    Released Feb 22, 2022 - 68.21 KB
    Works with firefox 48.0 and later
    To 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.

    Source code released under Mozilla Public License 2.0

    You'll need Firefox to use this extension
    Download Firefox and get the extension
    Download file
  • Older versions

    Version 1.5

    Released Feb 22, 2022 - 68.21 KB
    Works with firefox 48.0 and later
    Bug 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('_')
    }

    Source code released under Mozilla Public License 2.0

    Download file
  • Version 1.4

    Released Feb 22, 2022 - 68.17 KB
    Works with firefox 48.0 and later
    Fix bug:
    by using d_array.slice(start, end) - end is not included. That's different from node.js behavior.

    Source code released under Mozilla Public License 2.0

    Download file
  • Version 1.3

    Released Feb 22, 2022 - 68.17 KB
    Works with firefox 48.0 and later
    If 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.

    Source code released under Mozilla Public License 2.0

    Download file
  • Version 1.2

    Released Feb 17, 2022 - 8.84 KB
    Works with firefox 48.0 and later
    By 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.

    Source code released under Mozilla Public License 2.0

    Download file
  • Version 1.1

    Released Feb 16, 2022 - 8.84 KB
    Works with firefox 48.0 and later
    Fix domain name

    Only choose last 2 parts in document.domain as domain name

    Source code released under Mozilla Public License 2.0

    Download file
Go to Mozilla's homepage

Add-ons

  • About
  • Firefox Add-ons Blog
  • Extension Workshop
  • Developer Hub
  • Developer Policies
  • Community Blog
  • Forum
  • Report a bug
  • Review Guide

Browsers

  • Desktop
  • Mobile
  • Enterprise

Products

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Twitter (@firefox)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Privacy
  • Cookies
  • Legal

Except where otherwise noted, content on this site is licensed under the Creative Commons Attribution Share-Alike License v3.0 or any later version.