Andrew / lgfix

// ==UserScript==
// @name         lgfix
// @namespace    https://www.logoground.com/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @license      MIT 
// @match        https://www.logoground.com/*
// @grant        none
// ==/UserScript==

(function () {
  'use strict';

  // Your code here...
  var w = window.screen.width;
  function lgfix() {
    if (document.getElementById("preview")) {

      if (parseInt(document.getElementById("preview").style.left) > w-620) {
        document.getElementById("preview").style.left = w-620 - 40 +"px";
      }
    }

  }
  if (document.getElementsByClassName("logopositioning1")) {
    for (var x = 0; x < document.getElementsByClassName("logopositioning1").length; x++) {
      document.getElementsByClassName("logopositioning1")[x].addEventListener("mousemove", lgfix);
    }
  }
})();