Tr fixing google markup repeatedly

This commit is contained in:
Kovid Goyal 2020-04-17 12:32:25 +05:30
parent 016bd5458c
commit 96c136ad0a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -8,8 +8,11 @@
(function() {
"use strict";
var num_tries = 0;
function fix_google_markup() {
var cc = document.getElementById('center_col');
if (!cc && ++num_tries < 10) { setTimeout(fix_google_markup, 100); }
cc.style.marginLeft = '0';
cc = document.getElementById('cnt');
if (cc) cc.style.paddingTop = '0';