himado To Flash Script

ひまわり動画において、不具合の多いHTML5から自動でFLASHプレイヤに移動するスクリプトです。

Versione datata 10/04/2017. Vedi la nuova versione l'ultima versione.

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name        himado To Flash Script
// @namespace   Scottie400
// @include     http://himado.in/*
// @version     1.04
// @grant       none
// @description ひまわり動画において、不具合の多いHTML5から自動でFLASHプレイヤに移動するスクリプトです。
/* ***************************************************************************************************************
 ◆ひまわり動画において、不具合の多いHTML5から自動でFLASHプレイヤに移動するスクリプトです。
  運営さんの不具合対応が終わるまでの繋ぎなので、簡易的なものになります。

 ◆Greasemonkey(firefox)、Tampermonkey(Chorome,Opera)というアドオンが必要です。
  導入方法はこちらを要参照 ⇒ http://dic.nicovideo.jp/a/greasemonkey
  ユーザースクリプトとは? ⇒ https://greasyfork.org/

 ※Last Update : 2017-04-10
 ※ご使用は自己責任でお願いします。責任を負いかねます。
 ※推奨環境:Win7が普通に動く程度を満たすスペック・ちゃんと更新しているブラウザ
*************************************************************************************************************** */
// ==/UserScript==


//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// 編集不要範囲 ここから
var LinkYTFC2 = document.getElementById('top_movie_url_link').innerHTML;
var isExistYT  = LinkYTFC2.indexOf("youtube.com")!== -1;
var isExistFC2 = LinkYTFC2.indexOf("fc2.com")!== -1;

(function(){
    if(document.URL.match('&flashplayer')) {
      return false;
   } else if(isExistYT === true || isExistFC2 === true) {
      return false;
   } else if(document.URL.match('/37')) {
      window.location.replace("http://" + $(location).attr('host') + "?id=" + $(location).attr('pathname').replace(/\//g,'') + '&flashplayer');
   } else if(document.URL.match('/?id=37')) {
      window.location.replace(document.URL + '&flashplayer');
   } else if(document.URL.match('/38')) {
      window.location.replace("http://" + $(location).attr('host') + "?id=" + $(location).attr('pathname').replace(/\//g,'') + '&flashplayer');
   } else if(document.URL.match('/?id=38')) {
      window.location.replace(document.URL + '&flashplayer');
   }
})();
// 編集不要範囲 ここまで
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////