From caae2972a2b5899eb4dfd23027263e1ed533197a Mon Sep 17 00:00:00 2001 From: InfinityLoop Date: Fri, 31 May 2024 01:45:13 +0900 Subject: [PATCH] =?UTF-8?q?update:=20=E6=9B=B4=E6=8D=A2=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E6=8E=92=E5=BA=8F=20(https://github.com/swsoyee/psnine-enhance?= =?UTF-8?q?d-version/pull/117#issuecomment-2140126873)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 4 ++-- package.json | 2 +- psnineplus.js | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index ca75e9a..2f1c595 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "psnine-enhanced-version", - "version": "1.0.21", + "version": "1.0.22", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "psnine-enhanced-version", - "version": "1.0.21", + "version": "1.0.22", "license": "MIT", "devDependencies": { "eslint": "^7.32.0", diff --git a/package.json b/package.json index 561b22a..de388ab 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "psnine-enhanced-version", - "version": "1.0.21", + "version": "1.0.22", "description": "数折价格走势图,显示人民币价格,奖杯统计和筛选,发帖字数统计和即时预览,楼主高亮,自动翻页,屏蔽黑名单用户发言,被@用户的发言内容显示等多项功能优化P9体验", "main": "night-mode-css.js", "scripts": { diff --git a/psnineplus.js b/psnineplus.js index 1217dc4..2e941b7 100644 --- a/psnineplus.js +++ b/psnineplus.js @@ -1,7 +1,7 @@ // ==UserScript== // @name PSN中文网功能增强 // @namespace https://swsoyee.github.io -// @version 1.0.21 +// @version 1.0.22 // @description 数折价格走势图,显示人民币价格,奖杯统计和筛选,发帖字数统计和即时预览,楼主高亮,自动翻页,屏蔽黑名单用户发言,被@用户的发言内容显示等多项功能优化P9体验 // eslint-disable-next-line max-len // @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAMFBMVEVHcEw0mNs0mNs0mNs0mNs0mNs0mNs0mNs0mNs0mNs0mNs0mNs0mNs0mNs0mNs0mNuEOyNSAAAAD3RSTlMAQMAQ4PCApCBQcDBg0JD74B98AAABN0lEQVRIx+2WQRaDIAxECSACWLn/bdsCIkNQ2XXT2bTyHEx+glGIv4STU3KNRccp6dNh4qTM4VDLrGVRxbLGaa3ZQSVQulVJl5JFlh3cLdNyk/xe2IXz4DqYLhZ4mWtHd4/SLY/QQwKmWmGcmUfHb4O1mu8BIPGw4Hg1TEvySQGWoBcItgxndmsbhtJd6baukIKnt525W4anygNECVc1UD8uVbRNbumZNl6UmkagHeRJfX0BdM5NXgA+ZKESpiJ9tRFftZEvue2cS6cKOrGk/IOLTLUcaXuZHrZDq3FB2IonOBCHIy8Bs1Zzo1MxVH+m8fQ+nFeCQM3MWwEsWsy8e8Di7meA5Bb5MDYCt4SnUbP3lv1xOuWuOi3j5kJ5tPiZKahbi54anNRaaG7YElFKQBHR/9PjN3oD6fkt9WKF9rgAAAAASUVORK5CYII= @@ -436,8 +436,8 @@ `; document.head.appendChild(style); - // 状态变量,跟踪当前的排序顺序,初始为 true 表示升序 - let ascending = true; + // 状态变量,跟踪当前的排序顺序,初始为 false 表示降序 + let ascending = false; // 为 span 元素添加点击排序功能 spanElement.addEventListener('click', () => {