/*
* @title nico<video> portrait<->landscape
* @description switch landscape/portrait-mode on flash-free Nicovideo player
* @include http://sp.nicovideo.jp/watch/*
* @license MIT License http://opensource.org/licenses/MIT
*/
// require
// http://let.hatelabo.jp/noromanba/let/hJmegZnrvMd1
(function () {
if (!/^sp\.nicovideo\.jp\/watch\//.test(location.hostname)) return;
// <body class="hdNoFixed watch isLogin isAndroid fixed landscape tablet">
document.body.style.classList.toggle('landscape');
// TODO scalable window sticky
// e.g. <video style"min-width: 100%; maxwidth: 100%">
})();