mo-dal-iy
by
noromanba
2015-12-06 [2015/12/06 01:08:43]
hidden "darui" modal when not-login on facebook.com
-
/*
* @title mo-dal-iy
* @description hidden "darui" modal when not-login on facebook.com
* @include *://www.facebook.com/*
* @license MIT License http://opensource.org/licenses/MIT
* @javascript_url
*/
// ready to use @run-at document-start
// e.g.
// https://www.facebook.com/facebook
(() => {
if (!/^www\.facebook\.com/.test(location.hostname) ||
!location.pathname.slice(1)) {
return;
}
// TBD replace closure to let
var addStyle = (() => {
var parent = document.head || document.body || document.documentElement;
var style = document.createElement('style');
style.type = 'text/css';
parent.appendChild(style);
return (css) => {
style.appendChild(document.createTextNode(css + '\n'));
};
})();
addStyle('#dialog_0, #dialog_1 { display: none; }');
})();
-
- Permalink
- このページへの個別リンクです。
- RAW
- 書かれたコードへの直接のリンクです。
- Packed
- 文字列が圧縮された書かれたコードへのリンクです。
- Userscript
- Greasemonkey 等で利用する場合の .user.js へのリンクです。
- Loader
- @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
- Metadata
- コード中にコメントで @xxx と書かれたメタデータの JSON です。