Skip to content

Instantly share code, notes, and snippets.

MrMamen

Block or report user

Report or block MrMamen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View flashScrubberNRK
flashScrubber: function() {
var player = document.getElementById("flashPlayer");
if (player) {
var progress = player["JSgetCurrentPosition"];
var duration = player["JSgetDuration"];
if (progress && duration){
var newProgress = parseFloat(parseFloat(progress()/duration()*100).toFixed(2));
if (newProgress > 0) {
this.progress = newProgress;
}
View item-parser-sample.js
ItemParser.parse = function parse(callback) {
var item;
var type = document.querySelector("meta[name=type]").getAttribute("content") == 'episode' ? 'show' : 'movie';
var mainTitle = document.querySelector("meta[name=title]").getAttribute("content");
if (type === 'show') {
var uri = document.querySelector("li.episode-item.active a").getAttribute("href");
if (uri.split("/")[4].substring(0, 6) !== "sesong") {
return;
}
You can’t perform that action at this time.