Skip to content

Instantly share code, notes, and snippets.

@adaliabooks
Last active August 2, 2016 22:54
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 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