Skip to content

Instantly share code, notes, and snippets.

@doraiso
Last active March 21, 2022 09:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save doraiso/2ebd89c9001edeaaac63f6fb67ed5e44 to your computer and use it in GitHub Desktop.
Save doraiso/2ebd89c9001edeaaac63f6fb67ed5e44 to your computer and use it in GitHub Desktop.
鬼滅の刃をキルミーベイベーにするTampermonkey
// ==UserScript==
// @name kimetsu2kmb
// @namespace http://tampermonkey.net/
// @version 0.1.4
// @description 鬼滅の刃をキルミーベイベーにする
// @author doraiso
// @include http://*
// @include https://*
// @exclude https://twitter.com/*
// @grant none
// ==/UserScript==
// from https://twitter.com/2outni4/status/1320201611256344576
// kimetsu2kmb.txt https://www.dropbox.com/s/883al7k7krt4j0y/kimetsu2kmb.txt?dl=0
(function() {
'use strict';
const KILLME = 'キルミー';
const BABY = 'ベイベー';
const KIMETU = 鬼滅;;
const YAIBA = の刃;;
const OUTTIME = 1000;
setTimeout(
document.body.innerHTML=document.body.innerHTML
.replace(KIMETU/g, KILLME_BABY) // キルミー
.replace(/YAIBA/g, BABY) // ベイベー!!
,OUTTIME)
;})
();
@doraiso
Copy link
Author

doraiso commented Oct 25, 2020

fix bug

@doraiso
Copy link
Author

doraiso commented Oct 25, 2020

exclude twitter(why can't run on twitter?)

@doraiso
Copy link
Author

doraiso commented Oct 25, 2020

タイトル修正

@doraiso
Copy link
Author

doraiso commented Oct 25, 2020

setTimeoutぶっこんでなんとかしてみた

@doraiso
Copy link
Author

doraiso commented Mar 12, 2022

定数のところなどちょっと直した
ワンライナーにしようかな

@doraiso
Copy link
Author

doraiso commented Mar 12, 2022

とりあえずこれで

@appletei
Copy link

アカウント作成に伴い更新

@doraiso
Copy link
Author

doraiso commented Mar 21, 2022

実際に動かしてないのだが分かる範囲でバグ直し

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment