michael@0: ع michael@0: michael@0: /*template*/ michael@0: var doc = document; michael@0: if (document.getElementById('content')) michael@0: doc = document.getElementById('content').contentDocument; michael@0: michael@0: function addfirstletter(){ michael@0: var x=doc.createElementNS('http://www.w3.org/1999/xhtml','style'); michael@0: x.innerHTML='\ michael@0: *::first-letter {float: right; text-transform: uppercase; background-color:red; font-size:600%;}\ michael@0: '; michael@0: doc.documentElement.appendChild(x); michael@0: } michael@0: michael@0: setTimeout(addfirstletter,200); michael@0: michael@0: /*template*/ michael@0: michael@0: /*template*/ michael@0: var doc = document; michael@0: if (document.getElementById('content')) michael@0: doc = document.getElementById('content').contentDocument; michael@0: michael@0: function addfirstline(){ michael@0: var x=doc.createElementNS('http://www.w3.org/1999/xhtml','style'); michael@0: x.innerHTML='\ michael@0: *::first-line { text-transform: uppercase; background-color:green; font-size:110%; height: 110%;}\ michael@0: *::after { content:"anonymous text"; float:right;border:3px solid black;text-transform: uppercase;height: 90%;}\ michael@0: *::before { content:"before text"; float:right;border:3px solid black;font-size: 10px;width:80%;}\ michael@0: '; michael@0: doc.documentElement.appendChild(x); michael@0: } michael@0: setTimeout(addfirstline,200); michael@0: michael@0: /*template*/ michael@0: /*template*/ michael@0: var doc = document; michael@0: if (document.getElementById('content')) michael@0: doc = document.getElementById('content').contentDocument; michael@0: michael@0: var timers=0; michael@0: function doe(aObj, aNested, aCurrentTimer){ michael@0: var temp =0; michael@0: for (var i in aObj) { michael@0: try { michael@0: if (i == 'ordinal') michael@0: continue; michael@0: if (typeof aObj[i] == 'object') { michael@0: if (aNested >= 1000 || aObj[i] == window.location || aOb[i] == doc.documentElement.boxObject) michael@0: continue; michael@0: setTimeout(doe,500, aObj[i], ++aNested, timers); michael@0: timers++; michael@0: if (aOb[i] == doc.documentElement.boxObject.firstChild) { michael@0: alert(i); michael@0: continue; michael@0: }; michael@0: } michael@0: if (i == 'textContent' || i == 'innerHTML') michael@0: continue; michael@0: } michael@0: catch(e){} michael@0: try { michael@0: //if (temp == 68 && aNested == 21 && aCurrentTimer >= 116) { michael@0: // alert(i + '-'+ aObj[i]); michael@0: // return; michael@0: // } michael@0: michael@0: if (typeof aObj[i] == 'function') { michael@0: if (i =='removeChild' || i == 'getBoxObjectFor' || i == 'enableRollup') michael@0: aObj[i](doc.documentElement); michael@0: } michael@0: else { michael@0: aObj[i]= 'on'; michael@0: } michael@0: temp+=1; michael@0: } michael@0: catch (e) { michael@0: michael@0: } michael@0: } michael@0: } michael@0: michael@0: setTimeout(doe,0, doc.documentElement, 300); michael@0: michael@0: /*template*/ michael@0: michael@0: michael@0: