<script type="text/javascript">
if (/firefox/i.test(navigator.userAgent)){
window.oldGetComputedStyle = window.getComputedStyle;
console.log("a");
window.getComputedStyle = function (element, pseudoElt) {
var t = window.oldGetComputedStyle(element, pseudoElt);
console.log(t);
if (t === null) {
return {
getPropertyValue: function(){}
};
} else{
return t;
}
};
}
</script>
if (/firefox/i.test(navigator.userAgent)){
window.oldGetComputedStyle = window.getComputedStyle;
console.log("a");
window.getComputedStyle = function (element, pseudoElt) {
var t = window.oldGetComputedStyle(element, pseudoElt);
console.log(t);
if (t === null) {
return {
getPropertyValue: function(){}
};
} else{
return t;
}
};
}
</script>