.
View orna-item-quality-checker.bookmarklet.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: (function() { | |
var s = document.createElement('script'); | |
s.setAttribute('src', 'https://cdn.jsdelivr.net/npm/lil-gui@0.17'); | |
document.body.appendChild(s); | |
s.onload = () => { | |
var GUI = lil.GUI; | |
var itemname = location.href.match(/items\/([^/]+)/); | |
var data = { | |
'%': 100, | |
'assess': () => { |
View gen_chars_order_from_arrays.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Question from | |
// https://twitter.com/RplusTW/status/1498288300934971401 | |
// inspired from @esp10mm | |
// want to get all order => [a, c, b, d] | |
genOrder([ | |
['c', 'b'], | |
['a', 'b', 'd'], | |
['a', 'c'], | |
]); |
View App.svelte.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
import logo from './assets/svelte.png'; | |
import data from './data.json'; | |
let kwd = '變異'; | |
let tier = 10; | |
let filled = false; | |
let pastedImgDataUrl; | |
// let imgFilter = 'w'; |
View view_distance.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Orna RPG view distance formula: | |
1. base view distance: 180m | |
2. base factor per item: x1.2 | |
3. base factor per adornment: x1.02 | |
*/ | |
// There are two methods to calculate with factor(1.2): | |
// Method 1: 180 * Math.pow(1.2, N) | |
// Method 2: 1.2 * D(N - 1) |
View DateToJSONLocal.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://stackoverflow.com/a/11172083 | |
function toJSONLocal (date = new Date()) { | |
var local = new Date(date); | |
local.setMinutes(date.getMinutes() - date.getTimezoneOffset()); | |
return local.toJSON().slice(0, 10); | |
} |
View ReadMe.md
巴哈姆特動畫瘋影片擷圖小工具
在動畫瘋的頁面可針對影片(不含彈幕)擷圖。
程式安裝連結:
https://greasyfork.org/zh-TW/scripts/420561
0. 安裝前置:
View index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>+ position</title> | |
<script src="main.js" defer></script> | |
<style> | |
body { |
View css-loader.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@keyframes waiting { | |
0%, 100% { content: '⠇'; } | |
16% { content: '⠋'; } | |
32% { content: '⠙'; } | |
48% { content: '⠸'; } | |
64% { content: '⠴'; } | |
80% { content: '⠦'; } | |
} |
View index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://unpkg.com/react@15/dist/react.min.js"> </script><script src="https://unpkg.com/react-dom@15/dist/react-dom.min.js"> | |
</script> | |
<script src="https://unpkg.com/babel-standalone@6.15.0/babel.min.js"></script> | |
<div id="root"></div> | |
<script type="text/babel"> | |
class Hello extends React.Component { | |
constructor(){ | |
super(); |
NewerOlder