Greasy Fork 支持简体中文。

himado To Flash Script

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

目前為 2017-02-18 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name himado To Flash Script
  3. // @namespace Scottie400
  4. // @include http://himado.in/*
  5. // @version 1.00
  6. // @grant none
  7. // @description ひまわり動画において、不具合の多いHTML5から自動でFLASHプレイヤに移動するスクリプトです。
  8. /* ***************************************************************************************************************
  9. ◆ひまわり動画において、不具合の多いHTML5から自動でFLASHプレイヤに移動するスクリプトです。
  10.  運営さんの不具合対応が終わるまでの繋ぎなので、簡易的なものになります。
  11.  
  12. ◆Greasemonkey(firefox)、Tampermonkey(Chorome,Opera)というアドオンが必要です。
  13.  導入方法はこちらを要参照 ⇒ http://dic.nicovideo.jp/a/greasemonkey
  14.  ユーザースクリプトとは? ⇒ https://greasyfork.org/
  15.  
  16. ※Last Update : 2017-02-18
  17. ※ご使用は自己責任でお願いします。責任を負いかねます。
  18. ※推奨環境:Win7が普通に動く程度を満たすスペック・ちゃんと更新しているブラウザ
  19. *************************************************************************************************************** */
  20. // ==/UserScript==
  21.  
  22.  
  23. //////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  24. // 編集不要範囲 ここから
  25. //var Links = document.getElementsById('top_movie_url_link').innerHTML;
  26. //alert("OK");
  27. //var isExistFC2L = Links[0].indexOf("fc2.com")!== -1;
  28.  
  29. (function(){
  30. if(document.URL.match('&flashplayer')) {
  31. return false;
  32. } else if(document.URL.match('/37')) {
  33. location.href= "http://" + $(location).attr('host') + "?id=" + $(location).attr('pathname').replace(/\//g,'') + '&flashplayer';
  34. } else if(document.URL.match('/?id=37')) {
  35. location.href= document.URL + '&flashplayer';
  36. }
  37. })();
  38. // 編集不要範囲 ここまで
  39. //////////////////////////////////////////////////////////////////////////////////////////////////////////////////