Greasy Fork

Greasy Fork is available in English.

Novel Ranking Filter [No GM_API Version]

Novel Ranking Filtering Bookmarklet for Mobile Browser

当前为 2024-05-04 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
LE37
评分
0 0 0
版本
2024-05-05
创建于
2024-03-19
更新于
2024-05-04
大小
5.0 KB
许可证
MIT
适用于

No GM_API Version Novel Ranking Filter, used as a bookemarklet so don't need UserscriptManager installed.

How to use:
1. Save JS2BML(below) as a bookmark, Run it on any page(eg. here)
2. Scroll to bottom there will be a new input area, delete all text then paste content of "Novel Ranking Filter [No GM_API Version].user.js" there.
3. Click the input area again, Bookmarklet will be created and save to Clipboard.
4. Create a new bookmark with clipboard content.
5. goto ranking page and use this new bookmark.
Done.

JS2BML:
javascript:(()=>{const ele=document.body.appendChild(document.createElement("div"));ele.id="BML";ele.innerHTML=`%3cp style="background-color:white;" contentEditable>Paste whole content of Novel_Ranking_Filter[NO GM_API Version].user.js here.%3c/p>`;const bMaker=document.getElementById('BML');bMaker.addEventListener("click",js2bml,true);function js2bml(){let t=document.getElementById('BML').innerText;if(t.startsWith("//")){t=t.replace(/\/\/.*\n/g,"");t=t.replace(/\s(a"|class|content|id|solid|type|\/>)/g,"@$1");t=t.replace(/(bcd|case|const|function|let|return|solid|use|var)\s/g,"$1@");t=t.replace(/\(function\(\)/,"javascript:(()=>");t=t.replace(/else\sif/g,"else@if");t=t.replace(/\s/g,"");t=t.replace(/#/g,"\\#");t=t.replace(/@/g," ");try{navigator.clipboard.writeText(t);console.log("===V===");}catch(e){console.log(e);}}}})();