NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Web Weixin Helper // @namespace http://creamidea.github.io/ // @version 0.0.1 // @description make web weixin fullscreen // @author creamidea // @license MIT License (Expat) // @email creamidea@gmail.com // @match https://wx.qq.com/* // @grant none // @updateURL https://openuserjs.org/meta/creamidea/Web_Weixin_Helper.meta.js // ==/UserScript== (function () { var timer function resize() { $('.main').css({ 'paddingTop': 0, 'height': '100%' }).find('.main_inner').css({ 'maxWidth': $('body').width() }) } $(window).on('resize', resize) resize() timer = setInterval(function () { if ( $('.main').css('paddingTop') === 0 ) { resize() clearInterval(timer) } }, 1000) })()