github css
by
noromanba
2013-10-30 [2013/10/30 10:56:39]
recover GitHub css (UserScript)
@@ -5,12 +5,11 @@
* @license MIT License http://opensource.org/licenses/MIT
* @author noromanba http://flavors.me/noromanba
* @javascript_url
- * @require
*/
-
(function () {
var addCSS = (function () {
- var parent = document.head || document.documentElement || document.body;
+ var parent = document.head || document.documentElement || document.body;
+
return function (url) {
var link = document.createElement('link');
link.rel = 'stylesheet';
@@ -23,4 +22,4 @@
var css = 'https://github.global.ssl.fastly.net/assets/github.css';
addCSS(css);
-})();
+})();
/*
* @title github css
* @description recover GitHub css (UserScript)
* @include https://github.com/*
* @license MIT License http://opensource.org/licenses/MIT
* @author noromanba http://flavors.me/noromanba
* @javascript_url
*/
(function () {
var addCSS = (function () {
var parent = document.head || document.documentElement || document.body;
return function (url) {
var link = document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = url;
parent.appendChild(link);
};
})();
var css = 'https://github.global.ssl.fastly.net/assets/github.css';
addCSS(css);
})();
- Permalink
- このページへの個別リンクです。
- RAW
- 書かれたコードへの直接のリンクです。
- Packed
- 文字列が圧縮された書かれたコードへのリンクです。
- Userscript
- Greasemonkey 等で利用する場合の .user.js へのリンクです。
- Loader
- @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
- Metadata
- コード中にコメントで @xxx と書かれたメタデータの JSON です。