MakeGeo
@@ -2,10 +2,40 @@
* @title MakeGeo
* @description remember GeoCities
* @include http://*
- * @require http://divshot.github.io/geo-bootstrap/swatch/bootstrap.min.css
- * @contributor kei-s http://let.hatelabo.jp/kei-s/let/gYC-x7nwwf3nFQ (Fork of)
- * @author noromanba http://let.hatelabo.jp/noromanba/let/gYC-y76Mv7PbCQ
- * @license MIT License http://opensource.org/licenses/MIT
+ * @include https://*
+ * @contributor kei-s http://let.hatelabo.jp/kei-s/let/gYC-x7nwwf3nFQ (Fork of)
+ * @author noromanba http://let.hatelabo.jp/noromanba/let/gYC-y76Mv7PbCQ
+ * @license MIT License http://opensource.org/licenses/MIT
*/
-// c.f. http://divshot.github.io/geo-bootstrap/
+// c.f.
+// https://github.com/divshot/geo-bootstrap/
+// https://divshot.github.io/geo-bootstrap/
+
+// e.g.
+// https://hacks.mozilla.org/
+
+(() => {
+ 'use strict';
+
+ // TODO merge into js loader
+ // http://let.hatelabo.jp/noromanba/let/hJmehqPZh6wf
+ const require = (sources) => {
+ const wall = document.head || document.body || document.documentElement;
+
+ Array.from(sources, (src => {
+ wall.appendChild(Object.assign(document.createElement('link'), {
+ rel: 'stylesheet',
+ href: src,
+ }));
+ }));
+ };
+
+ // https://github.com/divshot/geo-bootstrap/tree/master/swatch
+ // https://divshot.github.io/geo-bootstrap/swatch/bootstrap.min.css
+ require([
+ 'https://cdn.rawgit.com/divshot/geo-bootstrap/master/swatch/bootstrap.min.css',
+ 'https://cdn.rawgit.com/divshot/geo-bootstrap/master/swatch/bootstrap-responsive.min.css',
+ ]);
+})();
+
/*
* @title MakeGeo
* @description remember GeoCities
* @include http://*
* @include https://*
* @contributor kei-s http://let.hatelabo.jp/kei-s/let/gYC-x7nwwf3nFQ (Fork of)
* @author noromanba http://let.hatelabo.jp/noromanba/let/gYC-y76Mv7PbCQ
* @license MIT License http://opensource.org/licenses/MIT
*/
// c.f.
// https://github.com/divshot/geo-bootstrap/
// https://divshot.github.io/geo-bootstrap/
// e.g.
// https://hacks.mozilla.org/
(() => {
'use strict';
// TODO merge into js loader
// http://let.hatelabo.jp/noromanba/let/hJmehqPZh6wf
const require = (sources) => {
const wall = document.head || document.body || document.documentElement;
Array.from(sources, (src => {
wall.appendChild(Object.assign(document.createElement('link'), {
rel: 'stylesheet',
href: src,
}));
}));
};
// https://github.com/divshot/geo-bootstrap/tree/master/swatch
// https://divshot.github.io/geo-bootstrap/swatch/bootstrap.min.css
require([
'https://cdn.rawgit.com/divshot/geo-bootstrap/master/swatch/bootstrap.min.css',
'https://cdn.rawgit.com/divshot/geo-bootstrap/master/swatch/bootstrap-responsive.min.css',
]);
})();
- Permalink
- このページへの個別リンクです。
- RAW
- 書かれたコードへの直接のリンクです。
- Packed
- 文字列が圧縮された書かれたコードへのリンクです。
- Userscript
- Greasemonkey 等で利用する場合の .user.js へのリンクです。
- Loader
- @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
- Metadata
- コード中にコメントで @xxx と書かれたメタデータの JSON です。