Last active
June 13, 2017 09:57
-
-
Save cha0s/a91671b0dd70fc9cfd80 to your computer and use it in GitHub Desktop.
Video containers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Video containers | |
// @namespace gm.cha0s | |
// @description Resize video containers | |
// @include http://www.promptfile.com/* | |
// @include http://www.movshare.net/video/* | |
// @include http://movpod.in/* | |
// @include http://vodlocker.com/* | |
// @include http://bestreams.net/* | |
// @include http://www.nowvideo.sx/video/* | |
// @include http://streamin.to/* | |
// @include http://vidzi.tv/* | |
// @include http://letwatch.us/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
var styleNode = window.document.createElement('div'); | |
var style = '<style>'; | |
if (window.location.href.match('promptfile')) { | |
style += '#view_cont #player { position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; }'; | |
style += '#view_cont #player #player_api { width: 100% !important; height: 100% !important; }'; | |
style += '#footer { display: none; }'; | |
} | |
else if (window.location.href.match('movshare')) { | |
style += 'body > nav { display: none; }'; | |
style += 'body > .container { margin: 0; max-width: none; width: 100%; position: static; }'; | |
style += '#mainContent { margin: 0; }'; | |
style += '#videoPlayer { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }'; | |
} | |
else if (window.location.href.match('movpod')) { | |
style += '.c1-box, .pic-big, .pic-big td > div { position: static !important; }'; | |
style += '#player_code { position: static; }'; | |
style += '#flvplayer_wrapper { left: 0; position: absolute !important; text-align: center; top: 0; width: 100% !important; height: 100% !important; }'; | |
style += '#footer, #footer-space, .c1-l-t, .c1-l-b, .c1-r-t, .c1-r-b, .c1-l, .c1-r, .c1-t, .c1-b, #footer_space { display: none; }'; | |
style += 'body { overflow: hidden; }'; | |
} | |
else if (window.location.href.match('vodlocker')) { | |
style += '.c1-box, .pic-big, .content-1col-nobox td > div { position: static !important; }'; | |
style += '#player_code { position: static; }'; | |
style += '#flvplayer_wrapper { left: 0; position: absolute !important; text-align: center; top: 0; width: 100% !important; height: 100% !important; }'; | |
style += '#footer, #footer-space, .c1-l-t, .c1-l-b, .c1-r-t, .c1-r-b, .c1-l, .c1-r, .c1-t, .c1-b, #footer_space { display: none; }'; | |
style += 'body { overflow: hidden; }'; | |
} | |
else if (window.location.href.match('bestreams')) { | |
style += '#main td > div { position: static !important; }'; | |
style += '#player_code { position: static; }'; | |
style += '#flvplayer_wrapper { left: 0; position: absolute !important; text-align: center; top: 0; width: 100% !important; height: 100% !important; }'; | |
style += '#footer, #footer-space, .c1-l-t, .c1-l-b, .c1-r-t, .c1-r-b, .c1-l, .c1-r, .c1-t, .c1-b, #footer_space { display: none; }'; | |
style += 'body { overflow: hidden; }'; | |
} | |
else if (window.location.href.match('nowvideo')) { | |
style += '#videoPlayer { height: 100%; left: 0; position: absolute; top: 0; width: 100%; z-index: 10000; }'; | |
} | |
else if (window.location.href.match('streamin.to')) { | |
style += '#vplayer { height: 100% !important; width: 100% !important; left: 0; top: 0; position: absolute !important; }'; | |
style += '#vplayer_wrapper { position: static !important; }'; | |
style += 'h2 { display: none; }'; | |
style += '.cont_mdl td > div { height: auto !important; position: static !important; width: auto !important; }'; | |
style += '#main { height: auto !important; margin: 0 !important; width: auto !important; }'; | |
style += 'body { overflow: hidden; }'; | |
style += '#onoffLight { display: none; }'; | |
window.scrollTo(0, 0); | |
} | |
else if (window.location.href.match('vidzi.tv')) { | |
style += '#vplayer { height: 100% !important; width: 100% !important; left: 0; top: 0; position: absolute !important; }'; | |
style += '#vplayer_wrapper, #player_code, .video-player-inner { position: static !important; }'; | |
} | |
else if (window.location.href.match('letwatch.us')) { | |
style += '#vplayer { height: 100% !important; width: 100% !important; left: 0; top: 0; position: absolute !important; z-index: 10000; }'; | |
style += '#vplayer_wrapper, #player_code, .video-player-inner, .middile-section, #videoplace td > div { position: static !important; }'; | |
style += '.top-section, #footer { display: none; }'; | |
} | |
styleNode.innerHTML = style + '</style>'; | |
window.document.body.appendChild(styleNode); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment