Novel Ranking Filter [No GM_API Version]

Novel Ranking Filtering Bookmarklet for Mobile Browser

目前为 2024-06-19 提交的版本。查看 最新版本

作者
LE37
评分
0 0 0
版本
2024-06-19
创建于
2024-03-19
更新于
2024-06-19
大小
7.1 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(eg. a), Run it(a) on code page: https://gf.qytechs.cn/en/scripts/490243-novel-ranking-filter-no-gm-api-version/code
2. Bookmark the new created "Bookmark this link" button(b).
3. Done. (use bookmark(b) on ranking page)

Note:
1. Lists store in localstorage so you need allow novel sites to store data on device.
2. Some browsers cannot run javascript from addressbar or bookmark directly, use nickname in addressbar then choose from popuplist.
3. If "Bookmark this link" only create a blank bookmark then you need copy button's link and save it as bookmark manually.

JS2BML:
javascript:(()=>{const b=document.querySelector('pre');let t=b.innerText;if(t.startsWith("//")){t=t.replace(/\/\/.*\n/g,"");t=t.replace(/\s{2,}/g,"");t=t.replace(/\s([;\?:=\(\{\}\[\]])/g,"$1");t=t.replace(/([,;\?:=\(\{\}\[\]])\s/g,"$1");t=t.replace(/#/g,"\\#");t=t.replace(/\(function\(\)/,"javascript:(()=>");const l=document.createElement('a');l.href=t;l.textContent="Bookmark this link";l.classList='install-link';document.getElementById('install-area').appendChild(l);}})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址