B/W
@@ -1,6 +1,17 @@
/*
- * @title モノクロ化
- * @description ページをモノクロ化します
+ * @title B/W
+ * @description grayscale filtering
+ * @contributor bouze_me http://let.hatelabo.jp/bouze_me/let/hLHUmLXtiqQm (Fork of)
+ * @orig-license Unknown (as-is)
+ * @contributor noromanba
+ * @license
*/
-javascript:(function(){document.getElementsByTagName("html")[0].setAttribute("style","-webkit-filter:grayscale(1) !important;");})();void(0);
+// c.f.
+// https://developer.mozilla.org/en-US/docs/Web/CSS/filter
+// https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html#FilterProperty
+function () {
+ var style = document.documentElement.style;
+ style.webkitFilter = 'grayscale(1)';
+ style.filter = 'grayscale(1)'; // NYI
+})();
/*
* @title B/W
* @description grayscale filtering
* @contributor bouze_me http://let.hatelabo.jp/bouze_me/let/hLHUmLXtiqQm (Fork of)
* @orig-license Unknown (as-is)
* @contributor noromanba
* @license
*/
// c.f.
// https://developer.mozilla.org/en-US/docs/Web/CSS/filter
// https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html#FilterProperty
function () {
var style = document.documentElement.style;
style.webkitFilter = 'grayscale(1)';
style.filter = 'grayscale(1)'; // NYI
})();
- Permalink
- このページへの個別リンクです。
- RAW
- 書かれたコードへの直接のリンクです。
- Packed
- 文字列が圧縮された書かれたコードへのリンクです。
- Userscript
- Greasemonkey 等で利用する場合の .user.js へのリンクです。
- Loader
- @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
- Metadata
- コード中にコメントで @xxx と書かれたメタデータの JSON です。