
domain.cls από Bruce Wen
Add 'domain' to body class
Θα χρειαστείτε το Firefox για να χρησιμοποιήσετε αυτήν την επέκταση
Μεταδεδομένα επέκτασης
Σχετικά με την επέκταση
Most web sites pages don't use the domain name as body class to distinguish from other web sites' pages. That makes web page appearance customization hard in some degree. The reason is that people have to distinguish web sites by specific configuration (by domain name, regex etc).
By adding domain name to body classList, the problem could be solved. Web/UI/UX developers can create customized styl, css scripts to re-design web page appearance easily - they can put all customization script together for different web sites and don't need to care about collision.
For example, after using the add-on, the web page will be changed to add domain name to body class attribute.
<body class="mozilla ">
<body class="apache">
Then, in styl or css script file, developer can make customization like below:
body.mozilla {font-size: 15px}
body.apache {font-size: 16px}
By adding domain name to body classList, the problem could be solved. Web/UI/UX developers can create customized styl, css scripts to re-design web page appearance easily - they can put all customization script together for different web sites and don't need to care about collision.
For example, after using the add-on, the web page will be changed to add domain name to body class attribute.
<body class="mozilla ">
<body class="apache">
Then, in styl or css script file, developer can make customization like below:
body.mozilla {font-size: 15px}
body.apache {font-size: 16px}
Βαθμολόγηση εμπειρίας
Υποστήριξη προγραμματιστή
Ο προγραμματιστής της επέκτασης σάς ζητά να βοηθήσετε τη συνεχή ανάπτυξή της με μια μικρή συνεισφορά.
ΔικαιώματαΜάθετε περισσότερα
Αυτό το πρόσθετο απαιτεί να:
- Έχει πρόσβαση στα δεδομένα σας για κάθε ιστότοπο
Περισσότερες πληροφορίες
- Σύνδεσμοι προσθέτου
- Έκδοση
- 1.6
- Μέγεθος
- 68,21 KB
- Τελευταία ενημέρωση
- 3 χρόνια πριν (22 Φεβ 2022)
- Σχετικές κατηγορίες
- Άδεια
- Mozilla Public License 2.0
- Ιστορικό εκδόσεων
Προσθήκη σε συλλογή
Σημειώσεις έκδοσης του 1.6
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.
Περισσότερες επεκτάσεις από Bruce Wen
- Δεν υπάρχουν ακόμη βαθμολογίες
- Δεν υπάρχουν ακόμη βαθμολογίες
- Δεν υπάρχουν ακόμη βαθμολογίες
- Δεν υπάρχουν ακόμη βαθμολογίες
- Δεν υπάρχουν ακόμη βαθμολογίες
- Δεν υπάρχουν ακόμη βαθμολογίες
By adding domain name to body classList, it's easier to define styl, css scripts for specific web sites/pages belong to the same domain without worry about collision among different domains.