Novel Ranking Filtering Bookmarklet for Mobile Browser
Seznam verzí skriptu, při kterých došlo ke změnám v kódu. Zobrazit všechny verze.
20040324Replace save to clipboard with save to browser's localstorage. Now all settings and lists will be auto saved.How to use:1. Run JS2Bookmarklet AHK script to remove comment/space/tab.2. Copy BML.txt's content to create a bookmark.3. goto ranking page and use this new bookmark.Done. JS2Bookmarklet AHK script:#NoEnv SetWorkingDir %A_ScriptDir%#SingleInstance ForceFileRead, Clipboard, *m15000 C:\Users\%A_UserName%\Downloads\Novel_Ranking_Filter.user.jsif not ErrorLevel{ Clipboard := RegExReplace(Clipboard, "//.*?\r\n", "") Clipboard := RegExReplace(Clipboard, "\s(a""|class|content|id|solid|type|/>)", "@$1") Clipboard := RegExReplace(Clipboard, "(bcd|case|const|function|let|return|solid|use|var)\s", "$1@") Clipboard := StrReplace(Clipboard, "`(function`(`)", "javascript:(()=>", 1) Clipboard := StrReplace(Clipboard, "else if", "else@if") Clipboard := StrReplace(Clipboard, A_Tab, "") Clipboard := StrReplace(Clipboard, A_Space, "") Clipboard := StrReplace(Clipboard, "#", "\#") Clipboard := StrReplace(Clipboard, "@", A_Space) Clipboard := StrReplace(Clipboard, "`r`n", "") FileAppend, %Clipboard%, c:\Users\%A_UserName%\Downloads\BML.txt Clipboard := ""}ExitApp