Firefox Profile chrome UserContent.css

Fehler finden, leicht gemacht

HTML Fehler finden ist garnicht so leicht denn oft werden sie durch manche Browser wie z.B. dem Mozilla Firefox weg optimiert.
Durch einen einfachen Trick kann man sie jedoch wieder sichtbar machen, im Profile Ordner muss falls er noch nicht existiert ein Ordner chrome angelegt werden, und in diesem muss eine Datei UserContent.css mit folgendem Inhalt angelegt werden.

UserContent.css StyleSheet (700 Bytes) 30.01.2017 16:59
/* enable image placeholders for broken images */
@-moz-document url-prefix(http), url-prefix(file) {
  img: -moz-broken{
    -moz-force-broken-image-icon: 1;
    width: 24px;
    height: 24px;
    background-color: red !important;
  }
}
/* enable show empty links */ 
:link[href]:empty:not([id]):not([class]):not([style]) {
  border: 1px solid red !important;
  background: red !important;
}
/* enable show rel nofollow links */
a[rel~="nofollow"],a[rel~="nofollow"] * {
  color:red !important;
  background-color:yellow !important
}
/* make empty divs visible */
div:empty:before {content:"[" attr(class) "]";}
div:empty {background-color:magenta; color:white; min-height:8px;}

Nach dem Neustart des Mozilla Firefox werden fehlende Bilder und leere Links sichtbar.

Kontakt

Udo Schmal
Udo Schmal

Udo Schmal
Softwareentwickler
Ellerndiek 26
24837 Schleswig
Schleswig-Holstein
Germany




+49 4621 9785538
+49 1575 0663676
+49 4621 9785539
SMS
WhatsApp

Google Maps Profile
Instagram Profile
vCard 2.1, vCard 3.0, vCard 4.0

Service Infos

CMS Info

Product Name:
UDOs Webserver
Version:
0.5.1.71
Description:
All in one Webserver
Copyright:
Udo Schmal
Compilation:
Tue, 26. Mar 2024 07:33:29

Development Info

Compiler:
Free Pascal FPC 3.3.1
compiled for:
OS:Linux, CPU:x86_64

System Info

OS:
Ubuntu 22.04.4 LTS (Jammy Jellyfish)

Hardware Info

Model:
Hewlett-Packard HP Pavilion dm4 Notebook PC
CPU Name:
Intel(R) Core(TM) i5-2430M CPU @ 2.40GHz
CPU Type:
x86_64, 1 physical CPU(s), 2 Core(s), 4 logical CPU(s),  MHz