Skip to content

Instantly share code, notes, and snippets.

@adaliabooks
Last active August 2, 2016 22:54
Show Gist options
  • Save adaliabooks/40e153bd4f05e9aea22e0063e0b6417b to your computer and use it in GitHub Desktop.
Save adaliabooks/40e153bd4f05e9aea22e0063e0b6417b to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Account Bar Fix
// @namespace https://gist.github.com/adaliabooks/
// @version 1.0
// @description Fixes the account bar (this time)
// @author adaliabooks
// @updateURL https://gist.github.com/adaliabooks/40e153bd4f05e9aea22e0063e0b6417b/raw/
// @downloadURL https://gist.github.com/adaliabooks/40e153bd4f05e9aea22e0063e0b6417b/raw/
// @require https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js
// @grant unsafewindow
// @include http://www.gog.com/forum/*
// @include https://www.gog.com/forum/*
// @include http://www.gog.com/support/*
// @include https://www.gog.com/support/*
// ==/UserScript==
function waitForAngular()
{
if(typeof unsafeWindow.angular !== "undefined"){
unsafeWindow.angular.module("reduxModule", []);
}
else{
setTimeout(function(){
waitForAngular();
},100);
}
}
waitForAngular();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment