Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View tnraro's full-sized avatar

Hojin Yang tnraro

View GitHub Profile
// https://www.weather.go.kr/w/obs-climate/land/past-obs/obs-by-day.do?stn=143
{
const year = document.querySelector("[name=yy]").value;
const month = Number(document.querySelector("[name=mm]").value);
const startDay = 10;
const endDay = 19;
const d = new Date(year, month-1, 1);
const offset = d.getDay();
const p = x => {
const o = {};

firevoid 자동화 스크립트

.click()이 막힌 관계로 다음과 같은 번거로운 코드를 주입해야해요.

먼저, 선호하는 브라우저에서 firevoid를 켜주세요.

F12를 눌러 개발자 도구를 켜주세요.

app.js를 찾아 들어가세요. 크롬은 sources 탭에, 파이어폭스는 debugger 탭에 있어요.

// ==UserScript==
// @name thingiverse dl
// @namespace http://tnraro.com/
// @version 0.1
// @author tnRaro
// @match https://www.thingiverse.com/thing:*/files
// @grant none
// ==/UserScript==
(function() {
! http://prod.danawa.com
prod.danawa.com##.main_ad_prodlist
! https://genshin.gamedot.org
genshin.gamedot.org###mapsContentEditorOption+*
! https://genshin.gamedot.org
genshin.gamedot.org##script+*
! https://*.stackexchange.com
// ==UserScript==
// @name koer2x
// @namespace https://gist.github.com/tnRaro/aa2a08e3e6c12a3107381aeda2696779/raw/koer2x.user.js
// @version 0.3
// @description try to take over the world!
// @author tnRaro
// @match http://www.koer.kr/*
// @match http://www.udec.kr/*
// @grant none
// ==/UserScript==
// ==UserScript==
// @name 국국원 보여줘
// @version 0.1
// @namespace https://gist.github.com/tnRaro/e6ee86bc9c0c091c92c6e181c0af76a1/raw/koreangokr.user.js
// @description 국립국어원이 가끔 흰 화면만 보여주는 문제 수정
// @author tnRaro
// @include https://www.korean.go.kr/*
// ==/UserScript==
window.onload = function() {
@tnraro
tnraro / denylist
Created June 23, 2020 04:41
uBlacklist 용 차단 사이트
*://namu.wiki/*
*://www.geeksforgeeks.org/*
*://www.w3schools.com/*
*://askdev.info/*
*://askdev.io/*
*://cnpnote.tistory.com/*
*://code-examples.net/*
*://coder.work/*
*://example-code.com/*
*://i-harness.com/*
// ==UserScript==
// @name ncmdap_off
// @version 0.1
// @namespace https://gist.github.com/tnRaro/c6d9dc3988d02a3597643434de0a9244/raw/ncmdap_off.user.js
// @description close the popup that naXer cafe manager delegate agreement
// @author tnRaro
// @include https://cafe.naver.com/ManagerDelegateAgreePopup.nhn*
// ==/UserScript==
window.close();
@tnraro
tnraro / area-polyfill.js
Last active July 12, 2021 15:08
determine the area of a polygon. using shoelace formula algorithm.
Math.area = Math.area || function(polygon){
const length = polygon.length;
let sum = 0;
for(let i = 0; i < length; i += 2){
sum += polygon[i ] * polygon[(i + 3) % length]
- polygon[i + 1] * polygon[(i + 2) % length];
}
@tnraro
tnraro / rsp-test.js
Last active May 9, 2016 08:21
rsp with unit test
const assert = (a, b) => {
if(a !== b){
throw `${a} is must equal: ${b}`
}
}
const rspTest = () => {
// when you draw 가위
assert(rsp("가위", "가위"), "tied");
assert(rsp("가위", "바위"), "lose");