Greasy Fork 支持简体中文。

himado To Flash Script

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

目前為 2017-04-10 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name himado To Flash Script
  3. // @namespace Scottie400
  4. // @include http://himado.in/*
  5. // @version 1.04
  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-04-10
  17. ※ご使用は自己責任でお願いします。責任を負いかねます。
  18. ※推奨環境:Win7が普通に動く程度を満たすスペック・ちゃんと更新しているブラウザ
  19. *************************************************************************************************************** */
  20. // ==/UserScript==
  21.  
  22.  
  23. //////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  24. // 編集不要範囲 ここから
  25. var LinkYTFC2 = document.getElementById('top_movie_url_link').innerHTML;
  26. var isExistYT = LinkYTFC2.indexOf("youtube.com")!== -1;
  27. var isExistFC2 = LinkYTFC2.indexOf("fc2.com")!== -1;
  28.  
  29. (function(){
  30. if(document.URL.match('&flashplayer')) {
  31. return false;
  32. } else if(isExistYT === true || isExistFC2 === true) {
  33. return false;
  34. } else if(document.URL.match('/37')) {
  35. window.location.replace("http://" + $(location).attr('host') + "?id=" + $(location).attr('pathname').replace(/\//g,'') + '&flashplayer');
  36. } else if(document.URL.match('/?id=37')) {
  37. window.location.replace(document.URL + '&flashplayer');
  38. } else if(document.URL.match('/38')) {
  39. window.location.replace("http://" + $(location).attr('host') + "?id=" + $(location).attr('pathname').replace(/\//g,'') + '&flashplayer');
  40. } else if(document.URL.match('/?id=38')) {
  41. window.location.replace(document.URL + '&flashplayer');
  42. }
  43. })();
  44. // 編集不要範囲 ここまで
  45. //////////////////////////////////////////////////////////////////////////////////////////////////////////////////