Skip to content

Commit 2973f46

Browse files
committed
手机不配?
1 parent 4bf664b commit 2973f46

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

Writerside/cfg/head-script.html

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,12 @@
2222
const elements = document.getElementsByTagName('article');
2323
if (elements && elements.length > 0) {
2424
const article = elements[0];
25-
//const insDiv = document.createElement('div');
26-
//insDiv.setAttribute('class', 'ins_div');
2725
const ins = document.createElement('ins');
28-
ins.setAttribute('class', 'adsbygoogle adsbygoogle_inline_ins');
29-
/*ins.setAttribute('style', 'display:block');*/
26+
ins.setAttribute('class', 'adsbygoogle');
3027
ins.style.display = 'block';
3128
ins.setAttribute('data-ad-client', 'ca-pub-4062299174917944');
3229
ins.setAttribute('data-ad-slot', 'auto');
3330
ins.setAttribute('data-full-width-responsive', 'true');
34-
//insDiv.appendChild(ins);
3531
article.appendChild(ins);
3632
then();
3733
}
@@ -42,15 +38,15 @@
4238
}
4339

4440
/*横向广告*/
45-
document.addEventListener("DOMContentLoaded", (event) => {
41+
document.addEventListener('DOMContentLoaded', (event) => {
4642
try {
4743
_addIns(() => {
4844
window.addEventListener('load',(event) => {
4945
try {
5046
_pushAd('on event `load`');
51-
} catch(e) {console.log(e);}
47+
} catch(e) {console.log(e);alert(e);}
5248
});
5349
});
54-
} catch(e) {console.log(e);}
50+
} catch(e) {console.log(e);alert(e);}
5551
});
5652
</script>

0 commit comments

Comments
 (0)