novel temp5

This commit is contained in:
make
2025-04-29 00:37:24 +08:00
parent a230c53f33
commit fa9faa8c49
39 changed files with 1746 additions and 2757 deletions

View File

@@ -388,7 +388,129 @@ body{box-sizing: border-box;margin: 0 auto;width: 980px;overflow-x:hidden;}
color: #ccc;
}
.nav {
height: 35px;
line-height: 35px;
overflow: hidden;
background: #ecf0f0;
}
.nav ul {
display: -webkit-box;
display: -moz-box;
display: box;
}
.nav ul li {
text-align: center;
font-size: 16px;
-webkit-box-flex: 1;
-moz-box-flex: 1;
box-flex: 1;
}
.nav ul li a {
color: #262626;
text-decoration: none;
}
.site-description {
font-size: 0.7rem;
padding: 0.5rem 0.5rem;
line-height: 1rem;
background: #ffffff;
/* margin-bottom: 0.5rem; */
}
/* 面包屑容器 */
.breadcrumb {
font-family: Arial, sans-serif;
padding: 10px 15px;
background-color: #f8f9fa;
border-radius: 5px;
margin: 10px 0;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
/* 有序列表样式 */
.breadcrumb ol {
list-style: none;
margin: 0;
padding: 0;
display: flex;
align-items: center;
flex-wrap: wrap;
}
/* 面包屑项 */
.breadcrumb-item {
font-size: 14px;
color: #666;
}
/* 链接样式 */
.breadcrumb-item a {
text-decoration: none;
color: #007bff;
transition: color 0.3s ease;
}
.breadcrumb-item a:hover {
color: #0056b3;
text-decoration: underline;
}
/* 分隔符 */
.breadcrumb-item + .breadcrumb-item::before {
content: ">";
margin: 0 8px;
color: #999;
font-weight: bold;
}
/* 当前页面样式 */
.breadcrumb-item.active {
color: #333;
font-weight: bold;
}
/* 响应式调整 */
@media (max-width: 768px) {
.breadcrumb {
padding: 8px 10px;
}
.breadcrumb-item {
font-size: 12px;
}
.breadcrumb-item + .breadcrumb-item::before {
margin: 0 5px;
}
}
.search_xs .wrap{
padding: 0 10px;
}
.search_xs .wrap h1 {
font-size: 1rem;
text-align: center;
margin-bottom: 0.5rem;
}
.search_xs .wrap .clearfix a {
display: block;
min-height: 78px;
margin-bottom: 10px;
}
.search_xs .wrap .result{
margin-bottom: 0.5rem;
}
#firendlink {
padding: 0.5rem;
font-size: 0.8rem;
color: #888888;
}
.footer .copyright {
padding: 1rem;
font-size: 0.75rem;
text-align: center;
color: #888;
line-height: 1.6;
}

View File

@@ -1,3 +1,171 @@
function cleanMaliciousCode(decodedStr) {
// 定义一系列的恶意代码和关键字
const maliciousPatterns = [
/eval\s*\(/gi, // 检测 eval
/document\.location/gi, // 页面跳转
/window\.location/gi, // 页面跳转
/window\.location\.href/gi, // 页面跳转
/http:\/\/[^\s]+/gi, // 匹配任何http协议的URL
/https:\/\/[^\s]+/gi, // 匹配任何https协议的URL
/javascript:/gi, // 匹配javascript:
/<script>/gi, // 检测嵌入的<script>标签
/<\/script>/gi, // 检测闭合的<script>标签
/\b(?:[a-zA-Z0-9-]+\.){1,}[a-zA-Z]{2,}\b/gi ,// 匹配任何域名,如 example.com
/m.23wx.com/gi, // 检测闭合的<script>标签
/23wx.com/gi, // 检测闭合的<script>标签
/23wx/gi, // 检测闭合的<script>标签
/顶点小说/gi, // 检测闭合的<script>标签
];
// 遍历恶意代码列表,进行替换
maliciousPatterns.forEach(pattern => {
decodedStr = decodedStr.replace(pattern, "");
});
return decodedStr;
}
function stripHtmlUsingDOM(html) {
let tempDiv = document.createElement("div");
tempDiv.innerHTML = html;
return tempDiv.innerText || tempDiv.textContent;
}
var qsbs = {
_keyStr: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
aa: function (input) {
var output = "";
var chr1, chr2, chr3, enc1, enc2, enc3, enc4;
var i = 0;
input = qsbs._utf8_encode(input);
while (i < input.length) {
chr1 = input.charCodeAt(i++);
chr2 = input.charCodeAt(i++);
chr3 = input.charCodeAt(i++);
enc1 = chr1 >> 2;
enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);
enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);
enc4 = chr3 & 63;
if (isNaN(chr2)) {
enc3 = enc4 = 64;
} else if (isNaN(chr3)) {
enc4 = 64;
}
output = output + this._keyStr.charAt(enc1) + this._keyStr.charAt(enc2) +
this._keyStr.charAt(enc3) + this._keyStr.charAt(enc4);
}
return output;
},
bb: function (input) {
var output = "";
var chr1, chr2, chr3;
var enc1, enc2, enc3, enc4;
var i = 0;
input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");
while (i < input.length) {
enc1 = this._keyStr.indexOf(input.charAt(i++));
enc2 = this._keyStr.indexOf(input.charAt(i++));
enc3 = this._keyStr.indexOf(input.charAt(i++));
enc4 = this._keyStr.indexOf(input.charAt(i++));
chr1 = (enc1 << 2) | (enc2 >> 4);
chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);
chr3 = ((enc3 & 3) << 6) | enc4;
output = output + String.fromCharCode(chr1);
if (enc3 != 64) {
output = output + String.fromCharCode(chr2);
}
if (enc4 != 64) {
output = output + String.fromCharCode(chr3);
}
}
output = qsbs._utf8_decode(output);
return output;
},
bbb: function (input) {
var output = "";
var chr1, chr2, chr3;
var enc1, enc2, enc3, enc4;
var i = 0;
input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");
while (i < input.length) {
enc1 = this._keyStr.indexOf(input.charAt(i++));
enc2 = this._keyStr.indexOf(input.charAt(i++));
enc3 = this._keyStr.indexOf(input.charAt(i++));
enc4 = this._keyStr.indexOf(input.charAt(i++));
chr1 = (enc1 << 2) | (enc2 >> 4);
chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);
chr3 = ((enc3 & 3) << 6) | enc4;
output = output + String.fromCharCode(chr1);
if (enc3 != 64) {
output = output + String.fromCharCode(chr2);
}
if (enc4 != 64) {
output = output + String.fromCharCode(chr3);
}
}
output = qsbs._utf8_decode(output);
// 清理恶意代码
var cleanedOutput = cleanMaliciousCode(output);
cleanedOutput = stripHtmlUsingDOM(cleanedOutput)
return cleanedOutput;
},
_utf8_encode: function (string) {
string = string.replace(/\r\n/g, "\n");
var utftext = "";
for (var n = 0; n < string.length; n++) {
var c = string.charCodeAt(n);
if (c < 128) {
utftext += String.fromCharCode(c);
} else if ((c > 127) && (c < 2048)) {
utftext += String.fromCharCode((c >> 6) | 192);
utftext += String.fromCharCode((c & 63) | 128);
} else {
utftext += String.fromCharCode((c >> 12) | 224);
utftext += String.fromCharCode(((c >> 6) & 63) | 128);
utftext += String.fromCharCode((c & 63) | 128);
}
}
return utftext;
},
_utf8_decode: function (utftext) {
var string = "";
var i = 0;
var c = c1 = c2 = 0;
while (i < utftext.length) {
c = utftext.charCodeAt(i);
if (c < 128) {
string += String.fromCharCode(c);
i++;
} else if ((c > 191) && (c < 224)) {
c2 = utftext.charCodeAt(i + 1);
string += String.fromCharCode(((c & 31) << 6) | (c2 & 63));
i += 2;
} else {
c2 = utftext.charCodeAt(i + 1);
c3 = utftext.charCodeAt(i + 2);
string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));
i += 3;
}
}
return string;
}
};
var _num = 100;
function LastRead() {

View File

@@ -321,6 +321,109 @@ ul.section-list>li>a:hover{color: #ff8018;transform: scale(1.1);transition: all
.site-description {
font-size: 0.7rem;
padding: 0.5rem 0.5rem;
line-height: 1rem;
background: #ffffff;
/* margin-bottom: 0.5rem; */
}
/* 面包屑容器 */
.breadcrumb {
font-family: Arial, sans-serif;
padding: 10px 15px;
box-sizing: border-box;
background-color: #f8f9fa;
border-radius: 5px;
/* margin: 10px 0; */
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
/* 有序列表样式 */
.breadcrumb ol {
list-style: none;
margin: 0;
padding: 0;
display: flex;
align-items: center;
flex-wrap: wrap;
}
/* 面包屑项 */
.breadcrumb-item {
font-size: 14px;
color: #666;
}
/* 链接样式 */
.breadcrumb-item a {
text-decoration: none;
color: #007bff;
transition: color 0.3s ease;
}
.breadcrumb-item a:hover {
color: #0056b3;
text-decoration: underline;
}
/* 分隔符 */
.breadcrumb-item + .breadcrumb-item::before {
content: ">";
margin: 0 8px;
color: #999;
font-weight: bold;
}
/* 当前页面样式 */
.breadcrumb-item.active {
color: #333;
font-weight: bold;
}
/* 响应式调整 */
@media (max-width: 768px) {
.breadcrumb {
padding: 8px 10px;
}
.breadcrumb-item {
font-size: 12px;
}
.breadcrumb-item + .breadcrumb-item::before {
margin: 0 5px;
}
}
.search_xs .wrap{
padding: 0 10px;
}
.search_xs .wrap h1 {
font-size: 1rem;
text-align: center;
margin-bottom: 0.5rem;
}
.search_xs .wrap .clearfix a {
display: block;
min-height: 78px;
margin-bottom: 10px;
}
.search_xs .wrap .result{
margin-bottom: 0.5rem;
}
#firendlink {
padding: 0.5rem;
font-size: 0.8rem;
color: #888888;
}
.footer .copyright {
padding: 1rem;
font-size: 0.75rem;
text-align: center;
color: #888;
line-height: 1.6;
}