func.html 6.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width" />
  2. <script>function g(t){document.location.href=t+document.forms[0].q.value}
  3. var checkBoxes;
  4. function checkbox_set(num){var i;for(i=0;i<num;i++)checkBoxes[i].checked=true;return true;}
  5. function checkbox_reset(num){var i;for(i=0;i<num;i++)checkBoxes[i].checked=false;return true;}
  6. function checkbox_toggle(num){var i;for(i=0;i<num;i++)checkBoxes[i].checked=!checkBoxes[i].checked;return true;}
  7. </script>
  8. <style>
  9. ul{list-style-type:none;}
  10. body>ul{padding-left:0;}
  11. #NUM{height: 40px; width: 100%;background-color:transparent;border-radius: 50px;}
  12. </style>
  13. <title>UI
  14. </title>
  15. </head><body>
  16. <p>Click the following link to activate corresponding functionalities:</p>
  17. <ul>
  18. <li><a href="i:0n">Generate global css</a> for all fonts under "app/fonts/"</li>
  19. <li><a href="i:13" onclick="return checkbox_reset(checkBoxes.length);">Restore default settings</a>
  20. <li><a href="i:11">Refresh dynamic shortcuts ("shortcut/" or "bookmark/" in internal folder )</a></li>
  21. <li><a href="i:12">Toggle reverse portrait when screen rotation follows system</a></li>
  22. </ul>
  23. <hr/>
  24. <p><a href="i:252147483647" onclick="return checkbox_toggle(checkBoxes.length);">Toggle</a>/<a href="i:260" onclick="return checkbox_reset(checkBoxes.length);">Reset</a>/<a href="i:2147483647" onclick="return checkbox_set(checkBoxes.length);">Check all</a>/<a href="i:2631" onclick="return checkbox_set(5);">Check 1 - 5</a>/<a href="i:26511" onclick="return checkbox_set(9);">Check 1 - 9</a> following options (click individual link to toggle):</p>
  25. <ul>
  26. <li><label><input type="checkbox" onchange="location.href='i:251'"/>New tab for services (long pressing buttons etc.)</label></li>
  27. <li> Switch long and short pressing actions
  28. <ul>
  29. <li><label><input type="checkbox" onchange="location.href='i:252'"/>[☰]</label></li>
  30. <li><label><input type="checkbox" onchange="location.href='i:254'"/>Setting</label></li>
  31. </ul>
  32. </li>
  33. <li><label><input type="checkbox" onchange="location.href='i:258'"/>Backgroud page loading if pressing backward button within 20 seconds</label></li>
  34. <li><label><input type="checkbox" onchange="location.href='i:2516'"/>Address bar default to https</label></li>
  35. ----------------5---------------
  36. <li><label><input type="checkbox" onchange="location.href='i:2532'"/>New tab for next engine search</label></li>
  37. <li><label><input type="checkbox" onchange="location.href='i:2564'"/>Autocomplete to match from the string beginning</label></li>
  38. <li><label><input type="checkbox" onchange="location.href='i:25128'"/>Disable videoplayer.js</label></li>
  39. <li><label><input type="checkbox" onchange="location.href='i:25256'"/>Automatically adjust text size</label></li>
  40. ----------------9---------------
  41. <li><label><input type="checkbox" onchange="location.href='i:25512'"/>Popup links menu for the menu item "command" when long pressing hypertext</label></li>
  42. <li><label><input type="checkbox" onchange="location.href='i:251024'"/>Popup commands menu for the menu item "command" when long pressing hypertext</label></li>
  43. <li><label><input type="checkbox" onchange="location.href='i:252048'"/>Hide address bar</label></li>
  44. <li><label><input type="checkbox" onchange="location.href='i:254096'"/>Hide bottom toolbar</label></li>
  45. <li><label><input type="checkbox" onchange="location.href='i:258192'"/>Not use 2-column bookmarks</label></li>
  46. <li><label><input type="checkbox" onchange="location.href='i:2516384'"/>Home screen to use "query.autoc" for autocompletion</label></li>
  47. <li><label><input type="checkbox" onchange="location.href='i:2532768'"/>Auto hide addressbar/bottom toolbar</label></li>
  48. <li><label><input type="checkbox" onchange="location.href='i:2565536'"/>No JS alert & confirmation</label></li>
  49. <li><label><input type="checkbox" onchange="location.href='i:25131072'"/>Save query history</label></li>
  50. <li><label><input type="checkbox" onchange="location.href='i:25262144'"/>Keep panel when switching tabs</label></li>
  51. <li><label><input type="checkbox" onchange="location.href='i:25524288'"/>Including iframe urls when popping up resources</label></li>
  52. <li><label><input type="checkbox" onchange="location.href='i:251048576'"/>Keep audio playing when tab is closed</label></li>
  53. <li><label><input type="checkbox" onchange="location.href='i:252097152'"/>Rightside menu</label></li>
  54. <li><label><input type="checkbox" onchange="location.href='i:254194304'"/>Bottom address bar</label></li>
  55. <li><label><input type="checkbox" onchange="location.href='i:258388608'"/>Maximize screen size for cutouts</label></li>
  56. <li><label><input type="checkbox" onchange="location.href='i:2516777216'"/>Block dubious resources when blocking external scripts</label></li>
  57. <li><label><input type="checkbox" onchange="location.href='i:2533554432'"/>Use termux</label></li>
  58. <li><label><input type="checkbox" onchange="location.href='i:2567108864'"/>webview debug</label></li>
  59. <li><label><input type="checkbox" onchange="location.href='i:25134217728'"/>fullscreen playing w/o brightness & volumn gestures</label></li>
  60. <li><label><input type="checkbox" onchange="location.href='i:25268435456'"/>Always edit downloaded file name</label></li>
  61. <li><label><input type="checkbox" onchange="location.href='i:25536870912'"/>Long screenshot mode (bad performance, needs restart)</label></li>
  62. </ul>
  63. <script>
  64. checkBoxes=document.getElementsByTagName("input");
  65. </script><script>
  66. let len=checkBoxes.length;
  67. let flg=%1%;
  68. for(let i=0;i<len;i++){
  69. if(flg&(1<<i))checkBoxes[i].checked=true;
  70. }
  71. </script>
  72. <hr/><br/>
  73. <div>
  74. <form action="javascript:" style="margin:5px 0 5px 0;padding:0px">
  75. <input id="NUM" name=q placeholder="Input parameters then click one of the following links"/>
  76. </form>
  77. <a href="javascript:g('i:22')">Bottom toolbar bottom margin (Integer, default:10)</a> <br/>
  78. <a href="javascript:g('i:23')">Bottom toolbar icon size (Integer, default:16)</a> <br/>
  79. <a href="javascript:g('i:27')">Bottom toolbar spacing (Integer, default:22)</a> <br/>
  80. <a href="javascript:g('i:14')">Foreground (Integer in hex, default:0 black)</a> <br/>
  81. <a href="javascript:g('i:24')">UI font size (default:18, had better exit and re-launch the app)</a> <br/>
  82. <a href="javascript:g('i:28')">Font size scale (default:100)</a> <br/>
  83. <a href="javascript:g('i:29')">Web font size (default:16)</a> <br/>
  84. <a href="javascript:g('i:2a')">History size (Integer, default:0 Unit:Kb, such as 90)</a> <br/>
  85. <a href="javascript:g('i:2b')">Maximal lines for addressbar (default:2, <34)</a> <br/>
  86. <a href="javascript:g('i:2c')">Auto hide toolbar (default: 0, no hide. Max value: 7. 4 seconds increment)</a> <br/>
  87. </div><br/>
  88. </body></html>