Skip to content

Instantly share code, notes, and snippets.

@linuxd3v
Created February 29, 2024 20:01
Show Gist options
  • Select an option

  • Save linuxd3v/eef863b26c53c2906587b202dcc53d2b to your computer and use it in GitHub Desktop.

Select an option

Save linuxd3v/eef863b26c53c2906587b202dcc53d2b to your computer and use it in GitHub Desktop.

Revisions

  1. linuxd3v created this gist Feb 29, 2024.
    32 changes: 32 additions & 0 deletions adobe-anti-flickr.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,32 @@
    <script>
    ;(function(win, doc, style, timeout) {
    var STYLE_ID = 'at-body-style';
    function getParent() {
    return doc.getElementsByTagName('head')[0];
    }
    function addStyle(parent, id, def) {
    if (!parent) {
    return;
    }
    var style = doc.createElement('style');
    style.id = id;
    style.innerHTML = def;
    parent.appendChild(style);
    }
    function removeStyle(parent, id) {
    if (!parent) {
    return;
    }

    var style = doc.getElementById(id);
    if (!style) {
    return;
    }
    parent.removeChild(style);
    }
    addStyle(getParent(), STYLE_ID, style);
    setTimeout(function() {
    removeStyle(getParent(), STYLE_ID);
    }, timeout);
    }(window, document, "body {opacity: 0 !important}", 3000));
    </script>