Skip to content

Instantly share code, notes, and snippets.

@mortenson
Last active December 18, 2023 19:15

Revisions

  1. mortenson revised this gist Apr 30, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion block.js
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    document.body.innerHTML = '<img src="https://thumbs.gfycat.com/AgitatedCloseKinglet-size_restricted.gif" style="width:100vw;height:100vh;position:absolute;top:0;left:0;" />'
    document.body.innerHTML = 'get back to work'
  2. mortenson created this gist Apr 30, 2023.
    1 change: 1 addition & 0 deletions block.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    document.body.innerHTML = '<img src="https://thumbs.gfycat.com/AgitatedCloseKinglet-size_restricted.gif" style="width:100vw;height:100vh;position:absolute;top:0;left:0;" />'
    14 changes: 14 additions & 0 deletions manifest.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    {
    "manifest_version": 2,
    "name": "dumb blocker",
    "description": "made by mortenson",
    "version": "0.0.1",
    "content_scripts": [
    {
    "matches": [
    "https://www.youtube.com/*"
    ],
    "js": ["block.js"]
    }
    ]
    }