Advertisement
Guest User

fili cc

a guest
May 25th, 2019
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.59 KB | None | 0 0
  1. // ==UserScript==
  2. // @name fili tv stream url by gamsteron
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description try to take over the world!
  6. // @author You
  7. // @match https://fili.cc/film/*
  8. // @match https://fili.cc/serial/*
  9. // @match https://gounlimited.to/*
  10. // @match https://vidoza.net/*
  11. // @match https://streamcherry.com/*
  12. // @match https://streamango.com/*
  13. // @run-at document-start
  14. // @grant unsafeWindow
  15. // ==/UserScript==
  16.  
  17. (function() {
  18. 'use strict';
  19.  
  20. var url = window.location.href;
  21. if (url.includes("fili.cc")) {
  22. return
  23. }
  24.  
  25. function Empty(x){
  26. return typeof(x) == 'undefined';
  27. }
  28.  
  29. function EmptyArray(x){
  30. return Empty(x) || x.length === 0;
  31. }
  32.  
  33. function EmptyString(x){
  34. return Empty(x) || x === "";
  35. }
  36.  
  37. function ExistElement(x){
  38. return !Empty(x) && x != null;
  39. }
  40.  
  41. function removeStyles(el) {
  42. el.removeAttribute('style');
  43.  
  44. if(el.childNodes.length > 0) {
  45. for(var child in el.childNodes) {
  46. /* filter element nodes only */
  47. if(el.childNodes[child].nodeType == 1) {
  48. removeStyles(el.childNodes[child]);
  49. }
  50. }
  51. }
  52. }
  53.  
  54. function ReplaceInnerHTML(tag, replacement){
  55. var x = document.getElementsByTagName(tag);
  56. for (var i = 0; i < x.length; i++) {
  57. var element = x[i];
  58. if (ExistElement(element)) {
  59. element.innerHTML = replacement;
  60. }
  61. }
  62. }
  63.  
  64. function copyText(text){
  65. var textarea = document.createElement('textarea');
  66. textarea.textContent = text;
  67. document.body.appendChild(textarea);
  68.  
  69. var selection = document.getSelection();
  70. var range = document.createRange();
  71. range.selectNode(textarea);
  72. selection.removeAllRanges();
  73. selection.addRange(range);
  74.  
  75. var copySuccess = document.execCommand('copy');
  76. selection.removeAllRanges();
  77.  
  78. document.body.removeChild(textarea);
  79.  
  80. if (copySuccess) {
  81. var successElement = document.createElement('h1');
  82. successElement.innerHTML = "video link copied to clipboard!";
  83. successElement.style.color = "red";
  84. successElement.style.textAlign = "center";
  85. document.body.appendChild(successElement);
  86. }
  87. }
  88.  
  89. (function GetVideoDownloadLink(){
  90. var intervalID;
  91. var VideoLink = "";
  92. var action = function(){
  93. var videoElements = document.getElementsByTagName("video");
  94. for (var i = 0; i < videoElements.length; i++) {
  95. var video = videoElements[i];
  96. if (ExistElement(video) && !EmptyString(video.src)) {
  97. if (VideoLink === ""){
  98. VideoLink = video.src;
  99. }
  100. removeStyles(document.body);
  101. ReplaceInnerHTML("body",
  102.  
  103. '<br><br><br><br><br><br>' +
  104.  
  105. '<center>' +
  106. '<a id="videoLinkA" style="color:red;" href="' + VideoLink + '">' +
  107. '<p id="textToCopy" style="font-size:1.5vw;color:white;">' + VideoLink + '</p>' +
  108. '</a>' +
  109. '</center>' +
  110.  
  111. '<style>' +
  112. 'a#videoLinkA:link, a#videoLinkA:visited {' +
  113. 'background-color: #f44336;' +
  114. 'color: white;' +
  115. 'padding: 14px 25px;' +
  116. 'text-align: center;' +
  117. 'text-decoration: none;' +
  118. 'display: inline-block;' +
  119. '}' +
  120. 'a#videoLinkA:hover, a#videoLinkA:active {' +
  121. 'background-color: red;' +
  122. '}' +
  123. '</style>'
  124. );
  125. copyText(document.getElementById("textToCopy").innerHTML);
  126. clearInterval(intervalID);
  127. break;
  128. }
  129. }
  130. };
  131. intervalID = setInterval(action, 50);
  132. })()
  133. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement