Compare commits
56 Commits
Author | SHA1 | Date | |
---|---|---|---|
a6c3d9a96d | |||
bf45e89dcb | |||
fab39732c5 | |||
59dd292477 | |||
5679b04222 | |||
d3f2c7c7c7 | |||
|
fcbf640922 | ||
247f26a000 | |||
7da7d706df | |||
5ad656ec70 | |||
d043ee9bfe | |||
dd9f518358 | |||
be57260c21 | |||
baaf65c494 | |||
d2641269b3 | |||
addeea258a | |||
fc21efb350 | |||
29a4d711a9 | |||
cf418df708 | |||
438a35a8e9 | |||
204d585a25 | |||
0a1931a47e | |||
873c7738d3 | |||
e09530f5d8 | |||
f481b164bc | |||
e57cd8861f | |||
c8aaee364f | |||
1ebd75bbad | |||
3181cd607b | |||
b613800eb1 | |||
25f89b0d98 | |||
714d360103 | |||
e75aef4598 | |||
e3c145db4c | |||
78c80baf77 | |||
20e3edfbfc | |||
116fb83af8 | |||
e72dac9792 | |||
d31a01b946 | |||
c07c35ebf4 | |||
26b431f1f8 | |||
3422e43360 | |||
14f3ec7dd5 | |||
8538e36633 | |||
26ecb8c293 | |||
22927ff4af | |||
ac5065de8c | |||
a950684b16 | |||
f9c5ad6e7c | |||
d4141828c0 | |||
cd44602efa | |||
f3d0df3f95 | |||
2a7b34cbca | |||
52d2af0a78 | |||
e09a9568af | |||
0f7289139d |
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
.idea
|
||||
new tieba.js
|
213
tieba page.js
213
tieba page.js
@ -1,7 +1,7 @@
|
||||
// ==UserScript==
|
||||
// @name tieba page
|
||||
// @namespace https://github.com/fthvgb1/tampermonkey-script
|
||||
// @version 1.007
|
||||
// @namespace http://tampermonkey.net/
|
||||
// @version 1.025
|
||||
// @author fthvgb1
|
||||
// @match https://tieba.baidu.com/*
|
||||
// @match https://tiebac.baidu.com/*
|
||||
@ -14,6 +14,7 @@
|
||||
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
function jpg(v) {
|
||||
let fimgs = v.querySelectorAll('span[class="wrap pbimgwapper"]>img.BDE_Image');
|
||||
if (fimgs.length > 0) {
|
||||
@ -25,6 +26,9 @@
|
||||
if (imgs.length > 0) {
|
||||
imgs.forEach(value => {
|
||||
let h = value.dataset.url.replace('tiebapic', 'imgsrc').replace('tiebapic', 'imgsrc');
|
||||
if (h.indexOf('http://') === 0) {
|
||||
//h = 'https://image.baidu.com/search/down?url=' + h;
|
||||
}
|
||||
let tmp = decodeURIComponent(h.split('&src=')[1]).split('/');
|
||||
tmp = tmp[tmp.length - 1];
|
||||
value.outerHTML = `<div class="pb_img_item" data-url="${h}"><img data-url="${tmp}" class="BDE_Image" src="${h}" alt=""></div>`;
|
||||
@ -64,7 +68,7 @@
|
||||
let ct = li.querySelector('.user_name + p').innerText;
|
||||
let info = JSON.parse(li.dataset.info);
|
||||
let username = uuu.outerHTML;
|
||||
username = username.replace('</a>', `</a> : <span style="color: #8fa391">${ct}</span>`).replace('javascript:;', `/home/main?un=${info.un}`);
|
||||
username = username.replace('</a>', `</a> <span style="color: #8fa391">${ct}</span>`).replace('javascript:;', `/home/main?un=${info.un}`);
|
||||
let s = li.querySelector('.content span');
|
||||
s.className = 'floor_content';
|
||||
let c = li.querySelector('.content').innerHTML;
|
||||
@ -81,6 +85,7 @@
|
||||
ll.classList.add('j_list_item_floor');
|
||||
ll.innerHTML = div;
|
||||
ll.setAttribute('data-info', li.dataset.info);
|
||||
llxx(ll)
|
||||
x.push(ll);
|
||||
});
|
||||
if (call) {
|
||||
@ -279,7 +284,7 @@
|
||||
let tmp = lis.querySelectorAll('li');
|
||||
let arr = [...tmp];
|
||||
arr.splice(tmp.length - 1, 1);
|
||||
if (page === 1 && el.length > 0) {
|
||||
if (page === 1 && el.childElementCount > 0) {
|
||||
arr.splice(0, 2);
|
||||
}
|
||||
arr.forEach(li => {
|
||||
@ -305,17 +310,26 @@
|
||||
rrrxx += `回复 <a href="${rrr.href}">${rrr.innerText}</a> : `
|
||||
re.removeChild(rrr)
|
||||
}
|
||||
rrrxx += re.innerHTML
|
||||
let ly = re.innerHTML.trim();
|
||||
|
||||
if (ly.indexOf('回复') === 0) {
|
||||
rrrxx += re.innerHTML.replace('回复', '').replace(':', '');
|
||||
} else {
|
||||
rrrxx += re.innerHTML;
|
||||
}
|
||||
|
||||
ell.innerHTML = `
|
||||
<div class="fmain j_floor_main">
|
||||
<div class="floor_footer_item">
|
||||
${he}: <span style="color: #8fa391">${time}</span>
|
||||
${he} <span style="color: #8fa391">${time}</span>
|
||||
<span class="floor_content">
|
||||
${rrrxx}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
|
||||
llxx(ell)
|
||||
el.append(ell)
|
||||
|
||||
})
|
||||
@ -326,12 +340,61 @@
|
||||
});
|
||||
}
|
||||
|
||||
function llxx(li) {
|
||||
|
||||
let info = JSON.parse(li.dataset.info);
|
||||
if (!window.lz) {
|
||||
lzl();
|
||||
}
|
||||
let rep = li.querySelector('a.user_name');
|
||||
let xx = rep.innerHTML;
|
||||
if (':' === xx[xx.length - 1]) {
|
||||
xx = xx.substring(0, xx.length - 1)
|
||||
}
|
||||
|
||||
let x = ''
|
||||
let i = ` <span style="text-align: center;
|
||||
background: #3381e3;
|
||||
color: #fff;
|
||||
padding: 0 4px;
|
||||
margin: 0 4px 0 0;
|
||||
border-radius: 2px;
|
||||
vertical-align: middle;
|
||||
font-size: 14px;
|
||||
">楼主</span>`
|
||||
let y = ':'
|
||||
if (window.lz.un === info.un || window.lz.name_show === info.un) {
|
||||
x = i
|
||||
}
|
||||
rep.outerHTML = `<a href="/home/main?un=${info.un}" class="user_name">${xx}</a>` + x + y;
|
||||
let c = li.querySelector('.floor_content a[href*="/home/main?un="]')
|
||||
if (!c) {
|
||||
c = li.querySelector('.floor_content a[href*="jump?un="]');
|
||||
if (c) {
|
||||
c.href = '/home/main?un=' + c.innerText
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (c) {
|
||||
let un = c.href.split('un=')[1];
|
||||
un = decodeURI(un);
|
||||
if (window.lz.un === un || window.lz.name_show === un) {
|
||||
c.outerHTML += i
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function t() {
|
||||
lz();
|
||||
fixHeadImages();
|
||||
|
||||
$("ul#pblist>li").forEach(function (e, iii) {
|
||||
let ff = f(e);
|
||||
if (ff === 1) {
|
||||
if (!window.lz) {
|
||||
window.lz = JSON.parse(e.dataset.info)
|
||||
}
|
||||
ab(e);
|
||||
}
|
||||
let videos = e.querySelectorAll('.video');
|
||||
@ -339,7 +402,25 @@
|
||||
videos.forEach(video => {
|
||||
let src = video.getAttribute('data-vhsrc');
|
||||
let img = video.querySelector('img');
|
||||
video.outerHTML = `<video poster="${img.src}" src="${src}" controls="controls" style="max-width:100%;min-width:100%"></video>`;
|
||||
let hr = video.getAttribute('data-vsrc');
|
||||
if (src) {
|
||||
let t = video.parentElement.querySelector('.net_search_url');
|
||||
if (t) {
|
||||
src = t.dataset.vhsrc
|
||||
}
|
||||
video.outerHTML = `<video poster="${img.src}" src="${src}" controls="controls" style="max-width:100%;min-width:100%"></video>`;
|
||||
} else if (hr && hr.indexOf('bilibili.com') > -1) {
|
||||
let av = hr.match(/av(\d+)/)[1]
|
||||
video.outerHTML = `<iframe src="//player.bilibili.com/player.html?aid=${av}&page=1" allowfullscreen="true"> </iframe>`
|
||||
|
||||
} else if (hr && hr.indexOf('youku.com') > -1) {
|
||||
let r = hr.split('id_')[1].replace('.html', '')
|
||||
video.outerHTML = `<iframe src='https://player.youku.com/embed/${r}' frameborder=0 allowfullscreen="true"></iframe>`
|
||||
|
||||
} else if (hr && hr.indexOf('tudou.com') > -1) {
|
||||
// 土豆已死,有事请烧纸 悲伤的故事 .........
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
url(e);
|
||||
@ -354,6 +435,14 @@
|
||||
kz = x[0].href.match(/tid=(\d+)&/);
|
||||
kz = kz[1];
|
||||
}
|
||||
let lzll = e.querySelector('.flist');
|
||||
if (lzll) {
|
||||
[...lzll.children].forEach(li => {
|
||||
|
||||
llxx(li)
|
||||
})
|
||||
}
|
||||
|
||||
let floor = e.getElementsByClassName('pb_floow_load');
|
||||
if (floor.length > 0) {
|
||||
let a = floor[0];
|
||||
@ -476,6 +565,7 @@
|
||||
}
|
||||
|
||||
});
|
||||
killCheckUrl();
|
||||
}
|
||||
|
||||
function lz() {
|
||||
@ -605,6 +695,10 @@
|
||||
url = url.replace('mo/q/m', 'f').replace(/word=(.*?)&/, 'kw=' + word + '&');
|
||||
|
||||
}
|
||||
if (url.indexOf('lp=sfrs_good_area_link') > -1) {
|
||||
url += 'tab=good&'
|
||||
}
|
||||
//debugger
|
||||
GM_xmlhttpRequest({
|
||||
method: 'GET',
|
||||
url: url,
|
||||
@ -619,7 +713,6 @@
|
||||
let u = document.createElement('div');
|
||||
u.innerHTML = ul;
|
||||
let lis = u.querySelectorAll('li.j_thread_list');
|
||||
|
||||
if (lis.length > 0) {
|
||||
lis.forEach(li => {
|
||||
let time = li.querySelector('.is_show_create_time');
|
||||
@ -631,10 +724,11 @@
|
||||
if (tid !== null || tid !== 'null') {
|
||||
let tar = document.querySelector('li[data-tid="' + tid + '"] .ti_author_icons');
|
||||
let ttt = document.querySelector('li[data-tid="' + tid + '"] .ti_time');
|
||||
|
||||
if (!tar) {
|
||||
return;
|
||||
}
|
||||
let ki = li.querySelector('span[class="tb_icon_author_rely j_replyer"]');
|
||||
let ki = li.querySelector('.tb_icon_author_rely');
|
||||
if (!ki) {
|
||||
return;
|
||||
}
|
||||
@ -672,11 +766,11 @@
|
||||
|
||||
li.addEventListener('touchend', evt => {
|
||||
if ((endX - startX) > 100 && Math.abs(endY - startY) <= 100) {
|
||||
let url = li.querySelector('li.tl_shadow>a.ti_item').dataset.url;
|
||||
let url = li.querySelector('li.tl_shadow>a.ti_item').href;
|
||||
window.open(url, '_blank');
|
||||
}
|
||||
if ((startX - endX) > 100 && Math.abs(endY - startY) <= 100) {
|
||||
location.href = li.querySelector('li.tl_shadow>a.ti_item').dataset.url;
|
||||
GM.openInTab(li.querySelector('li.tl_shadow>a.ti_item').href, true);
|
||||
}
|
||||
})
|
||||
})
|
||||
@ -708,7 +802,6 @@
|
||||
slio(document.querySelectorAll('#frslistcontent>li'));
|
||||
}
|
||||
});
|
||||
|
||||
observer.observe(list, {
|
||||
childList: true,
|
||||
});
|
||||
@ -717,12 +810,12 @@
|
||||
let lis = document.querySelectorAll('li.tl_shadow>a.ti_item');
|
||||
if (lis.length > 0) {
|
||||
lis.forEach(value => {
|
||||
let url = value.href;
|
||||
value.href = 'javascript:void(0);';
|
||||
value.dataset.url = url;
|
||||
value.onclick = (v) => {
|
||||
GM.openInTab(url, true);
|
||||
let url = `mo/q/m?kz=${value.dataset.tid}`;
|
||||
let w = value.querySelector('.ti_icon_huati');
|
||||
if (w) {
|
||||
url += '&post_type=normal&'
|
||||
}
|
||||
value.href = url;
|
||||
})
|
||||
}
|
||||
}
|
||||
@ -779,7 +872,46 @@
|
||||
|
||||
}
|
||||
|
||||
function lzl() {
|
||||
let kz = document.querySelector('html').innerHTML.match(/kz: "(\d+)"/)[1];
|
||||
let url = `/mo/q?kz=${kz}`;
|
||||
$.ajax({
|
||||
url: url,
|
||||
async: false,
|
||||
type: 'get',
|
||||
success: (res) => {
|
||||
let html = (new DOMParser()).parseFromString(res, 'text/html');
|
||||
let lz = html.querySelector('#pblist li')
|
||||
if (!lz) {
|
||||
debugger
|
||||
}
|
||||
window.lz = JSON.parse(lz.dataset.info)
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
function killCheckUrl() {
|
||||
let urls = document.querySelectorAll('a[href*="/mo/q/checkurl"]');
|
||||
[...urls].forEach(a => {
|
||||
const url = decodeURIComponent(a.href).split('url=')[1]
|
||||
a.href = url;
|
||||
a.target = '_blank';
|
||||
})
|
||||
}
|
||||
|
||||
function detail() {
|
||||
let title = document.querySelector('#i_head .post_title_text');
|
||||
if (title !== null) {
|
||||
const ur = title.href.replace('f?kw=', 'mo/q/m?word=')
|
||||
const u = new URL(ur);
|
||||
u.searchParams.set('tn6', 'bdISP');
|
||||
u.searchParams.set('tn4', 'bdKSW');
|
||||
u.searchParams.set('tn7', 'bdPSB');
|
||||
u.searchParams.set('sub4', '进吧');
|
||||
u.searchParams.set('pn', '0');
|
||||
title.href = u.toString()
|
||||
}
|
||||
god();
|
||||
p();
|
||||
reply();
|
||||
@ -797,7 +929,10 @@
|
||||
]);
|
||||
|
||||
|
||||
document.querySelector('.father-cut-pager-class-no-page').classList.remove('father-cut-pager-class-no-page');
|
||||
let lxf = document.querySelector('.father-cut-pager-class-no-page')
|
||||
if(lxf){
|
||||
lxf.classList.remove('father-cut-pager-class-no-page');
|
||||
}
|
||||
|
||||
let list = document.querySelector('ul#pblist');
|
||||
let MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver;
|
||||
@ -812,6 +947,23 @@
|
||||
|
||||
}
|
||||
|
||||
function fixHeadImages() {
|
||||
const e = document.querySelectorAll("#pblist li .list_item_top_avatar img");
|
||||
e.forEach(img => {
|
||||
let src = img.src;
|
||||
//http://gss3.bdstatic.com/84oSdTum2Q5BphGlnYG/timg?mowebapp&quality=80&size=b72_72&cut_x=0&cut_w=0&cut_y=0&cut_h=0&sec=1369815402&di=d90486ddc230fa80b609654f1ef9491b&wh_rate=null&src=http%3A%2F%2Ftb.himg.baidu.com%2Fsys%2Fportrait%2Fitem%2Ftb.1.a55b4bff.yLhcG9k0TG9vPBPgt_D19A.jpg
|
||||
if (src.indexOf('http://') === 0) {
|
||||
const u = new URL(src)
|
||||
if (u.searchParams.has('src')) {
|
||||
src = decodeURIComponent(u.searchParams.get('src'));
|
||||
src = src.replace(/.*\.baidu.com\//, '')
|
||||
src = 'https://gss0.bdstatic.com/6LZ1dD3d1sgCo2Kml5_Y_D3/' + src;
|
||||
}
|
||||
img.src = src;
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
let book, svgss;
|
||||
|
||||
function clickControl() {
|
||||
@ -952,24 +1104,13 @@
|
||||
|
||||
function reply() {
|
||||
let h = document.querySelector('html').innerHTML;
|
||||
let co = /spb\/widget\/normal_post_list', function \(threadList\) \{ new threadList\((.*?)\}\);/.exec(h);
|
||||
let co = /spb\/widget\/normal_post_list', function \(threadList\) \{ new threadList\((.*?)}\);/.exec(h);
|
||||
let con = co[1] + '}';
|
||||
let conf = (new Function("return " + con))();
|
||||
|
||||
window.conxx = conf;
|
||||
window.xxLL = null;
|
||||
|
||||
let pa = document.querySelector('#list_pager');
|
||||
pa.parentNode.removeChild(pa);
|
||||
F.use('spb/widget/normal_post_list', function (threadList) {
|
||||
if (!window.xxLL) {
|
||||
window.xxLL = new threadList(conf)
|
||||
}
|
||||
window.totalPage = xxLL.pager._conf.totalPage;
|
||||
if (location.href.indexOf('r=1') > -1) {
|
||||
xxLL.pager._conf.url += '&r=1';
|
||||
}
|
||||
});
|
||||
|
||||
document.querySelectorAll('.j_nreply_btn').forEach(value => {
|
||||
value.addEventListener('click', evt => {
|
||||
@ -1018,6 +1159,7 @@
|
||||
}
|
||||
|
||||
let flag = 0;
|
||||
|
||||
function drop(e) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
@ -1090,11 +1232,17 @@
|
||||
document.querySelector('body').appendChild(d);
|
||||
}
|
||||
|
||||
|
||||
try {
|
||||
|
||||
if (!check()) {
|
||||
return;
|
||||
}
|
||||
let x = location.href.match(/\/p\/(\d+)(\?|\#)?/);
|
||||
if (x) {
|
||||
location.href = `/mo/q/m?kz=${x[1]}`;
|
||||
return;
|
||||
}
|
||||
fnav();
|
||||
clickControl();
|
||||
let css = document.createElement('style');
|
||||
@ -1111,8 +1259,13 @@
|
||||
.floor_content a,.floor_content a:visited { color:#498bef; }
|
||||
.fr_list .list_item_floor:nth-child(odd){ background-color:rgba(180, 228, 207, 0.2); }
|
||||
.fr_list .list_item_floor:nth-child(even){ background-color:rgba(168, 191, 157, 0.16); }
|
||||
.nav-bar-wrapper { display:none; }
|
||||
.tb-threadlist__item.tb-banner { display:none; }
|
||||
.tb-threadlist__item.tb-hotthread-wrapper{ display:none; }
|
||||
|
||||
`;
|
||||
document.querySelector('head').append(css);
|
||||
//debugger
|
||||
|
||||
delElement(['.ui_image_header_bottom']);
|
||||
|
||||
|
48
v2exMobile.user.js
Normal file
48
v2exMobile.user.js
Normal file
@ -0,0 +1,48 @@
|
||||
// ==UserScript==
|
||||
// @name v2ex h5 辅助脚本
|
||||
// @namespace http://tampermonkey.net/
|
||||
// @version 0.5
|
||||
// @homepage https://code.xloyy.com/xing/tampermonkey-script/
|
||||
// @description try to take over the world!
|
||||
// @author xing
|
||||
// @match https://v2ex.com/*
|
||||
// @icon https://v2ex.com/static/favicon.ico
|
||||
// @grant GM_addStyle
|
||||
// @license MIT
|
||||
// ==/UserScript==
|
||||
|
||||
|
||||
(function () {
|
||||
'use strict';
|
||||
document.body.style.zoom = 1.25;//缩放1.25倍
|
||||
|
||||
//左滑后台新标签打开网页 右滑新标签打开网页
|
||||
slioV2ex(document.querySelectorAll('#Wrapper .content .cell.item'), '.item_title a')
|
||||
|
||||
function slioV2ex(els, aquery) {
|
||||
let startX = 0;
|
||||
let endX = 0;
|
||||
let startY = 0;
|
||||
let endY = 0;
|
||||
els.forEach(li => {
|
||||
li.addEventListener('touchstart', e => {
|
||||
startX = e.changedTouches[0].screenX;
|
||||
startY = e.changedTouches[0].screenY;
|
||||
});
|
||||
li.addEventListener('touchmove', e => {
|
||||
endX = e.changedTouches[0].screenX;
|
||||
endY = e.changedTouches[0].screenY;
|
||||
});
|
||||
|
||||
li.addEventListener('touchend', evt => {
|
||||
if ((endX - startX) > 100 && Math.abs(endY - startY) <= 100) {
|
||||
let url = li.querySelector(aquery).href;
|
||||
window.open(url, '_blank');
|
||||
}
|
||||
if ((startX - endX) > 100 && Math.abs(endY - startY) <= 100) {
|
||||
GM.openInTab(li.querySelector(aquery).href, true);
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
})();
|
66
手机贴吧辅助脚本.user.js
Normal file
66
手机贴吧辅助脚本.user.js
Normal file
@ -0,0 +1,66 @@
|
||||
// ==UserScript==
|
||||
// @name 手机贴吧辅助脚本
|
||||
// @namespace http://tampermonkey.net/
|
||||
// @version 0.5
|
||||
// @homepage https://code.xloyy.com/xing/tampermonkey-script/
|
||||
// @description try to take over the world!
|
||||
// @author xing
|
||||
// @match https://tieba.baidu.com/*
|
||||
// @match https://jump2.bdimg.com/*
|
||||
// @match https://tiebac.baidu.com/*
|
||||
// @match https://*/f?*kw=*
|
||||
// @icon https://tieba.baidu.com/favicon.ico
|
||||
// @grant GM_addStyle
|
||||
// @license MIT
|
||||
// ==/UserScript==
|
||||
|
||||
(function() {
|
||||
'use strict';
|
||||
const style = `
|
||||
.lzl-post .lzl-post-item { padding-top: 8px;
|
||||
letter-spacing: 1px;
|
||||
border-radius: 8px;
|
||||
margin-bottom: 2px
|
||||
border: 1px solid rgba(0,0,0,.1);
|
||||
box-shadow: 5px 5px 5px rgba(0,0,0,0.2);}
|
||||
.lzl-post .lzl-post-item:nth-child(odd){ background-color:rgba(180, 228, 207, 0.2); }
|
||||
.lzl-post .lzl-post-item:nth-child(even){ background-color:rgba(168, 191, 157, 0.16); }
|
||||
`;
|
||||
GM_addStyle(style);
|
||||
let check = 0;
|
||||
if (location.search.indexOf('kw=') > -1 && location.pathname === '/f' && check === 0) {
|
||||
let ob = new window.MutationObserver(mutations => {
|
||||
mutations.forEach(item => {
|
||||
if (item.type === 'childList' && item.addedNodes.length > 0) {
|
||||
const logo = document.querySelector('.logo-wrapper');
|
||||
if (logo) {
|
||||
const p = logo.parentNode;
|
||||
const nav = document.createElement('div');
|
||||
p.insertBefore(nav, logo)
|
||||
nav.outerHTML = `<div data-v-4e54bd24="" class="logo-wrapper"><svg data-v-4e54bd24="" class="nav-bar-icon-top"><use xlink:href="#icon_logo_top"></use></svg></div>`;
|
||||
p.removeChild(logo);
|
||||
check = 1;
|
||||
document.addEventListener('click',ev => {
|
||||
if(ev.path[2].classList.contains('logo-wrapper')){
|
||||
const e=document.createElement('input');
|
||||
const n=ev.path[2]
|
||||
n.innerHTML='';
|
||||
n.append(e)
|
||||
e.type='text';
|
||||
e.addEventListener('blur',ev1 => {
|
||||
if (e.value) {
|
||||
location.href = '/f?kw=' + e.value;
|
||||
}
|
||||
})
|
||||
ev.stopPropagation();
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
});
|
||||
ob.observe(document.body, {
|
||||
childList: true
|
||||
})
|
||||
}
|
||||
})();
|
Loading…
Reference in New Issue
Block a user