@@ -349,26 +349,30 @@ const MarkdownRender: React.FC<MarkdownRenderProps> = ({
349349
350350 if ( firstAdBlock ) {
351351 // Insert first ad
352- const adDiv1 = doc . createElement ( 'ins' ) ;
353- adDiv1 . className = 'adsbygoogle' ;
354- adDiv1 . style . display = 'block' ;
355- adDiv1 . style . textAlign = 'center' ;
356- adDiv1 . setAttribute ( 'data-ad-layout' , 'in-article' ) ;
357- adDiv1 . setAttribute ( 'data-ad-format' , 'fluid' ) ;
358- adDiv1 . setAttribute ( 'data-ad-client' , 'ca-pub-5574866530496701' ) ;
359- adDiv1 . setAttribute ( 'data-ad-slot' , '9632367492' ) ;
352+ // const adDiv1 = doc.createElement('ins');
353+ // adDiv1.className = 'adsbygoogle';
354+ // adDiv1.style.display = 'block';
355+ // adDiv1.style.textAlign = 'center';
356+ // adDiv1.setAttribute('data-ad-layout', 'in-article');
357+ // adDiv1.setAttribute('data-ad-format', 'fluid');
358+ // adDiv1.setAttribute('data-ad-client', 'ca-pub-5574866530496701');
359+ // adDiv1.setAttribute('data-ad-slot', '9632367492');
360+ const adDiv1 = doc . createElement ( 'div' ) ;
361+ adDiv1 . setAttribute ( 'data-fuse' , 'incontent_1_articlepage' ) ;
360362 firstAdBlock . parentNode ?. insertBefore ( adDiv1 , firstAdBlock ) ;
361363
362364 // Insert second ad if applicable
363365 if ( secondAdBlock ) {
364- const adDiv2 = doc . createElement ( 'ins' ) ;
365- adDiv2 . className = 'adsbygoogle' ;
366- adDiv2 . style . display = 'block' ;
367- adDiv2 . style . textAlign = 'center' ;
368- adDiv2 . setAttribute ( 'data-ad-layout' , 'in-article' ) ;
369- adDiv2 . setAttribute ( 'data-ad-format' , 'fluid' ) ;
370- adDiv2 . setAttribute ( 'data-ad-client' , 'ca-pub-5574866530496701' ) ;
371- adDiv2 . setAttribute ( 'data-ad-slot' , '9632367492' ) ;
366+ // const adDiv2 = doc.createElement('ins');
367+ // adDiv2.className = 'adsbygoogle';
368+ // adDiv2.style.display = 'block';
369+ // adDiv2.style.textAlign = 'center';
370+ // adDiv2.setAttribute('data-ad-layout', 'in-article');
371+ // adDiv2.setAttribute('data-ad-format', 'fluid');
372+ // adDiv2.setAttribute('data-ad-client', 'ca-pub-5574866530496701');
373+ // adDiv2.setAttribute('data-ad-slot', '9632367492');
374+ const adDiv2 = doc . createElement ( 'div' ) ;
375+ adDiv2 . setAttribute ( 'data-fuse' , 'incontent_2_articlepage' ) ;
372376 secondAdBlock . parentNode ?. insertBefore ( adDiv2 , secondAdBlock ) ;
373377 }
374378
@@ -378,10 +382,18 @@ const MarkdownRender: React.FC<MarkdownRenderProps> = ({
378382
379383 // Push ads after 1 second
380384 setTimeout ( ( ) => {
381- ( window . adsbygoogle = window . adsbygoogle || [ ] ) . push ( { } ) ;
382- if ( secondAdBlock ) {
383- ( window . adsbygoogle = window . adsbygoogle || [ ] ) . push ( { } ) ;
384- }
385+ // (window.adsbygoogle = window.adsbygoogle || []).push({});
386+ // if (secondAdBlock) {
387+ // (window.adsbygoogle = window.adsbygoogle || []).push({});
388+ // }
389+
390+ const fusetag = window . fusetag || ( window . fusetag = { que : [ ] } ) ;
391+
392+ fusetag . que . push ( function ( ) {
393+ const init = ( fusetag as any ) . pageInit ;
394+ if ( ! init ) return ;
395+ init ( { } ) ;
396+ } ) ;
385397 } , 1000 ) ;
386398 } else {
387399 setHtmlWithAds ( '' ) ;
0 commit comments