This is an automated email from the ASF dual-hosted git repository. liujun pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/dubbo-website.git
The following commit(s) were added to refs/heads/master by this push: new 5f3a8f8f4c7 fix: 🐛 fix bilibili Video (#2964) 5f3a8f8f4c7 is described below commit 5f3a8f8f4c7742f17964ffafcc09ddb11cc370c0 Author: mamba <371510...@qq.com> AuthorDate: Tue Apr 23 14:19:06 2024 +0800 fix: 🐛 fix bilibili Video (#2964) --- .htaccess | 2 +- layouts/partials/head.html | 51 +------------------------------------------ layouts/partials/scripts.html | 51 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 53 insertions(+), 51 deletions(-) diff --git a/.htaccess b/.htaccess index 08679ee8fcc..67eb149a27a 100644 --- a/.htaccess +++ b/.htaccess @@ -7,7 +7,7 @@ Header always set Cache-Control "no-store, no-cache, must-revalidate" Header always set Expires "Thu, 01 Dec 1994 16:00:00 GMT" Header always merge Vary "Accept-Language" - Header set Content-Security-Policy "frame-src 'self' https://www.google.com https://app.netlify.com" + Header set Content-Security-Policy "frame-src 'self' https://www.google.com https://player.bilibili.com https://app.netlify.com" </IfModule> <IfModule mod_rewrite.c> diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 38589017002..144df73ed33 100755 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -26,62 +26,13 @@ })(); </script> - -<!--初始化SDK--> -<script> - (function (w, d, s, q, i) { - w[q] = w[q] || []; - var f = d.getElementsByTagName(s)[0], - j = d.createElement(s); - j.async = true; - j.id = 'beacon-aplus'; - j.setAttribute('exparams', 'userid=&aplus&sidx=aplusSidex&ckx=aplusCkx'); - j.src = '//g.alicdn.com/alilog/mlog/aplus_v2.js'; - j.crossorigin = 'anonymous'; - f.parentNode.insertBefore(j, f); - })(window, document, 'script', 'aplus_queue'); - - (function (d) { - var t = d.createElement('script'); - t.type = 'text/javascript'; - t.async = true; - t.src = - '//g.alicdn.com/aes/??tracker/3.3.4/index.js,tracker-plugin-pv/3.0.5/index.js,tracker-plugin-event/3.0.0/index.js,tracker-plugin-autolog/3.0.3/index.js,tracker-plugin-survey/3.0.3/index.js,tracker-plugin-jserror/3.0.3/index.js,tracker-plugin-resourceError/3.0.3/index.js'; - t.onload = function () { - window.AES_CONFIG = window.AES_CONFIG || { - // 判断当前环境 - env: 'prod', - }; - window.aes = new AES({ - pid: 'zN245h', - user_type: 6, - }); - window.AESPluginAutologConfig = { exposure: 'auto' }; - window.AEMPluginInstances = [ - aes.use( - AESPluginPV, - window.AESPluginPVConfig || { enableHistory: true }, - ), - aes.use(AESPluginEvent, window.AESPluginEventConfig || {}), - aes.use(AESPluginSurvey, window.AESPluginEventConfig || {}), - aes.use(AESPluginAutolog, window.AESPluginAutologConfig || {}), - aes.use(AESPluginJSError, window.AESPluginJSError || {}), - aes.use(AESPluginResourceError, window.AESPluginResourceError || {}), - ]; - }; - setTimeout(function () { - d.getElementsByTagName('body')[0].appendChild(t); - }, 800); - })(document); -</script> - {{ end }} <!-- Docsy head.html begins here --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <!--Google needs to be allowed for kapa.ai widget to work--> -<meta http-equiv="Content-Security-Policy" content="frame-src 'self' https://www.google.com/ https://app.netlify.com/;"> +<meta http-equiv="Content-Security-Policy" content="frame-src 'self' https://www.google.com/ https://player.bilibili.com/ https://app.netlify.com/;"> {{ hugo.Generator }} {{ range .AlternativeOutputFormats -}} <link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}"> diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index bc86326a774..c6f6cd78fdf 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -39,4 +39,55 @@ ></script> + + +<!--init performance SDK --> +<script> + (function (w, d, s, q, i) { + w[q] = w[q] || []; + var f = d.getElementsByTagName(s)[0], + j = d.createElement(s); + j.async = true; + j.id = 'beacon-aplus'; + j.setAttribute('exparams', 'userid=&aplus&sidx=aplusSidex&ckx=aplusCkx'); + j.src = '//g.alicdn.com/alilog/mlog/aplus_v2.js'; + j.crossorigin = 'anonymous'; + f.parentNode.insertBefore(j, f); + })(window, document, 'script', 'aplus_queue'); + + (function (d) { + var t = d.createElement('script'); + t.type = 'text/javascript'; + t.async = true; + t.src = + '//g.alicdn.com/aes/??tracker/3.3.4/index.js,tracker-plugin-pv/3.0.5/index.js,tracker-plugin-event/3.0.0/index.js,tracker-plugin-autolog/3.0.3/index.js,tracker-plugin-survey/3.0.3/index.js,tracker-plugin-jserror/3.0.3/index.js,tracker-plugin-resourceError/3.0.3/index.js'; + t.onload = function () { + window.AES_CONFIG = window.AES_CONFIG || { + // 判断当前环境 + env: 'prod', + }; + window.aes = new AES({ + pid: 'zN245h', + user_type: 6, + }); + window.AESPluginAutologConfig = { exposure: 'auto' }; + window.AEMPluginInstances = [ + aes.use( + AESPluginPV, + window.AESPluginPVConfig || { enableHistory: true }, + ), + aes.use(AESPluginEvent, window.AESPluginEventConfig || {}), + aes.use(AESPluginSurvey, window.AESPluginEventConfig || {}), + aes.use(AESPluginAutolog, window.AESPluginAutologConfig || {}), + aes.use(AESPluginJSError, window.AESPluginJSError || {}), + aes.use(AESPluginResourceError, window.AESPluginResourceError || {}), + ]; + }; + setTimeout(function () { + d.getElementsByTagName('body')[0].appendChild(t); + }, 800); + })(document); +</script> + + {{ partial "hooks/body-end.html" . }}