Changeset 428
- Timestamp:
- 08/07/08 21:47:29 (5 months ago)
- Files:
-
- 1 modified
-
extension/kabl/content/kabl-policy.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
extension/kabl/content/kabl-policy.js
r424 r428 206 206 ('cutoff'==type && score>=gKablRulesObj.cutoff) 207 207 ) { 208 // try block just in case, attempt to hide the node, i.e.209 // if a non-loaded image will result in an alt tag showing210 208 try { 211 fields.node=fields.node209 var el=fields.node 212 210 .QueryInterface(Components.interfaces.nsIDOMNode); 213 fields.node.setAttribute('style', 'display: none !important');214 211 } catch (e) { 215 212 if (gKablDebug) dump('Error in evalScore: '+e+'\n'); 216 } 217 218 // mark a node for extended hiding 213 return; 214 } 215 216 // Attempt to hide the node, i.e. if a non-loaded image will 217 // result in an alt tag showing. 219 218 try { 220 fields.node=fields.node 221 .QueryInterface(Components.interfaces.nsIDOMNode); 222 fields.node.setAttribute('kabl', gKablCollapseMarker); 219 el.setAttribute('style', 'display: none !important'); 220 } catch (e) { 221 if (gKablDebug) dump('Error in evalScore: '+e+'\n'); 222 } 223 224 // Mark the node for collapsing. 225 try { 226 if ('STYLE'!=el.tagName) { 227 el.setAttribute('kabl', gKablCollapseMarker); 228 } 223 229 } catch (e) { 224 230 if (gKablDebug) dump('Error in evalScore: '+e+'\n'); … … 284 290 if (el) { 285 291 el=el.QueryInterface(Components.interfaces.nsIDOMNode); 286 //el.style.display='none !important';287 292 el.setAttribute('style', 'display: none !important'); 288 293 el.setAttribute('kablcollapse', '1');