Guest User

Untitled

a guest
Feb 27th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. $yt_vid: //script[contains(text(),"youtube.com/watch?v=")]
  2. @match("(?:youtube.[a-z]+\/[a-z\\?\\&]*v[\/|=]|youtu.be\/)([0-9a-zA-Z-_]+)"): $yt_vid
  3. @replace("^","https://"): $yt_vid
  4. @set_attr(src,$yt_vid/text()): $yt_vid
  5. <iframe>: $yt_vid
  6. @prepend_to($body)
  7.  
  8.  
  9.  
  10.  
  11. $getvid: //script[contains(text(),"VideoPlayer")]
  12. @match("https:\/\/.*mp4"): $getvid
  13. @append_to(//div[@data-id="temp-gal"]): $getvid
  14. @set_attr(src, ./text()): $getvid
  15. @set_attr(type, "video/mp4"): $getvid
  16. <video>: $getvid
  17.  
  18.  
  19.  
  20.  
  21. @debug: //iframe[starts-with(@src,"/_post/embed.php")]
  22. @inline: //iframe[contains(@src,"elpatagonico.com/services/embed.php") or starts-with(@src,"/_post/embed.php")]
  23. $inlinevid
  24. @match("https:\/\/.*mp4"): $inlinevid
  25. @set_attr(src, ./text()): $inlinevid
  26. @set_attr(type, "video/mp4"): $inlinevid
  27. <video>: $inlinevid
Advertisement
Add Comment
Please, Sign In to add comment