/*
* @title nico<video> ±info
* @description switch landscape/portrait-mode on flash-free Nicovideo player
* @include http://sp.nicovideo.jp/watch/*
* @javascript_url
* @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 + location.pathname)) return;
// <body class="hdNoFixed watch isLogin isAndroid fixed landscape tablet">
document.body.classList.toggle('landscape'); // portrait<->landscape
// TODO scalable window sticky
// e.g. <video style="min-width: 100%; min-width: 100%;">
})();