PageSourceSearch

https://www.tvguide.or.jp/wp/wp-content/uploads/custom-css-js/1843427.js?v=3302

js tvguide.or.jp collected 2026-10-02 05:01:35 UTC 3,903 bytes, 92 lines download raw bytes

1/******* Do not edit this file *******
2Simple Custom CSS and JS - by Silkypress.com
3Saved: Jan 30 2024 | 04:18:28 */
4function scriptLazyLoad(src) {
5    const scriptTag = document.createElement('script');
6    scriptTag.src = src;
7    scriptTag.async = true;
8
9    document.body.appendChild(scriptTag);
10}
11function adsenseLazyLoad() {
12    const scriptTag = document.createElement('script');
13    scriptTag.src = 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js';
14    scriptTag.setAttribute('data-ad-client','ca-pub-7682687857183062');
15    scriptTag.setAttribute('crossorigin','anonymous');
16    scriptTag.async = true;
17
18    document.body.appendChild(scriptTag);
19}
20function fbLoad() {
21    const scriptTag = document.createElement('script');
22    // appId はサイトごとに異なる。要設定
23    scriptTag.src = 'https://connect.facebook.net/ja_JP/sdk.js#xfbml=1&version=v4.0&appId=&autoLogAppEvents=1';
24    scriptTag.setAttribute('crossorigin','anonymous');
25    scriptTag.async = true;
26
27    document.body.appendChild(scriptTag);
28}
29function youtubeLoad() {
30    var iframes = document.querySelectorAll('.ytplayer');
31    iframes.forEach(function(iframe){
32        if(iframe.getAttribute('data-src')) {
33            iframe.setAttribute('src',iframe.getAttribute('data-src'));
34        }
35    });
36}
37function nakanohitoLoad(){
38	var _ul_comment_config = _ul_comment_config||{};
39	_ul_comment_config['id'] = 'CM-AviEh9cu';
40	_ul_comment_config['article_id'] = '';
41	_ul_comment_config['author'] = '';
42	_ul_comment_config['published_at'] = '';
43	
44	(function (c, n, s) {if (c[n] === void 0) {c['ULObject'] = n;
45	c[n] = c[n] || function () {(c[n].q = c[n].q || []).push(arguments)};
46	c[n].l = 1 * new Date();var e = document.createElement('script');e.async = 1;
47	e.src = s + "/comment.js";var t = document.getElementsByTagName('script')[0];
48	t.parentNode.insertBefore(e, t);}})
49	(window, 'ul_comment_widget', 'https://cm-widget.nakanohito.jp/cm');
50	ul_comment_widget('init', _ul_comment_config);
51}
52function taboolaLoad(){
53	window._taboola = window._taboola || [];
54	_taboola.push({article:'auto'});
55	!function (e, f, u, i) {
56	if (!document.getElementById(i)){
57	e.async = 1;
58	e.src = u;
59	e.id = i;
60	f.parentNode.insertBefore(e, f);
61	}
62	}(document.createElement('script'),
63	document.getElementsByTagName('script')[0],
64	'//cdn.taboola.com/libtrc/tvguide/loader.js',
65	'tb_loader_script');
66	if(window.performance && typeof window.performance.mark == 'function')
67	{window.performance.mark('tbl_ic');}
68}
69function doLazyLoad() {
70    //const fbEmbed = document.getElementById('fb-root');
71    const taboolaId = document.getElementById('taboola-alternating-thumbnails-a');
72    const nakanohitoId = document.getElementById('ulCommentWidget');
73    const youtubeClass = document.getElementsByClassName('ytplayer');
74    const twitterClass = document.getElementsByClassName('twitter-tweet');
75    const twitterTimelineClass = document.getElementsByClassName('twitter-timeline');
76    const instaClass = document.getElementsByClassName('instagram-media');
77    try {
78        adsenseLazyLoad();
79        scriptLazyLoad('https://securepubads.g.doubleclick.net/tag/js/gpt.js');
80        scriptLazyLoad('https://flux-cdn.com/client/i-mobile/tvguide.min.js');
81        if (youtubeClass.length !== 0) youtubeLoad();
82        if (twitterClass.length !== 0) scriptLazyLoad('https://platform.twitter.com/widgets.js');
83        if (twitterTimelineClass.length !== 0) scriptLazyLoad('https://platform.twitter.com/widgets.js');
84        if (instaClass.length !== 0) scriptLazyLoad('//www.instagram.com/embed.js');
85        if (taboolaId) taboolaLoad();
86        if (nakanohitoId) nakanohitoLoad();
87        //if (fbEmbed.length !== 0) fbLoad();
88    } catch (error) {
89    	console.log(error);
90    }
91}
92window.addEventListener('scroll', doLazyLoad, { once: true });

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.