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 = {};
! 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

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() {
@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];
}
// ==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 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();
// ==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/*
@tnraro
tnraro / meow.js
Last active September 15, 2017 01:13
new ncc
(function(){
'use strict';
let script = document.createElement('script');
script.type = "text/javascript;version=1.7";
script.src = "https://rawgit.com/tnRaro/a74dad40c84febe59367/raw/ncc.js";
document.body.appendChild(script);
script.onload = function(e){
api.overwriteCss();