Animeflv.net - Fix

remove ads social, etc, just pure player style. yaelmania script

目前为 2017-06-18 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name Animeflv.net - Fix
  3. // @namespace Animeflv.net, Remove ads,social,and any shit i dont like :D
  4. // @description remove ads social, etc, just pure player style. yaelmania script
  5. // @run-at document-end
  6. // @require https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js
  7. // @include http*://animeflv.net/*
  8. // @version 1.7
  9. // @dateLast 2017.06.18
  10. // @grant unsafeWindow
  11. // @grant GM_addStyle
  12. // ==/UserScript==
  13.  
  14.  
  15. var $av = jQuery.noConflict();
  16.  
  17.  
  18. function GoNext() {
  19. //Quita la publicidad molesta así como también redes sociales, comentarios y todo aquello que a mi parecer no van con la estética y funcionabilidad de la página.
  20. //Recomiendo usar: NoScript + BlockSite + ABP
  21. //Todos son complementos para Firefox no es necesario pero con esto tu eliminaras y blockearas las molesta publicidad y todo lo que se te ocurra.
  22. var verifica1 = top.window.location.href;
  23. var verifica2 = window.location.href;
  24. var Cheker1 = verifica1.replace(/.+\/ver\.+/gi,'ver');
  25. var Cheker2 = verifica2.replace(/.+\/ver\.+/gi,'ver');
  26. var Cheker3 = verifica1.replace(/.+\/anime\/.+/gi,'anime');
  27. if(Cheker1 == Cheker2 && Cheker3 !== 'anime'){
  28. $av('.fb-comments,#taboola-right-rail-thumbnails').each(function() {
  29. $av( this ).parent().remove();
  30. });
  31. $av('.Button.Sm.fa-download').each(function() {
  32. var linker = $av(this).attr('href').replace(/.+s\=/g,'');
  33. $av(this).attr('href',unescape(linker));
  34. });
  35. $av('.Sect.Comments,[id*="ScriptRoot"]').each(function() {
  36. $av( this ).parent().parent().remove();
  37. });
  38. // The next Time out just tigger me favorite streaming sites if don't like just delete the next line "setTimeout(selecx, 500);"
  39. setTimeout(selecx, 500);
  40. }
  41. $av('iframe[src*="animeflv.net/aflv.php"],iframe[src*="animeflv.net/bloque"],.Dvr300,ul.ListPostOpts,.Sect.Comments,#footer, .ads-always-down, .publi_head, .ads_der, #b-close-ads, #ads-dw, [style*="2147483647"],#videoLoading, .jw-overlays.jw-reset, .jw-captions.jw-captions-enabled.jw-reset,.ultimos_epis .not [rel="nofollow"]').each(function() {
  42. $av( this ).remove();
  43. });
  44. $av('body').each(function() {
  45. $av( this ).append(unescape('%3Cstyle id%3D%22especialme%22 type%3D%22text%2Fcss%22%3E %23footer%2C .ads-always-down%2C .publi_head%2C .ads_der%2C %23b-close-ads%2C %23ads-dw%2C %5Bstyle%2A%3D%222147483647%22%5D%2C%23videoLoading%2C .jw-overlays.jw-reset%2C .jw-captions.jw-captions-enabled.jw-reset%2C.ultimos_epis .not %5Brel%3D%22nofollow%22%5D%7Bposition%3Aabsolute%21important%3Btop%3A-999px%21important%3B left%3A-999px%21important%3B max-width%3A 0.01em%21important%3B max-height%3A 0.01em%21important%3B width%3A0.01em%21important%3B height%3A0.01em%21important%3B color%3Atransparent%21important%3B font-size%3A0.01em%21important%3B font-size-adjust%3A0.01%21important%3B background%3Anone%21important%3B background-color%3Atransparent%21important%3B background-image%3Anone%21important%3B background-repeat%3Ano-repeat%21important%3Bz-index%3A -2147483647%21important%3B%7Danime_episodios%7Bheight%3A 376px%21important%3Bwidth%3A 760px%21important%3Boverflow-x%3A hidden%21important%3B%7Da%3Avisited %7Bborder%3A 4px solid %23A21768%21important%3B%7D.not a%2C a figure img%7Bborder%3A 3px solid %23fff%21important%3Bposition%3A absolute%21important%3Bwidth%3A 212px%21important%3Bborder-radius%3A 3px%21important%3B%7D.not a%3Avisited%2Ca%3Avisited figure img%7Bborder%3A 3px solid %23A21768%21important%3Bheight%3A 106px%21important%3Bposition%3A absolute%21important%3Bwidth%3A 212px%21important%3B%7D.fa-play-circle.Next figure img%7Bborder%3A 0px solid transparent%21important%3B%7D.adbl%2C%23adbl%2C.ShrCnB.fa-share-alt%7Bvisibility%3A hidden%21important%3Bdisplay%3A none%21important%3B%7D%23contenedor%7Bdisplay%3A block%21important%3B%7D.ListEpisodes %3E li %3E a%3Avisited %7Bcolor%3A red%21important%3B%7D.ListEpisodios a%3Avisited%7Bcolor%3A red%21important%3B%7D.ListCaps %3E li %3E a%3Avisited %7Bcolor%3A red%21important%3B%7D.ListCaps a%3Avisited%7Bcolor%3A red%21important%3B%7D %3C%2Fstyle%3E'));
  46. });
  47. }
  48. function selecx (){
  49. var Hyperion = $av('ul[role="tablist"] li[title="Hyperion"]').attr('data-id');
  50. var Okru = $av('ul[role="tablist"] li[title="Okru"]').attr('data-id');
  51. var MP4Upload = $av('ul[role="tablist"] li[title="MP4Upload"]').attr('data-id');
  52. if(typeof Hyperion != 'undefined'){
  53. $av('ul[role="tablist"] li[title="Hyperion"]').trigger('click');
  54. return false;
  55. }
  56. if(typeof MP4Upload != 'undefined'){
  57. $av('ul[role="tablist"] li[title="MP4Upload"]').trigger('click');
  58. return false;
  59. }
  60. if(typeof Okru != 'undefined'){
  61. $av('ul[role="tablist"] li[title="Okru"]').trigger('click');
  62. return false;
  63. }
  64. }
  65. setTimeout(GoNext, 1000);