Greasy Fork is available in English.

Bing beautification store

美化必应搜索页面,从此,自动更新,向更新弹窗说NOoooooooo!

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.greasyfork.org/scripts/453994/1112466/Bing%20beautification%20store.js

  1. {
  2. 'use strict';
  3. // 如果想回滚版本,提高访问速度,请删除括号下面包裹的代码:【
  4.  
  5. if (window.location.href.indexOf("cn.bing.com/search") > -1) {
  6. //config
  7.  
  8. var picArr = new Array
  9. //var infoArr= new Array
  10. // var notice = new Array
  11. //自行添加图片url,调用方法,输入数字下标即可 如输入:2
  12. /*
  13. $.ajax({
  14. url:"https://greasyfork.org/scripts/454062-bing-beautification-infoarr/code/Bing%20beautification%20infoArr.js",
  15. dataType:"text",
  16. type:"GET",
  17. async:"true",
  18. traditional:true,//防止深度序列化
  19. cache:false,
  20. async:false,
  21. success:function(data){
  22. infoArr=data
  23. infoArr=infoArr.replace(/\s/g,"");
  24. infoArr=infoArr.replace(/\[/g,"");
  25. infoArr=infoArr.replace(/\]/g,"");
  26. infoArr=infoArr.split(";")
  27. picArr=infoArr[0]
  28. picArr=picArr.split(",")
  29. notice=infoArr[2]
  30. if(infoArr[1]==="true"){
  31. console.log(`\u516c\u544a:${notice}`)
  32. if(infoArr[3]){
  33. alert(`${infoArr[3]}`)
  34. }
  35. }
  36.  
  37. console.log("\u5df2\u7ecf\u6536\u5f55\u7684\u56fe\u7247\u6570\u7ec4:")
  38. console.log(picArr)
  39. },
  40. error:function(){alert("Abort!")}
  41. });
  42. */
  43. //调用方法,输入数字下标即可 如输入:2
  44. picArr = [
  45. //bing每日壁纸 索引号0
  46.  
  47. "https://bing.biturl.top/?resolution=1920&format=image&index=0&mkt=zh-CN",//动态每日壁纸
  48. "https://bing.com/th?id=OHR.NationalDay2022_ZH-CN3861603311_1920x1080.jpg",
  49. "https://bing.com/th?id=OHR.BridgeofSighs_ZH-CN5414607871_1920x1080.jpg",
  50. //Wallpaper Abyss壁纸 索引号3
  51. "https://images4.alphacoders.com/171/171916.jpg",
  52. "https://images5.alphacoders.com/613/613927.jpg",
  53. "https://images2.alphacoders.com/606/606275.jpg",
  54. "https://images2.alphacoders.com/742/742320.png",
  55. //添加你自己的壁纸...... 索引号7
  56. "https://dogefs.s3.ladydaily.com/~/source/wallhaven/full/8o/wallhaven-8o2dpj.png?w=2560&fmt=webp",
  57. "https://bing.biturl.top/?resolution=1920&format=image&index=0&mkt=zh-CN"
  58. ]
  59.  
  60.  
  61. //全局图片
  62. function fullPicSet() {
  63. document.querySelector("html").style.background = `url(${$.cookie('picUrl')}) 0% 0% / 100% no-repeat fixed`
  64. }
  65.  
  66.  
  67. function reset_all() {
  68. $.cookie('blurDeg', "blur(13px)", { expires: 31 })
  69. $.cookie('aDeg1', "53", { expires: 31 })
  70. $.cookie('aDeg2', "7c", { expires: 31 })
  71. $.cookie('picUrl', "https://bing.com/th?id=OHR.NationalDay2022_ZH-CN3861603311_1920x1080.jpg", { expires: 31 })
  72.  
  73. }
  74.  
  75. if ($.cookie('blurDeg') === undefined || $.cookie('picUrl') === undefined || $.cookie('aDeg1') === undefined || $.cookie('aDeg1') === undefined) {
  76. reset_all()
  77. alert("欢迎,数值设置格式请看控制台!")
  78. }
  79. if ($.cookie('blurDeg') === "" || $.cookie('picUrl') === "" || $.cookie('aDeg1') === "" || $.cookie('aDeg2') === "") {
  80. reset_all()
  81. alert("欢迎,数值设置格式请看控制台!")
  82. }
  83. console.log("模糊度的范围从0到1000(纯数字),例如:15")
  84. console.log("透明度的范围从00到fc(16进制),例如:ac")
  85. console.log("图片url网址链接,你可以自己找,或者挂到GitHub上生成链接")
  86. console.log("低配机子请设置模糊度为0")
  87.  
  88.  
  89.  
  90.  
  91. var searchBox = document.getElementsByClassName("b_searchbox")[0];
  92. var searchboxForm = document.getElementsByClassName("b_searchboxForm")[0];
  93. var temp = document.getElementById('b_content');
  94. var temp2 = document.getElementById('b_results');
  95. var temp3 = document.getElementById('b_header');
  96. var b_rrsr = document.getElementsByClassName('b_rrsr');
  97. var tab1 = document.getElementsByClassName("tab-menu");
  98. var b_algo = document.getElementsByClassName('b_algo');
  99. var trans1 = document.getElementsByClassName('b_title');
  100. var b_context = document.getElementById('b_context');
  101. var slide = document.getElementsByClassName("slide")
  102. var length1 = b_context.children.length
  103. var nws_cwrp = document.getElementsByClassName("nws_cwrp")
  104. var liChildren = document.getElementById('b-scopeListItem-video')
  105. var lifontSize = window.getComputedStyle(liChildren).fontSize //获取fontSize 的方法,常规方法获得的是0因为由字体定义而来
  106. var b_ans = document.getElementsByClassName('b_ans');
  107. var b_bfb_mainline = document.getElementsByClassName('b_bfb_mainline b_ans')[0]
  108. var sb_form_q = document.getElementById('sb_form_q')
  109. var b_header = document.getElementById('b_header')
  110. var b_scopebar = document.getElementsByClassName("b_scopebar");
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119. // header背景
  120. b_context.children[length1 - 1].style.display = "none";
  121. function header_bg() {
  122. b_header.children[0].style.background = "linear-gradient(to right, rgb(255, 221, 238), skyblue) 0% 0% / 100% fixed"
  123. b_header.children[0].children[0].style.background = "linear-gradient(to right, rgb(255, 221, 238), skyblue) 0% 0% / 100% fixed"
  124. b_header.children[0].children[1].style.background = "linear-gradient(to right, rgb(255, 221, 238), skyblue) 0% 0% / 100% fixed"
  125. }
  126.  
  127. function creatBox() {
  128. var div = document.createElement("div");
  129.  
  130. //为div创建属性class = "test"
  131. var divattr = document.createAttribute("id");
  132. divattr.value = "settings";
  133.  
  134. //把属性class = "test"添加到div
  135. div.setAttributeNode(divattr);
  136.  
  137. //创建一个值为test的按钮
  138. var input = document.createElement("input");
  139. var inputattr = document.createAttribute("type");
  140. inputattr.value = "button";
  141. input.setAttributeNode(inputattr);
  142. var inputattr1 = document.createAttribute("value");
  143. inputattr1.value = "test";
  144. input.setAttributeNode(inputattr1);
  145.  
  146. //创建一hello,world个文本节点
  147. var text = document.createTextNode("settings");
  148.  
  149. //将按钮和文本节点追加到div
  150. div.appendChild(input);
  151. div.appendChild(text);
  152.  
  153. //为div添加样式
  154. var style = document.createAttribute("style");
  155. div.setAttributeNode(style);
  156. div.style.backgroundColor = "rgb(255 255 255 / 70%)";
  157. div.style.borderWidth = "20px";
  158. div.style.width = "500px";
  159. div.style.height = "580px";
  160.  
  161. //把div追加到body
  162.  
  163. b_scopebar[0].appendChild(div)
  164. document.getElementById("settings").style = `
  165. backdrop-filter: blur(30px);
  166. background-color: rgba(255, 255, 255, 0);
  167. border-color: rgb(0, 0, 0);
  168. width: 22%;height: 248%;
  169. position: absolute;
  170. top: 112%;
  171. left: 43%;z-index: 9;
  172. border-radius: 10px;
  173. animation-name: fadeIn;
  174. -webkit-animation-duration: 0.6s;
  175. -webkit-animation-timing-function: cubic-bezier(0, 1.15, 1, 1);
  176. -webkit-animation-delay: 0s;
  177. -webkit-animation-iteration-count: 1;
  178. `
  179. /* */
  180.  
  181. var css_innerBox = `
  182. position: absolute;
  183. top: 0%;
  184. left: 0%;
  185. bottom: 0%;
  186. right: 0%;
  187. background-color: rgb(144 144 144 / 48%);
  188. z-index: 9;
  189. height: 100%;
  190. width: 100%;
  191. margin: auto;
  192. border-radius: 10px;`
  193. var css_input = `
  194. width: 80%;
  195. height: 27px;
  196. border-radius: 10px;`
  197. var css_set = `margin: 10px 18px;`
  198.  
  199. var css_button = `background:transparent;border-radius: 4px;float:right;`
  200. var css_move_it = ` translate:50%;float: right;`
  201. var css_top_move = `width:100%;height:100%`
  202.  
  203. document.getElementById("settings").innerHTML = `<div id="settings1">
  204. <div id="innerBox" style="${css_innerBox}">
  205. <div class="set" id="first_div" style="${css_set}"><span id="top_move" style="${css_top_move}">模糊度(1~100)图片模式</span> <span id="move_it" style="${css_move_it}">X</span><br><input style="${css_input}" class="input_set" type="text"></input></div>
  206. <div class="set" style="${css_set}">透明度1(00~ff)渐变色模式<br><input style="${css_input}" class="input_set" class="input_set" type="text"></input></div>
  207. <div class="set" style="${css_set}">透明度2(00~ff)图片模式<br><input style="${css_input}" class="input_set" class="input_set" type="text"></input></div>
  208. <div class="set" style="${css_set}">图片URL<br><input style="${css_input}" class="input_set" class="input_set" type="text"></input></div> &nbsp
  209. <button id="confirm_button" style="${css_button}">确认</button>
  210. </div>
  211. </div>
  212. `
  213. //插入渲染完成
  214. var settings = document.getElementById("settings")
  215. var confirm_button = document.getElementById("confirm_button")
  216. var input_set = document.getElementsByClassName('input_set')
  217.  
  218. settings.style.display = "none"
  219.  
  220. confirm_button.addEventListener('click', () => {
  221. if (input_set[3].value === "" || input_set[2].value === "" || input_set[1].value === "" || input_set[0].value === "") {
  222. reset_all();
  223. alert("不能为空!数值已重置为默认值");
  224. }
  225. else {
  226.  
  227. $.cookie('blurDeg', `blur(${input_set[0].value}px)`, { expires: 31 })
  228. $.cookie('aDeg1', `${input_set[1].value}`, { expires: 31 })
  229. $.cookie('aDeg2', `${input_set[2].value}`, { expires: 31 })
  230. // $.cookie('picUrl',`${input_set[3].value}`,{ expires: 31 })
  231.  
  232. if (/http/g.test(input_set[3].value)) {
  233. $.cookie('picUrl', input_set[3].value, { expires: 31 })
  234. }
  235. else if (/^\d+$/g.test(input_set[3].value)) {
  236. $.cookie('picUrl', picArr[`${input_set[3].value}`], { expires: 31 })
  237.  
  238. }
  239.  
  240. else {
  241. $.cookie('picUrl', input_set[3].value, { expires: 31 })
  242. }
  243. }
  244. //
  245.  
  246. location.reload();
  247.  
  248.  
  249.  
  250. })
  251.  
  252. document.getElementById("move_it").addEventListener('click', () => {
  253. document.getElementById("settings").style.display = "none"
  254. })
  255.  
  256. }
  257.  
  258. creatBox()
  259.  
  260. //移动函数
  261. function move(demo) {
  262. //var demo = document.getElementById(`${settings}`)
  263. var canitmove = false
  264. var x = 0,
  265. y = 0
  266. demo.onmousedown = function (e) {
  267. event.preventDefault()
  268. x = e.pageX - demo.offsetLeft
  269. y = e.pageY - demo.offsetTop
  270. canitmove = true
  271. console.log(e.pageX)
  272. }
  273. window.onmouseup = function () {
  274. canitmove = false
  275. }
  276. window.onmousemove = function (e) {
  277.  
  278. if (canitmove) {
  279. demo.style.left = e.pageX - x + 'px'
  280. demo.style.top = e.pageY - y + 'px'
  281. }
  282. }
  283. }
  284. // document.getElementById('css_top_move').addEventListener('mouseon')
  285.  
  286.  
  287. // 快捷输入与置顶与按键监听
  288. document.onkeydown = function (e) {
  289. var keyNum = window.event ? e.keyCode : e.which;
  290. // alert(keyNum)
  291. // console.log(e)
  292. if (191 == keyNum && e.ctrlKey) {
  293. e.preventDefault();
  294. if (document.getElementById('mfa_srch')) {
  295. document.getElementById('mfa_srch').click()
  296. }
  297. }
  298. if (13 == keyNum) {
  299. if (document.getElementById("settings").style.display == "block") {
  300. document.getElementById("confirm_button").click()
  301. }
  302. }
  303.  
  304. }
  305.  
  306.  
  307.  
  308.  
  309. //结果框背景色函数
  310. function changeBack_All(deg, deg2) {
  311. changeBack_1(deg, deg2);
  312. changeBack_2(deg, deg2);
  313. }
  314.  
  315. function changeBack_1(deg, deg2) {
  316.  
  317. for (let k = 0; k <= b_ans.length - 1; k++) {
  318. b_ans[k].style.borderRadius = "10px";
  319. b_ans[k].style.background = `#ffffff${deg}`
  320. b_ans[k].style.backdropFilter = `${deg2}`
  321. }
  322.  
  323. }
  324.  
  325.  
  326. function changeBack_2(deg, deg2) {
  327. for (let i = 0; i <= b_algo.length - 1; i++) {
  328. b_algo[i].style.borderRadius = "10px";
  329. b_algo[i].style.background = `#ffffff${deg}`
  330. b_algo[i].style.caretColor = "transparent";
  331. b_algo[i].style.backdropFilter = `${deg2}`
  332. // b_algo[i].addEventListener("mouseover", b_algo[i].style.boxShadow="0 6px 20px 0 rgb(0 0 0 /30%)")
  333. }
  334. }
  335. function searchStyle() {
  336.  
  337. if (b_bfb_mainline) {
  338. b_bfb_mainline.style.borderRadius = "10px"
  339. }
  340. if (b_rrsr[0]) {
  341. for (let k = 0; k <= b_rrsr.length - 1; k++) {
  342. // b_rrsr[k].style.borderRadius="10px";
  343. b_rrsr[0].style.background = "transparent";
  344. }
  345. }
  346.  
  347. if (tab1.length > 0) {
  348. for (let i = 0; i <= tab1[0].children[0].children.length - 1; i++) {
  349. tab1[0].children[0].children[i].style.backgroundColor = ("transparent");
  350. }
  351. }
  352. for (let i = 0; i <= trans1.length - 1; i++) {
  353. trans1[i].style.translate = "23px"; //这一句有报错,但是我看不懂
  354. }
  355.  
  356.  
  357. // searchBox.style.setProperty('width', '480px', 'important');
  358. searchBox.style.transition = "all 0.5s"
  359.  
  360. }
  361.  
  362. function move1() {
  363. searchBox.onmousedown = function () {
  364. searchBox.style.width = "77vh";
  365. }
  366. }
  367. temp.onmousedown = function () {
  368. searchBox.style.width = "522px";
  369. }
  370.  
  371.  
  372. // $.cookie('flag', '0')
  373. var button_1 = document.createElement("button"); //创建一个按钮
  374. button_1.textContent = "透明"; //按钮内容
  375. button_1.style.width = "60px"; //按钮宽度
  376. button_1.style.height = "30px"; //按钮高度
  377. button_1.style.align = "center"; //居中
  378. button_1.style.color = "#444444"; //按钮文字颜色
  379. button_1.style.border = "none"; //按钮文字颜色
  380. button_1.style.background = "transparent"; //按钮底色
  381. button_1.style.fontSize = lifontSize
  382. button_1.style.padding = "9.3px 0"
  383. button_1.addEventListener("click", clickButton_1)
  384.  
  385. function clickButton_1() {
  386. searchboxForm.style.background = `#ffffff${$.cookie('aDeg2')}`
  387. $.cookie('flag', '1')
  388.  
  389. }
  390. if ($.cookie('flag') == 1) {
  391. searchboxForm.style.background = `#ffffff${$.cookie('aDeg2')}`
  392. }
  393.  
  394. var button_2 = document.createElement("button"); //创建一个按钮
  395. button_2.textContent = "炫彩"; //按钮内容
  396. button_2.style.width = "60px"; //按钮宽度
  397. button_2.style.height = "30px"; //按钮高度
  398. button_2.style.align = "center"; //居中
  399. button_2.style.color = "#444444"; //按钮文字颜色
  400. button_2.style.border = "none"; //按钮文字颜色
  401. button_2.style.background = "transparent"; //按钮底色
  402. button_2.style.fontSize = lifontSize
  403. button_2.style.padding = "9.3px 0"
  404. button_2.addEventListener("click", clickButton_2)
  405. function clickButton_2() {
  406. searchboxForm.style.backgroundImage = "linear-gradient(to right, rgb(255, 221, 238), skyblue)";
  407. $.cookie('flag', '1')
  408. }
  409. if ($.cookie('flag') == 2) {
  410. searchboxForm.style.backgroundImage = "linear-gradient(to right, rgb(255, 221, 238), skyblue)";
  411. }
  412.  
  413. var button_3 = document.createElement("button"); //创建一个按钮
  414. button_3.textContent = "换背景"; //按钮内容
  415. button_3.style.width = "60px"; //按钮宽度
  416. button_3.style.height = "30px"; //按钮高度
  417. button_3.style.align = "center"; //居中
  418. button_3.style.color = "#444444"; //按钮文字颜色
  419. button_3.style.border = "none"; //按钮文字颜色
  420. button_3.style.background = "transparent"; //按钮底色
  421. button_3.style.fontSize = lifontSize
  422. button_3.style.padding = "9.3px 0"
  423. button_3.addEventListener("click", clickButton_3)
  424. button_3.addEventListener("dblclick", dblclickButton_3)
  425.  
  426. if ($.cookie('bgFlag') == undefined) {
  427. $.cookie('bgFlag', '3', { expires: 31 })//如果空则默认渐变色
  428. }
  429. function clickButton_3() {//图片背景
  430. $.cookie('bgFlag', '4', { expires: 31 })
  431. temp.style.background = `url(${$.cookie('picUrl')}) `
  432. temp.style.backgroundAttachment = "fixed"
  433. temp.style.backgroundSize = "100%"
  434. changeBack_All(`${$.cookie('aDeg2')}`, `${$.cookie('blurDeg')}`)
  435. // temp.style.translate=""
  436. }
  437. function dblclickButton_3() {//渐变色背景
  438. $.cookie('bgFlag', '3', { expires: 31 })
  439. temp.style.backgroundImage = "linear-gradient(to right, #FFDDEE , skyblue)";
  440. temp.style.backgroundAttachment = "fixed"
  441. changeBack_All(`${$.cookie('aDeg1')}`, "none")
  442. // temp.style.translate="0px -2px"
  443. }
  444. if ($.cookie('bgFlag') == 4) {//图片背景
  445. temp.style.background = `url(${$.cookie('picUrl')}) no-repeat`
  446. temp.style.backgroundAttachment = "fixed"
  447. temp.style.backgroundSize = "100%"
  448. changeBack_All(`${$.cookie('aDeg2')}`, `${$.cookie('blurDeg')}`)
  449. // temp.style.translate=""
  450.  
  451. }
  452. if ($.cookie('bgFlag') == 3) {//渐变色背景
  453. temp.style.backgroundImage = "linear-gradient(to right, #FFDDEE , skyblue)";
  454. temp.style.backgroundAttachment = "fixed"
  455. changeBack_All(`${$.cookie('aDeg1')}`, "none")
  456. // temp.style.translate="0px -2px"
  457. }
  458. var button_4 = document.createElement("button"); //创建一个按钮
  459. button_4.textContent = "⚙"; //按钮内容
  460. button_4.style.width = "60px"; //按钮宽度
  461. button_4.style.height = "30px"; //按钮高度
  462. button_4.style.align = "center"; //居中
  463. button_4.style.color = "#444444"; //按钮文字颜色
  464. button_4.style.border = "none"; //按钮文字颜色
  465. button_4.style.background = "transparent"; //按钮底色
  466. button_4.style.fontSize = "20px"
  467. button_4.style.padding = "9.3px 0"
  468. button_4.addEventListener("click", clickButton_4)
  469. function clickButton_4() {
  470. document.getElementById("settings").style.display = "block"
  471. let regex = /(?<=\().*?(?=\))/g;
  472. let regex_num = /\d+/g
  473. let blurIndex = $.cookie('blurDeg')
  474. blurIndex = blurIndex.match(regex)[0].match(regex_num)[0]
  475. document.getElementsByClassName('input_set')[0].value = `${blurIndex}`
  476. document.getElementsByClassName('input_set')[1].value = `${$.cookie('aDeg1')}`
  477. document.getElementsByClassName('input_set')[2].value = `${$.cookie('aDeg2')}`
  478. document.getElementsByClassName('input_set')[3].value = `${$.cookie('picUrl')}`
  479.  
  480. }
  481. b_scopebar[0].children[0].appendChild(button_1);
  482. b_scopebar[0].children[0].appendChild(button_2);
  483. b_scopebar[0].children[0].appendChild(button_3);
  484. document.getElementById('id_h').appendChild(button_4);
  485. //搜索关联盒子长度溢出解决
  486. function fixOverflow(relatedBox) {
  487. if (relatedBox) {
  488. for (let i = 0; i <= relatedBox.children[0].children[1].children.length - 1; i++) {
  489. relatedBox.children[0].children[1].children[i].style.width = "45%"
  490. }
  491.  
  492. }
  493. }
  494. function fixOverflow2() {
  495. var brsv3 = document.getElementById('brsv3')
  496. if (brsv3) {
  497. for (let i = 0; i <= brsv3.children[1].children.length - 1; i++) {
  498. brsv3.children[1].children[i].style.width = "45%"
  499. }
  500. }
  501. }
  502. function remove_foot() {
  503. var length_b_canvas = document.getElementsByClassName('b_canvas').length
  504. if (document.getElementsByClassName('b_canvas')[0]) {
  505. document.getElementsByClassName('b_canvas')[document.getElementsByClassName('b_canvas').length - 1].style.display = "none"
  506. }
  507. if (document.getElementById('b_footer')) {
  508. document.getElementById('b_footer').style.background = "#000000e8"
  509. document.getElementById('b_footer').style.translate = "0px 0px"
  510. }
  511. if (document.getElementById('mfa_srch')) {
  512. document.getElementById('mfa_srch').style.backdropFilter = "blur(10px)"
  513. document.getElementById('mfa_srch').style.background = "transparent"
  514. }
  515. }
  516.  
  517.  
  518.  
  519. function fixotherQues() {
  520.  
  521.  
  522. for (let i = 0; i <= slide.length - 1; i++) {
  523. slide[i].children[0].style.background = "transparent"
  524. }
  525. if (nws_cwrp[0]) {
  526. nws_cwrp[0].style.background = "transparent"
  527. }
  528. if (document.getElementsByClassName("mc_vhvc_th")[0]) {
  529. document.getElementsByClassName("mc_vhvc_th")[0].children[0].style.background = "transparent"
  530. document.getElementsByClassName("mc_vhvc_th")[1].children[0].style.background = "transparent"
  531. // document.getElementsByClassName("mc_vhvc_th")[2].children[0].style.background="transparent"
  532. }
  533. if (document.getElementsByClassName("na_ccw")) {
  534. for (let i = 0; i <= document.getElementsByClassName("na_ccw").length - 1; i++) {
  535. document.getElementsByClassName("na_ccw")[i].style.background = "transparent"
  536. }
  537. console.log('渲染完成!')
  538. }
  539. else (console.log("渲染部分失败!"))
  540. }
  541.  
  542. ////////////////////
  543. // js创建@keyframes,ball从定位在(10,10)的位置运动到(100,100) 的位置
  544. const runkeyframes = `
  545. @keyframes fadeIn {
  546. 0% {
  547. opacity: 0;
  548. /*初始状态 透明度为0*/
  549. }
  550.  
  551. 50% {
  552. opacity: 0;
  553. /*中间状态 透明度为0*/
  554. }
  555.  
  556. 100% {
  557. opacity: 1;
  558. /*结尾状态 透明度为1*/
  559. }
  560. }
  561. .pagereco_CB{
  562. background-color: transparent;
  563. }
  564. .pagereco_CBImageCard, .pagereco_CBTextCard{
  565. background-color: #fff0;
  566. }
  567. #tabcontrol_8_156412_navr{
  568. background-color: transparent;
  569. }
  570. #b_header{
  571. border-bottom: none;
  572. }
  573.  
  574. #dsdsd99mmmjj7760011{
  575. background:#ffffff${$.cookie('aDeg2')};
  576. border-radius: 10px;
  577. margin: 1px 0px;
  578. width: 472px;
  579. translate: -21px;
  580. display: flex;
  581. flex-direction: column;
  582. }
  583. /*translate*/
  584. .tta_incell{
  585. background:transparent;
  586. }
  587. .tta_outcell{
  588. background:transparent;
  589. }
  590. #tta_output_ta{
  591. background:transparent;
  592. }
  593.  
  594. `
  595. // 创建style标签
  596. const style = document.createElement('style');
  597. // 设置style属性
  598. style.type = 'text/css';
  599. // 将 keyframes样式写入style内
  600. style.innerHTML = runkeyframes;
  601. // 将style样式存放到head标签
  602. document.getElementsByTagName('body')[0].appendChild(style);
  603. ////////////////////
  604.  
  605. function doIt() {
  606. fixotherQues();
  607. fixOverflow();
  608. fixOverflow2();
  609. remove_foot();
  610. move1();
  611. searchStyle();
  612. fullPicSet(); //搜索栏背景
  613. }
  614.  
  615. doIt();
  616. }
  617.  
  618. if (window.location.href.indexOf("baidu.com") > -1) {
  619. var picUrl = `https://dogefs.s3.ladydaily.com/~/source/wallhaven/full/8o/wallhaven-8o2dpj.png?w=2560&fmt=webp`
  620. $.cookie('picUrl', picUrl)
  621. document.getElementById('wrapper_wrapper').style.background = `url(${$.cookie('picUrl')}) 0% 0% / 100% no-repeat fixed`
  622. }
  623.  
  624.  
  625.  
  626. }