Greasy Fork is available in English.

Novel Ranking Filter [No GM_API Version]

Novel Ranking Filtering Bookmarklet for Mobile Browser

安装此脚本?
作者推荐脚本

您可能也喜欢Novel Ranking/Comments Filter

安装此脚本
作者
LE37
日安装量
0
总安装量
0
评分
0 0 0
版本
2024-05-05
创建于
2024-03-19
更新于
2024-05-04
许可证
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);}}}})();