Novel Ranking Filter [No GM_API Version]

Novel Ranking Filtering Bookmarklet for Mobile Browser

Install this script?
Author's suggested script

You may also like Novel Ranking/Comments Filter.

Install this script
Author
LE37
Daily installs
0
Total installs
0
Ratings
0 0 0
Version
2024-05-05
Created
2024-03-19
Updated
2024-05-04
License
MIT
Applies to

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);}}}})();