NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Restore Google News Layout ca. 6/2010 in 2017 // @description Restore Google News Layout ca. 6/2010 in 2017 // @updateURL https://openuserjs.org/meta/cl76/Restore_Google_News_Layout_ca._62010_in_2017.meta.js // @copyright 2020 , cl76 (https://openuserjs.org/users/cl76) // @license MIT // @include http://news.google.tld/* // @include htt*://news.google.*/* // @include htt*://*google.*/news* // @version 2.0.5 // ==/UserScript== function addGlobalStyle(css) { try { var elmHead, elmStyle; elmHead = document.getElementsByTagName('head')[0]; elmStyle = document.createElement('style'); elmStyle.type = 'text/css'; elmHead.appendChild(elmStyle); elmStyle.innerHTML = css; } catch (e) { if (!document.styleSheets.length) { document.createStyleSheet(); } document.styleSheets[0].cssText += css; } } addGlobalStyle(' \n' + '@media screen and (min-width: 1024px) { \n' + '.FVeGwb.CVnAc { max-width: 1377px; } \n' + '.tsldL.RELBvb > .HKt8rc { grid-column: span 12; } \n' + '.Xw9d0 { display: none; } \n' + '.BL5WZb.xP6mwf { grid-gap: 16px 32px; } \n' + '.BL5WZb.xP6mwf > .YtXOzd { grid-column: 1 / 13; grid-row: 1; } \n' + '.BL5WZb.xP6mwf > .keNKEd { grid-column: 1 / 7; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 9) { grid-column: 7 / 13; grid-row: 2; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 10) { grid-column: 7 / 13; grid-row: 3; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 11) { grid-column: 7 / 13; grid-row: 4; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 12) { grid-column: 7 / 13; grid-row: 5; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 13) { grid-column: 7 / 13; grid-row: 6; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 19) { grid-row: 9; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 20) { grid-row: 10; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 21) { grid-row: 11; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 22) { grid-row: 12; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 23) { grid-row: 13; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 29) { grid-row: 14; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 30) { grid-row: 15; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 31) { grid-row: 16; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 32) { grid-row: 17; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 33) { grid-row: 18; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 39) { grid-row: 19; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 40) { grid-row: 20; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 41) { grid-row: 21; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 42) { grid-row: 22; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 43) { grid-row: 23; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 49) { grid-row: 24; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 50) { grid-row: 25; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 51) { grid-row: 26; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 52) { grid-row: 27; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 53) { grid-row: 28; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 59) { grid-row: 29; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 60) { grid-row: 30; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 61) { grid-row: 31; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 62) { grid-row: 32; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 63) { grid-row: 33; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 69) { grid-row: 34; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 70) { grid-row: 35; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 71) { grid-row: 36; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 72) { grid-row: 37; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 73) { grid-row: 38; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 79) { grid-row: 39; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 80) { grid-row: 40; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 81) { grid-row: 41; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 82) { grid-row: 42; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 83) { grid-row: 43; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 89) { grid-row: 44; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 90) { grid-row: 45; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 91) { grid-row: 46; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 92) { grid-row: 47; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 93) { grid-row: 48; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 99) { grid-row: 49; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 100) { grid-row: 50; } \n' + '.BL5WZb.xP6mwf > .keNKEd:nth-child(10n + 101) { grid-row: 51; } \n' + '} \n'); window.onload = setTimeout( function() { document.querySelector('.gb_3c > .gb_Cc:first-of-type').click(); document.querySelector('.gb_3c > .gb_Cc:first-of-type').blur(); document.querySelector('.BL5WZb.xP6mwf > .keNKEd > .pn1wK > .YOnsCc[role="button"]').click(); document.querySelector('.BL5WZb.xP6mwf > .keNKEd > .pn1wK > .YOnsCc[role="button"]').blur(); }, 500);