Force user-scalable=yes
by
mayuki
2011-10-15 [2011/10/15 16:25:50]
user-scalable=noになっているページを強制的にuser-scalable=yesにします
/*
* @title Force user-scalable=yes
* @description user-scalable=noになっているページを強制的にuser-scalable=yesにします
* @include http://*
* @license MIT License
* @require
*/
(function () {
var metaE = document.querySelector('meta[name=viewport]');
metaE.content = metaE.content.replace(/user-scalable=[^,]+/i, 'user-scalable=yes');
})();
- Permalink
- このページへの個別リンクです。
- RAW
- 書かれたコードへの直接のリンクです。
- Packed
- 文字列が圧縮された書かれたコードへのリンクです。
- Userscript
- Greasemonkey 等で利用する場合の .user.js へのリンクです。
- Loader
- @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
- Metadata
- コード中にコメントで @xxx と書かれたメタデータの JSON です。