Skip to content

Instantly share code, notes, and snippets.

@MikeGrace
Created December 4, 2010 22:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MikeGrace/728558 to your computer and use it in GitHub Desktop.
Save MikeGrace/728558 to your computer and use it in GitHub Desktop.
GetGlue and OneTrueFan extension conflict resolver
ruleset a60x459 {
meta {
name "getglue-onetruefan-conflict-resolver"
description <<
getglue-onetruefan-conflict-resolver
>>
author "Mike Grace"
logging on
}
dispatch {
domain ".*"
}
rule resolve_conflict {
select when pageview ".*"
{
emit <|
var checkForGetGlue = function(attempt) {
attempt ? attempt = attempt : attempt = 1;
if ($("#adb_container").length) {
$K("#onetruefan_slidebar_id").css({"bottom":"35px"});
$K("#otf-players-woot-bottom").hide();
} else if (attempt < 6) {
setTimeout(function() {
checkForGetGlue(++attempt);
},1000);
};
}
checkForGetGlue();
|>;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment