Greasy Fork 支持简体中文。

Disable Google Optimize page-hiding CSS

Disable Google Optimize page-hiding CSS.The homepage using Google Optimize will show up quickly.

目前為 2020-04-11 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name Disable Google Optimize page-hiding CSS
  3. // @name:ja Google Optimize page-hiding CSSの無効化
  4. // @description Disable Google Optimize page-hiding CSS.The homepage using Google Optimize will show up quickly.
  5. // @description:ja Google Optimize page-hiding CSSを無効にします。Google Optimizeを使用しているホームページが、素早く表示されるようになります。
  6. // @namespace masshiro.blog
  7. // @version 20200412
  8. // @author masshiro
  9. // @license MIT License
  10. // @match http://*/*
  11. // @match https://*/*
  12. // @grant none
  13. // @run-at document-body
  14. // @noframes
  15. // ==/UserScript==
  16.  
  17. (function() {
  18. 'use strict';
  19. const node = document.getElementsByTagName('html');
  20. for (const elm of node) {
  21. const attr = elm.getAttribute('style') || '';
  22. elm.setAttribute('style', attr + ';opacity:1 !important;');
  23. elm.classList.remove('async-hide');
  24. }
  25. })();