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
var LINK_TYPE_SD = 'sd_src_no_ratelimit'; | |
var LINK_TYPE_HD = 'hd_src_no_ratelimit'; | |
(function downloadVideo(type) { | |
function getMyObject(doc) { | |
var scriptsCollection = doc.getElementsByTagName("script"); | |
var scripts = []; | |
var regExp = /video_ids/i; | |
for (var i = scriptsCollection.length - 1; i >= 0; i--) { | |
var script = scriptsCollection[i].innerHTML; |
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
var XHRHelper = (function(){ | |
function initParams(params) { | |
if (!params.type) { | |
params.type = "GET"; | |
}; | |
} | |
return { | |
request: function(params, async = true) { | |
var xhr = new XMLHttpRequest(); |
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
<html> | |
<body> | |
<p>Hello, world!</p> | |
</body> | |
</html> |
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
<html> | |
<head> | |
<title></title> | |
<script type="text/javascript" src="https://rawgit.com/aneelkkhatri/2e197eaddeb2285cbf958374354ba2d1/raw/XHRHelper.js"></script> | |
<script type="text/javascript"> | |
function getExtensionToMimeMap(callback) { | |
const EXTENSION_TO_MIME_TYPE = {}; | |
XHRHelper.request({ | |
url: 'https://cdn.rawgit.com/jshttp/mime-db/master/db.json', | |
success: function(xhr) { |
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
function setupProperty(obj, prop, setcb) { | |
Object.defineProperty(obj, prop, { | |
get: function() { | |
return obj['__'+prop]; | |
}, | |
set: function(v) { | |
console.log(prop); | |
obj['__'+prop] = v; | |
if (setcb) setcb(v); |
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
function beautify(o, dl) { | |
function beautifyStringify(b, t) { | |
if (b === null || typeof b != "object") { | |
return JSON.stringify(b); | |
} | |
var sp = ""; | |
for (var i = 0; i < t; ++i) sp += dl; | |
var sp1 = sp + dl; | |
var res = ""; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
let content = "ANEEL KUMAR"; | |
let movingEls = content.split('').map(c => { |