Skip to content

Commit 10301dd

Browse files
committed
head no style?
1 parent bd32b85 commit 10301dd

File tree

2 files changed

+21
-26
lines changed

2 files changed

+21
-26
lines changed

Writerside/cfg/after-body.html

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
<!-- Google 页内文章AD -->
22
<script>
33
/*横向广告*/
4-
//(function () {
5-
// try {
6-
// var elements = document.getElementsByTagName('article');
7-
// if (elements && elements.length > 0) {
8-
// var article = elements[0];
9-
// var insDiv = document.createElement('div');
10-
// insDiv.setAttribute('class', 'ins_div');
11-
// var ins = document.createElement('ins');
12-
// ins.setAttribute('class', 'adsbygoogle adsbygoogle_inline_ins');
13-
// /*ins.setAttribute('style', 'display:block');*/
14-
// ins.style.display = 'block';
15-
// ins.setAttribute('data-ad-client', 'ca-pub-4062299174917944');
16-
// ins.setAttribute('data-ad-slot', 'auto');
17-
// ins.setAttribute('data-full-width-responsive', 'true');
18-
// insDiv.appendChild(ins);
19-
// article.appendChild(insDiv);
20-
// (adsbygoogle = window.adsbygoogle || []).push({});
21-
// console.log('adsbygoogle pushed.');
22-
// }
23-
// } catch(e) {console.log(e);}
24-
//})();
4+
(function () {
5+
try {
6+
var elements = document.getElementsByTagName('article');
7+
if (elements && elements.length > 0) {
8+
var article = elements[0];
9+
var insDiv = document.createElement('div');
10+
insDiv.setAttribute('class', 'ins_div');
11+
var ins = document.createElement('ins');
12+
ins.setAttribute('class', 'adsbygoogle adsbygoogle_inline_ins');
13+
/*ins.setAttribute('style', 'display:block');*/
14+
ins.style.display = 'block';
15+
ins.setAttribute('data-ad-client', 'ca-pub-4062299174917944');
16+
ins.setAttribute('data-ad-slot', 'auto');
17+
ins.setAttribute('data-full-width-responsive', 'true');
18+
insDiv.appendChild(ins);
19+
article.appendChild(insDiv);
20+
(adsbygoogle = window.adsbygoogle || []).push({});
21+
console.log('adsbygoogle pushed.');
22+
}
23+
} catch(e) {console.log(e);}
24+
})();
2525
</script>

Writerside/cfg/head-script.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,3 @@
1616

1717
<!-- meta keywords -->
1818
<meta name="keywords" content="Simple Robot, simbot, Simple Robot 4, simbot4, Java, Java11, Kotlin, Kotlin Multiplatform, KMP, Kotlin JVM, Simple Robot v4, bot, forte, ForteScarlet, 法欧特斯卡雷特, 法欧特">
19-
20-
<style>
21-
.adsbygoogle_inline_ins {
22-
}
23-
</style>

0 commit comments

Comments
 (0)