mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Add full activity content
This commit is contained in:
parent
8ede5e904a
commit
f8c2360f38
2
@types/global/index.d.ts
vendored
2
@types/global/index.d.ts
vendored
@ -352,6 +352,8 @@ declare global {
|
||||
scriptLoadingMode: '同时' | '延后' | '同时(自动)' | '延后(自动)' | '自动',
|
||||
scriptDownloadMode: 'bundle' | 'legacy'
|
||||
guiSettingsDockSide: '左侧' | '右侧'
|
||||
fullActivityContent: boolean,
|
||||
activityFilter: boolean,
|
||||
latestVersionLink: string,
|
||||
currentVersion: string,
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -53,12 +53,13 @@
|
||||
"frame-playback.min.css": "07231E8699FA0542C1FD36BE278E2201016AA30C91E9EAC116B2D074B20BFCD7",
|
||||
"frame-playback.min.html": "4089BD1D954155EA91D39C33E22D7585A87C3F8A9B4A6BA4CE5D97B51763C971",
|
||||
"frame-playback.min.js": "57B34757FD03B9164B27DB48A1D6F4E3633086C27CD1E3246FCEDDCD7768F05E",
|
||||
"full-activity-content.min.js": "7D70AB8C75F4420154C2ABA3C26AC2170A11BCD0CA0555ECD7D82384A232DF1B",
|
||||
"full-page-title.min.css": "C4E50EBCFEDD0050DDAFFC7A9568625E417DF46F3A312CFF6CD6734B2B038D56",
|
||||
"full-page-title.min.js": "D761A0C4A8B0A25CC0A23A10C495C2A5E6028BC19C6460C8ABB8D4B0B855E748",
|
||||
"full-tweets-title.min.css": "13A0CF1C96F374CED3FA59A532E28B4B620D7A4C374385A363F32AD1A7656764",
|
||||
"full-tweets-title.min.js": "DD57BB732ABEF7739CA84AEFF97E86F8984FCC4A8A75B957213622350B2A7C37",
|
||||
"gui-settings.min.css": "DB583E6B4DFDE26678BC00DEC23714FBEFEC13D1BC21CA0DA6292EA9A679A14F",
|
||||
"gui-settings.min.html": "DFA3DD13CE5627EE5CA5970AEAA022B072C424EEDD3D7D8D6B0844274C6C8689",
|
||||
"gui-settings.min.html": "CED4B321FEAFA3860EDBF2B6CEA2581B9253A9F0DBF7C6FD514885096F14A3EB",
|
||||
"gui-settings.min.js": "BE5C8F6D75F1AAF9DEBC1FA4D3F4CC3834F0EF647BDBECFC3C8A44E72CE177BF",
|
||||
"haruna-scale.min.js": "7B0F89A664B6A3D0BE21F7501660058DE3DC0881A81FCDA44B9F3C31BBD73D30",
|
||||
"hide-bangumi-reviews.min.js": "CC3CE6B3F1606F8AB0A4ADAD3B16E6DA9245D0676ACF74B97FB143FBFF0C7223",
|
||||
|
||||
BIN
min/bundle.zip
BIN
min/bundle.zip
Binary file not shown.
1
min/full-activity-content.min.js
vendored
Normal file
1
min/full-activity-content.min.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
(()=>{return(n,t)=>{const l=`\n.card-list .card .expand-btn,\n.card-list .card .content-ellipsis {\n display: none !important;\n}\n.card-list .card .content-full {\n display: block !important;\n}\n`;return t.toggleStyle(l,"full-activity-content")}})();
|
||||
File diff suppressed because one or more lines are too long
10
src/activity/full-activity-content.ts
Normal file
10
src/activity/full-activity-content.ts
Normal file
@ -0,0 +1,10 @@
|
||||
const style = `
|
||||
.card-list .card .expand-btn,
|
||||
.card-list .card .content-ellipsis {
|
||||
display: none !important;
|
||||
}
|
||||
.card-list .card .content-full {
|
||||
display: block !important;
|
||||
}
|
||||
`
|
||||
export default resources.toggleStyle(style, 'full-activity-content')
|
||||
@ -21,6 +21,7 @@ export function loadResources () {
|
||||
'framePlayback',
|
||||
'hideCategory',
|
||||
'fullTweetsTitle',
|
||||
'fullActivityContent',
|
||||
]
|
||||
for (const [key, data] of Object.entries(Resource.manifest)) {
|
||||
const resource = new Resource(data.path, { styles: data.styles, alwaysPreview: data.alwaysPreview })
|
||||
|
||||
@ -669,5 +669,11 @@ Resource.manifest = {
|
||||
simplifyHome: '简化首页'
|
||||
},
|
||||
},
|
||||
fullActivityContent: {
|
||||
path: 'full-activity-content.min.js',
|
||||
displayNames: {
|
||||
fullActivityContent: '展开动态内容',
|
||||
},
|
||||
},
|
||||
}
|
||||
export const resourceManifest = Resource.manifest
|
||||
|
||||
@ -153,6 +153,8 @@ export const settings = {
|
||||
scriptLoadingMode: '延后(自动)',
|
||||
scriptDownloadMode: 'bundle',
|
||||
guiSettingsDockSide: '左侧',
|
||||
fullActivityContent: true,
|
||||
activityFilter: false,
|
||||
cache: {},
|
||||
}
|
||||
const fixedSettings = {
|
||||
|
||||
@ -91,6 +91,8 @@
|
||||
<checkbox indent="0" key="hideCategory" dependencies=""></checkbox>
|
||||
<category icon="activity">动态</category>
|
||||
<checkbox indent="0" key="foldComment" dependencies=""></checkbox>
|
||||
<checkbox indent="0" key="fullTweetsTitle" dependencies=""></checkbox>
|
||||
<checkbox indent="0" key="fullActivityContent" dependencies=""></checkbox>
|
||||
<checkbox indent="0" key="oldTweets" dependencies=""></checkbox>
|
||||
<category icon="tool">工具</category>
|
||||
<checkbox indent="0" key="removeAds" dependencies=""></checkbox>
|
||||
@ -98,7 +100,6 @@
|
||||
<checkbox indent="0" key="watchLaterRedirect" dependencies=""></checkbox>
|
||||
<checkbox indent="0" key="favoritesRedirect" dependencies=""></checkbox>
|
||||
<checkbox indent="0" key="hideTopSearch" dependencies=""></checkbox>
|
||||
<checkbox indent="0" key="fullTweetsTitle" dependencies=""></checkbox>
|
||||
<checkbox indent="0" key="fullPageTitle" dependencies=""></checkbox>
|
||||
<!-- <checkbox indent="0" key="showDeadVideoTitle" dependencies=""></checkbox>
|
||||
<checkbox indent="1" key="useBiliplusRedirect" dependencies="showDeadVideoTitle"></checkbox>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user