PageSourceSearch

https://www.sedrive-life.com/settings/header.js?v=20230927

js sedrive-life.com collected 2026-09-28 01:56:18 UTC 9,649 bytes, 207 lines download raw bytes

1(function () {
2
3    var hd = document.createElement('div');
4    var date = new Date();
5    var month = date.getMonth()+1;
6    var day = date.getDate();
7    var str = '';
8    str += '<div id="header2" style="z-index:10001"><table cellspacing="0" class="blog-common-header" id="header">';
9    str += '<tr>';
10    str += '<th>';
11    str += '<span class="common-header-logo">';
12    str += '<a href="https://blog.livedoor.com/?_h_jp_pc=logo" title="livedoor Blog(ライブドア ブログ)TOP">';
13    str += '<img height="17" width="94" alt="livedoor Blog(ライブドア ブログ)" src="https://parts.blog.livedoor.jp/img/common/logo_border.svg">';
14    str += '</a>';
15    str += '</span>';
16    str += '</th>';
17    str += '<td class="catprbox"><span class="common-header-category">';
18    if (typeof(ld_blog_vars) == 'object' && ld_blog_vars.blog_category) {
19        if (ld_blog_vars.blog_category.is_adult) {
20            str += ld_blog_vars.blog_category.name.replace(/^.+ > /,'');
21        } else {
22            str += '<a href="' + ld_blog_vars.blog_category.permalink + '?_h_jp_pc=category">' + ld_blog_vars.blog_category.name.replace(/^.+ > /,'') + '</a>';
23        }
24    }
25    str += '</span></td>';
26    str += '<td class="newstickerbox"><span class="common-header-pr"></span></td>';
27    str += '<td class="pickuptheme">';
28    str += '<td class="startblogbox startblogboxEntry">';
29    str += '<a href="http://livedoor.blogcms.jp/member/">\u30d6\u30ed\u30b0\u3092\u66f8\u304f</a>';
30    str += '</td>';
31    str += '</td>';
32    str += '<td class="startblogbox">';
33    str += '<a href="http://blog.livedoor.com/news/?_h_jp_pc=news">'+ month +'\u6708' + day +"\u65E5"+'\u8A71\u984C\u306E\u8A18\u4E8B</a>';
34    str += '</td>';
35    str += '</tr>';
36    str += '</table></div>';
37    str += '<style type="text/css">';
38    str += 'table#header{width:100%;height:20px!important;font-size:10px!important;margin:0!important;padding:0!important;}';
39    str += 'table#header,table#header input{font-family:"' + unescape('%uFF2D%uFF33%20%uFF30%u30B4%u30B7%u30C3%u30AF') + '",Arial,Helvetica,sans-serif!important;}';
40    str += 'table#header a{text-decoration:none!important;}';
41    str += 'table#header img{border:0;vertical-align:top;}';
42    str += 'table#header th{width:1%;}';
43    str += 'table#header th img{margin:0;}';
44    str += 'table#header span.common-header-logo{white-space:nowrap;margin:0 20px 0 10px;zoom:1;}';
45    str += 'table#header span.common-header-category{margin-right:20px;}';
46    str += 'table#header td.newstickerbox{width:97%;}';
47    str += 'table#header td.startblogbox{width:1%;white-space:nowrap;padding:0;}';
48    str += 'table#header td.catprbox{width:1%;white-space:nowrap;}';
49    str += 'table#header td.catprbox span{margin-right:15px;}';
50    str += 'table#header td.pickuptheme{width:1%;white-space:nowrap;}';
51    str += 'table#header form{margin:0 10px 0 0;padding:2px 0 2px 0;}';
52    str += 'table#header input{border:1px solid #d2d2d2;border-radius:2px;outline:0;vertical-align:top;}';
53    str += 'table#header input.text{width:200px;background:#fff url(https://parts.blog.livedoor.jp/img/user_blog/livedoor/search_icon.png) no-repeat 2px 1px;padding:0 5px 0 19px;margin-right:5px;font-size:13px!important;line-height:15px;height:15px;box-shadow:0 2px 4px rgba(0,0,0,0.1) inset;}';
54    str += 'table#header input:focus,table#header input.imgBtn:hover{border:1px solid #aaa;}';
55    str += '</style>';
56
57    str += '<style type="text/css">';
58    str += 'table#header{width:100%;height:20px!important;font-size:10px!important;margin:0!important;padding:0!important;}';
59    str += 'table#header,table#header input{font-family:"\uFF2D\uFF33 \uFF30\u30B4\u30B7\u30C3\u30AF",Arial,Helvetica,sans-serif!important;}';
60    str += 'table#header a{text-decoration:none!important;}';
61    str += 'table#header img{border:0;vertical-align:top;}';
62    str += 'table#header th{width:1%;}';
63    str += 'table#header th img{margin:0;}';
64    str += 'table#header span.common-header-logo{white-space:nowrap;margin:0 20px 0 10px;zoom:1;}';
65    str += 'table#header span.common-header-logo a{display: flex; align-items: center;}';
66    str += 'table#header span.common-header-category{margin-right:20px;}';
67    str += 'table#header td.newstickerbox{width:97%;}';
68    str += 'table#header td.startblogbox{white-space:nowrap;padding:0;padding:0 10px 0 21px;font-size:12px;vertical-align:middle;background:url(https://parts.blog.livedoor.jp/img/user_blog/livedoor/calendar_icon.png) no-repeat center left;zoom:1;}';
69    str += 'table#header td.startblogbox.startblogboxEntry{background:url(https://parts.blog.livedoor.jp/img/user_blog/livedoor/entry_icon.png) no-repeat center left;padding-right: 15px;}';
70    str += 'table#header td.catprbox{width:1%;white-space:nowrap;}';
71    str += 'table#header td.catprbox span{margin-right:15px;}';
72    str += 'table#header td.pickuptheme{width:1%;white-space:nowrap;}';
73    str += '</style>';
74
75    hd.innerHTML = str;
76
77    document.body.appendChild(hd);
78
79    var deleteCount = 0;
80
81    deleteOldHeader = function () {
82        if (deleteCount++ > 0) return;
83        var tables = document.getElementsByTagName("table");
84        for(var i=0;  i<tables.length; i++) {
85            if(tables[i].id == "header" && tables[i].parentNode.tagName == "BODY" && tables[i].parentNode.id != "header2") {
86                tables[i].parentNode.removeChild(tables[i]);
87                break;
88            }
89        }
90        if (typeof(ld_blog_vars) == 'object') {
91            ld_category_ad_encoding = ld_blog_vars.charset;
92        }
93    };
94
95    if (navigator.userAgent.indexOf('AppleWebKit/') > -1) {
96        var _interval = window.setInterval(function () {
97            var st = document.readyState;
98            if (st == 'complete' || st == 'loaded') {
99                window.clearInterval(_interval);
100                deleteOldHeader();
101            }
102        }, 100);
103    } else if (window.attachEvent && !window.opera) {
104        this.ie = 1;
105        document.write('<scr' + 'ipt defer src="javascript:void(0)" onreadystatechange="if (document.readyState == \'complete\') deleteOldHeader();"></scr' + 'ipt>');
106        window.attachEvent('onload', deleteOldHeader);
107    } else {
108        document.addEventListener("DOMContentLoaded", deleteOldHeader, false);
109        window.addEventListener("load", deleteOldHeader, false);
110    }
111
112    var load_library_on_load = function (script_src, onload_callback_func) {
113       var head = document.getElementsByTagName('head').item(0);
114       var scr = document.createElement('script');
115       scr.type = 'text/javascript';
116       scr.onreadystatechange = function () {
117          if (window.opera || this.readyState != 'loaded' || this.className == 'processed')
118             return;
119          this.className = 'processed';
120          onload_callback_func();
121       };
122       scr.onload = function () {
123          if (this.className == 'processed')
124             return;
125          this.className = 'processed';
126          onload_callback_func();
127       };
128       if (scr.className == 'processed'){
129          onload_callback_func();
130       }
131       scr.src = script_src;
132       head.appendChild(scr);
133       window.setTimeout(function(){
134                            if (scr.className != 'processed')
135                               onload_callback_func();
136                         }, 300);
137    };
138
139    var call_jsonp = function (api_url, cb_func) {
140        var uniq_name = 'ld_ads';
141        var scr = document.createElement('script');
142        scr.type = 'text/javascript';
143        scr.charset = this.charset;
144        scr.src = api_url + '&callback=' + uniq_name;
145        scr.id = uniq_name;
146        var obj = this;
147        window[uniq_name] = function (json) {
148            cb_func(json);
149            var u_name = uniq_name;
150            setTimeout(function() {
151                obj.head.removeChild(document.getElementById(u_name));
152                try{
153                    window[u_name] = null;
154                    delete window[u_name];
155                } catch (e) {};
156            }, 200);
157        };
158
159        obj.head = document.getElementsByTagName('head').item(0);
160        setTimeout(function(){ obj.head.appendChild(scr); }, 100);
161    };
162
163    var load_ads = function (script_list) {
164        call_jsonp(script_list.shift(), function (json) {
165            if (!json) return;
166            var element = document.createElement('div');
167            element.id = "ld_header_ads";
168            element.innerHTML = json.tag;
169            document.getElementById('header2').appendChild(element);
170        });
171        return false;
172    };
173
174    var add_listener = (
175       function() {
176          if ( window.addEventListener ) {
177             return function(target, type, func) {
178                target.addEventListener(type, func, false);
179                return true;
180             };
181          } else if( window.attachEvent ) {
182             return function(target, type, func) {
183                target.attachEvent("on"+type, func);
184                return true;
185             };
186          } else {
187             return function(target, type, func) {
188                return false;
189             };
190          }
191       })();
192
193    add_listener(document, "mouseup",
194       function(){
195          var txt = '';
196          if (window.getSelection) { txt = window.getSelection(); }
197          else if (document.getSelection) { txt = document.getSelection(); }
198          else if (document.selection) { txt = document.selection.createRange().text; }
199
200          if (txt && txt != '') {
201             var elm = document.getElementById('header2_query');
202             if (elm) { elm.value = txt; }
203          }
204       }
205    );
206
207 })();

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.