mirror of
https://github.com/Mabbs/mabbs.github.io
synced 2026-06-03 18:53:21 +08:00
Compare commits
2 Commits
AR-Backup-
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2a512a487d | ||
|
|
556e27c9ad |
@ -18,7 +18,6 @@ Lanke's blog,https://blog.blueke.top/,https://blog.blueke.top/rss.xml,请为一
|
||||
寒士杰克,https://www.hansjack.com/,https://www.hansjack.com/feed/,喜欢捣鼓,不断进步!
|
||||
Pinpe 的云端,https://pinpe.top/,https://pinpe.top/rss.xml,一个属于自己的云朵。
|
||||
Chise Hachiroku,https://chise.hachiroku.com/zh/,https://chise.hachiroku.com/zh/feed/,向明日的辉迹,干杯!
|
||||
映屿,https://www.glowisle.me/,https://www.glowisle.me/atom.xml,关于互联网、书籍、生活琐事以及那些一闪而过的念头
|
||||
映屿,https://blog.verdant.ee/,https://blog.verdant.ee/atom.xml,关于互联网、书籍、生活琐事以及那些一闪而过的念头
|
||||
Restent's Notebook,https://blog.gxres.net/,https://blog.gxres.net/atom.xml,不前沿技术分享
|
||||
Coseroom,https://coseroom.com,,
|
||||
RavelloH's Blog,https://ravelloh.com,https://ravelloh.com/feed.xml,Beginning of meditation.
|
||||
|
||||
|
@ -55,7 +55,6 @@ http://27.124.12.222:3000/mayx/blog
|
||||
https://gitea.hintsight.com/mayx/blog
|
||||
http://blackobelisk.xyz:3000/mayx/blog
|
||||
https://git.the-kn.com/mayx/blog
|
||||
https://gitea.shirom.me/mayx/blog
|
||||
https://git.wangxinlei.cn/mayx/blog
|
||||
http://123.56.193.182:3000/mayx/blog
|
||||
http://167.172.7.198:8081/mayx/blog
|
||||
@ -80,7 +79,6 @@ https://git.nusaerp.com/mayx/blog
|
||||
http://35.207.205.18:3000/mayx/blog
|
||||
http://git.zjsciot.com:3000/mayx/blog
|
||||
https://gitea.ontoast.uk/mayx/blog
|
||||
http://112.124.40.88:5510/mayx/blog
|
||||
http://121.36.37.70:15501/mayx/blog
|
||||
http://187.216.152.151:9999/mayx/blog
|
||||
http://116.63.173.179:8001/mayx/blog
|
||||
@ -125,7 +123,6 @@ http://202.65.194.19:3000/mayx/blog
|
||||
http://101.201.34.43:3000/mayx/blog
|
||||
https://git.gloje-rinchen-dorjee-rinpoche-buddhist-monastery.org/mayx/blog
|
||||
http://101.35.227.2:3000/mayx/blog
|
||||
http://175.126.123.163:3000/mayx/blog
|
||||
http://209.141.47.52:3000/mayx/blog
|
||||
http://60.204.158.188:3000/mayx/blog
|
||||
http://60.204.156.211:3000/mayx/blog
|
||||
@ -158,7 +155,6 @@ http://210.245.20.73:3333/mayx/blog
|
||||
http://43.248.97.109:3000/mayx/blog
|
||||
http://113.207.86.104:3080/mayx/blog
|
||||
http://39.96.195.72:10082/mayx/blog
|
||||
https://221.219.181.35:30000/mayx/blog
|
||||
http://172.172.102.93:3000/mayx/blog
|
||||
http://115.120.245.164:3000/mayx/blog
|
||||
http://35.194.179.90:3000/mayx/blog
|
||||
@ -205,7 +201,6 @@ https://Repo.gusdya.net/mayx/blog
|
||||
https://git.m.ctf.arrobe.fr/mayx/blog
|
||||
http://69.62.64.52:3333/mayx/blog
|
||||
https://git.flymiracle.com/mayx/blog
|
||||
https://gitea.manekenbrand.com/mayx/blog
|
||||
http://106.14.138.181:3000/mayx/blog
|
||||
https://git.yyuu.xyz/mayx/blog
|
||||
http://39.107.70.124:3000/mayx/blog
|
||||
@ -222,7 +217,6 @@ http://101.37.69.204:3000/mayx/blog
|
||||
https://gitea.tecamino.com/mayx/blog
|
||||
http://39.99.175.172:8000/mayx/blog
|
||||
http://8.138.13.251:3000/mayx/blog
|
||||
http://47.115.223.229:8888/mayx/blog
|
||||
http://104.254.131.244:3000/mayx/blog
|
||||
https://gitea.alacloud.de/mayx/blog
|
||||
https://git.tobiasweise.dev/mayx/blog
|
||||
@ -233,7 +227,6 @@ http://8.130.128.130:3000/mayx/blog
|
||||
https://repos.fbpx.io/mayx/blog
|
||||
https://git.cavemanon.xyz/mayx/blog
|
||||
http://svn.rivastudio.cn/mayx/blog
|
||||
https://kamtk.ru:4000/mayx/blog
|
||||
http://39.98.126.115:8080/mayx/blog
|
||||
http://46.202.189.66:3000/mayx/blog
|
||||
http://82.26.157.11:3001/mayx/blog
|
||||
@ -256,7 +249,6 @@ http://113.44.218.8:3000/mayx/blog
|
||||
https://git.cenoq.com/mayx/blog
|
||||
http://8.152.205.35:3000/mayx/blog
|
||||
http://120.210.80.160:3000/mayx/blog
|
||||
http://1.95.192.200:59300/mayx/blog
|
||||
http://194.5.152.156:3000/mayx/blog
|
||||
http://8.155.172.147:3001/mayx/blog
|
||||
https://git.erfmann.dev/mayx/blog
|
||||
@ -277,7 +269,6 @@ http://221.203.14.217:3000/mayx/blog
|
||||
https://git.sophiagwen.au/mayx/blog
|
||||
http://139.196.96.28:13000/mayx/blog
|
||||
https://dev.kiramtech.com/mayx/blog
|
||||
https://git.ihatemen.uk/mayx/blog
|
||||
https://git.123doit.com/mayx/blog
|
||||
http://62.43.207.91:8889/mayx/blog
|
||||
https://git.johntsai.online/mayx/blog
|
||||
@ -352,7 +343,6 @@ https://git.automathon.org/mayx/blog
|
||||
https://git.esen.gay/mayx/blog
|
||||
https://git.webtims.ru/mayx/blog
|
||||
https://gitea.personalsoftware.space/mayx/blog
|
||||
http://gitea.yiban.com.tw:3030/mayx/blog
|
||||
https://gitlab.iplusus.com/mayx/blog
|
||||
https://gitea.zachl.tech/mayx/blog
|
||||
https://git.miasma-os.com/mayx/blog
|
||||
@ -401,7 +391,6 @@ http://82.156.249.211:3000/mayx/blog_cn
|
||||
http://36.133.248.69:3088/mayx/blog_cn
|
||||
http://220.205.16.27:18081/mayx/blog_cn
|
||||
http://81.69.221.216:3000/mayx/blog_cn
|
||||
http://115.159.194.75:4000/mayx/blog_cn
|
||||
http://183.204.60.122:10081/mayx/blog_cn
|
||||
http://43.139.240.37:17000/mayx/blog_cn
|
||||
http://159.75.27.114:3000/mayx/blog_cn
|
||||
@ -422,7 +411,6 @@ http://35.175.189.8/mayx/blog
|
||||
http://meowug.com:8418/mayx/blog_cn
|
||||
http://36.138.125.206:3000/mayx/blog_cn
|
||||
https://git.4lcap.com/mayx/blog_cn
|
||||
http://101.43.238.71:3000/mayx/blog_cn
|
||||
http://59.110.175.62:4322/mayx/blog_cn
|
||||
https://www.luluvip.cn:8419/mayx/blog_cn
|
||||
http://xianyuhome.cn:11013/mayx/blog_cn
|
||||
@ -432,7 +420,6 @@ https://git.crystalyx.net/mayx/blog
|
||||
https://gittea.dev/mayx/blog
|
||||
https://git.newnaturalphilosophy.org/mayx/blog
|
||||
https://code.infininov.com/mayx/blog
|
||||
https://git.apt142.ru/mayx/blog
|
||||
http://gitea.mcelwain.net/mayx/blog
|
||||
https://chunkks.com/mayx/blog
|
||||
https://gitea.earthmanrpg.me/mayx/blog
|
||||
@ -518,3 +505,24 @@ https://git.heartnn.com/mayx/blog
|
||||
https://git.joinplu.me/mayx/blog
|
||||
https://git.research.dezeeuw.ca/mayx/blog
|
||||
http://149.104.29.239:8081/mayx/blog
|
||||
http://ysx.myds.me:3005/mayx/blog
|
||||
http://124.71.169.183:3000/mayx/blog
|
||||
https://git.csi-kjsce.org/mayx/blog
|
||||
https://hiwifi.denq.us:8418/mayx/blog
|
||||
http://39.108.124.198:3000/mayx/blog
|
||||
http://1090391-twk8saas.tmweb.ru/mayx/blog
|
||||
https://git.msoucy.me/mayx/blog
|
||||
https://git.niisse.net/mayx/blog
|
||||
http://139.224.24.61:3000/mayx/blog
|
||||
http://140.120.108.238:49308/mayx/blog
|
||||
http://220.132.16.87:3000/mayx/blog
|
||||
http://git.chilidoginteractive.com:3000/mayx/blog_cn
|
||||
https://git.thunder-data.cn/mayx/blog_cn
|
||||
https://git.cukak.com/mayx/blog_cn
|
||||
https://git.ixu.me/mayx/blog_cn
|
||||
http://git.uhfdemo.com/mayx/blog_cn
|
||||
http://43.143.142.38:7001/mayx/blog_cn
|
||||
http://111.230.243.127:3000/mayx/blog_cn
|
||||
http://git.qniao.cn/mayx/blog_cn
|
||||
https://gitea.smartechouse.com/mayx/blog_cn
|
||||
http://git.feashow.cn/mayx/blog_cn
|
||||
|
||||
|
9
assets/js/jquery.min.js
vendored
9
assets/js/jquery.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1,51 +1,21 @@
|
||||
/**
|
||||
* 根据 URL ?kw= 参数高亮页面内匹配的关键词。
|
||||
* 提取为全局函数,供 pjax.js 在页面切换后复用,避免重复实现。
|
||||
*/
|
||||
function highlightKeyword() {
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
const keyword = urlParams.get('kw')?.trim();
|
||||
var match = location.search.match(/[?&]kw=([^&]+)/);
|
||||
var kw = match ? $.trim(decodeURIComponent(match[1].replace(/\+/g, ' '))) : '';
|
||||
if (!kw) return;
|
||||
|
||||
if (!keyword) return;
|
||||
var reg = new RegExp('(' + kw.replace(/[.*+?^${}()|[\]\\]/g, '\\$&') + ')', 'gi');
|
||||
var escapeMap = { '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' };
|
||||
|
||||
// 转义正则表达式特殊字符,避免安全问题
|
||||
const escapedKeyword = keyword.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
||||
// 创建不区分大小写的正则表达式(全局匹配)
|
||||
const regex = new RegExp(`(${escapedKeyword})`, 'gi');
|
||||
|
||||
// 递归遍历并高亮文本节点
|
||||
const escapeHTML = str => str.replace(/[&<>"']/g,
|
||||
tag => ({
|
||||
'&': '&',
|
||||
'<': '<',
|
||||
'>': '>',
|
||||
'"': '"',
|
||||
"'": '''
|
||||
}[tag] || tag));
|
||||
function highlightTextNodes(element) {
|
||||
$(element).contents().each(function () {
|
||||
if (this.nodeType === Node.TEXT_NODE) {
|
||||
const $this = $(this);
|
||||
const text = escapeHTML($this.text());
|
||||
|
||||
// 使用正则替换并保留原始大小写
|
||||
if (regex.test(text)) {
|
||||
const replaced = text.replace(regex, '<mark>$1</mark>');
|
||||
$this.replaceWith(replaced);
|
||||
}
|
||||
} else if (
|
||||
this.nodeType === Node.ELEMENT_NODE &&
|
||||
!$(this).is('script, style, noscript, textarea')
|
||||
) {
|
||||
highlightTextNodes(this);
|
||||
$('section, section *').not('script, style, textarea').contents().filter(function() {
|
||||
return this.nodeType === 3;
|
||||
}).each(function() {
|
||||
var escapedText = this.nodeValue.replace(/[&<>"']/g, function(m) { return escapeMap[m]; });
|
||||
var highlighted = escapedText.replace(reg, '<mark>$1</mark>');
|
||||
if (escapedText !== highlighted) {
|
||||
$(this).replaceWith(highlighted);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$('section').each(function () {
|
||||
highlightTextNodes(this);
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
function initCopyButtons() {
|
||||
$('.copy').remove();
|
||||
|
||||
@ -12,7 +12,7 @@ image: https://screenshot.mayx.eu.org/
|
||||
<!-- 遍历分页后的文章 -->
|
||||
<table class="entry-content h-feed">
|
||||
{% for post in paginator.posts %}
|
||||
<tr><td class="h-entry" data-url="{{ post.url }}">
|
||||
<tr><td class="h-entry post-row" data-url="{{ post.url }}">
|
||||
<h2 class="p-name"><a class="post-link u-url" href="{{ post.url }}">{{ post.title }}{% if post.layout == "encrypt" %} [加密] {% endif %}</a></h2>
|
||||
<p>
|
||||
<time class="date dt-published" datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%-d %B %Y" }}</time>
|
||||
@ -79,7 +79,7 @@ image: https://screenshot.mayx.eu.org/
|
||||
<a href="https://xn--sr8hvo.ws/next">→</a><br /><a href="https://icp.gov.moe/?keyword=20218888" target="_blank">萌ICP备 20218888号</a></small>
|
||||
<input name="live2dBGM" value="https://music.163.com/song/media/outer/url?id=523658881.mp3" type="hidden" />
|
||||
<script>
|
||||
$(document).on('click', '.h-entry', function(e) {
|
||||
$(document).on('click', '.post-row', function(e) {
|
||||
if ($(e.target).closest('.p-category').length === 0) {
|
||||
go($(this).attr('data-url'));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user