This repository was archived by the owner on Nov 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcode.user.js
More file actions
25 lines (24 loc) · 1.67 KB
/
Copy pathcode.user.js
File metadata and controls
25 lines (24 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// ==UserScript==
// @name IMStreamDB
// @namespace http://imdb.com/
// @version 2.5.1
// @description Stream your favorite movies directly in IMDB
// @author ZombieTaco
// @include *://www.imdb.com/title/*
// @homepageURL https://github.com/ZombieTaco/IMStreamDB
// @supportURL https://github.com/ZombieTaco/IMStreamDB/issues
// @grant none
// ==/UserScript==
var api_key = "193447211";
$(document).ready(function() {
'use strict';
var currentTT = document.head.querySelector("[property=pageId]").content;
$(".subtext").append("<style>#streamlink{height:15px;float:right;cursor:pointer;color:#e4bb24;text-decoration:none;}#streamlink:hover{text-shadow: 0px 0px 6px #846e26;}</style><a id='streamlink' onclick='stream()'>STREAM</a>");
window.stream = function(){
$(".slate_wrapper").html("<div id='loaderwhile'><style>.loaderstream{border:5px solid #767676;border-radius:50%;border-top:5px solid #e4bb24;width:20px;height:20px;-webkit-animation:spin .5s linear infinite;animation:spin .5s linear infinite;margin:15% auto 0}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0)}100%{-webkit-transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}</style><div class='loaderstream'></div></div><iframe id='streamframe' src='https://videospider.in/getvideo?key="+api_key+"&video_id="+currentTT+"' width='667' height='268' frameborder='0' style='display: none;' allowfullscreen='true' scrolling='no'></iframe>");
document.getElementById('streamframe').onload = function() {
$('#loaderwhile').remove();
document.getElementById("streamframe").style.display="";
};
};
});