This file contains 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 AntiAntiAdBlockerUStream | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1.1 | |
// @description anti anti ad block on ustream.to | |
// @author krysty | |
// @grant none | |
// @include https://beef1999.blogspot.com/* | |
// @run-at document-start | |
// @updateURL https://gist.github.com/yokrysty/4e2205c6fd48ef89ff3f9fd6bad4a330/raw/cbe2b521e775440c663e425641b486cf5172c457/AntiAntiAdBlockerUStream.user.js |
This file contains 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 AntiAntiAdBlockProTvPlusPlayer | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2 | |
// @description anti anti ad block in protv plus player | |
// @author krysty | |
// @grant none | |
// @include https://protvplus.ro/* | |
// @include https://media.cms.protvplus.ro/* | |
// @include https://imasdk.googleapis.com/js/core/bridge*.html |
This file contains 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
// bootstrap script | |
(function (window) { | |
function findModuleKeyByExports(modules, predicateFunc) { | |
return Object.keys(modules).find(k => predicateFunc(modules[k].exports)); | |
} | |
const id = window['_t'] = (new Date()).getTime(); | |
window.webpackJsonp( | |
[id], | |
{ | |
0: function(module, exports, require) { |
This file contains 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
import hmac | |
import hashlib | |
def gen_cid(cnp): | |
return '40' + str(int(hmac.new( | |
hashlib.sha256('CID'.encode()).digest(), | |
cnp.encode(), | |
hashlib.sha256 | |
).hexdigest()[:16], 16))[:-2] |