Skip to content

Instantly share code, notes, and snippets.

View saschanaz's full-sized avatar
🏢
Working from office

Kagami Sascha Rosylight saschanaz

🏢
Working from office
View GitHub Profile
@foriequal0
foriequal0 / naver-webtoon-most-recent.user.js
Last active July 10, 2021 15:48
네이버 웹툰 최신회차 바로가기
// ==UserScript==
// @name 네이버 웹툰 최신회차 바로가기 버튼
// @namespace gist.github.com/foreiqual0
// @include https://comic.naver.com/webtoon/list.nhn?*
// @include https://comic.naver.com/webtoon/detail.nhn?*
// @include https://comic.naver.com/bestChallenge/list.nhn?*
// @include https://comic.naver.com/bestChallenge/detail.nhn?*
// @include https://comic.naver.com/challenge/list.nhn?*
// @include https://comic.naver.com/challenge/detail.nhn?*
// @include https://comic.naver.com/webtoon/weekday.nhn
@marcoscaceres
marcoscaceres / implementing WebIDL in js.markdown
Last active March 8, 2021 09:02
Implementing a JS-based WebIDL binding in Gecko

DEPRECATED

I think most of this stuff is now depracted. Looks like C++ is the only realistic way to go for implementing WebIDL bindings in Gecko. That's unfortuante, because if you are a JS dev, learning C++ can be challenging (though worth while! it's a fun language.)

Implementing a JS-based WebIDL binding in Gecko

This provides a gentle introduction to implementing a WebIDL interface in JavaScript. Once you are done, you can refer to the MDN Wiki, to add more advanced things.

Before you start

We would encourage you to first build a simple prototype version of your API in JS. Going through the process of creating a WebIDL is fairly straight forward, but if you screw it up you will need to recreate a whole bunch of files, etc. As such, it's much easier to make sure you have your API in a good state before attempting the steps below.