Skip to content

Commit bd32b85

Browse files
committed
no ad?
1 parent b64ec2c commit bd32b85

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
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/writerside.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
<vars src="v.list"/>
99
<instance src="s4.tree" version="v%version%" />
1010
<settings>
11-
<!-- <id-generator-method>LOWER_CASE_DASHES_INTERNATIONAL</id-generator-method>-->
11+
<id-generator-method>LOWER_CASE_DASHES_INTERNATIONAL</id-generator-method>
1212
</settings>
1313
</ihp>

0 commit comments

Comments
 (0)