unarist (34)

event catpture の活躍の場

['contextmenu','selectstart','copy','mousedown'].forEach((ev=>window.addEventListener(ev,(e=>e.st...
unarist T/U box2022-12-07

w/ "{title} {url}" format. easy copyable title/url box; click to copy, double-click outer to close

(()=>{'use strict';const tag=(name,props={},children=[])=>{const e=Object.assign(document.createE...
unarist KeyLogger2021-06-16

Simple Key Logger (w/o modifiers, composition)

(()=>{if(window.__KeyLogger_finish){window.__KeyLogger_finish();return}let events=['timestamp (As...

(()=>{document.querySelectorAll('.p-rich_text_list').forEach((x=>x.classList.remove('p-rich_text_...
unarist 録画2020-02-12

画面をwebmで録画するやつ

(function(){'use strict';if(!navigator.mediaDevices){alert(location.protocol==='http:'?'httpsでな...

CWを自動で開きます。まる。

((target,proc)=>(new MutationObserver((m=>m.forEach((r=>proc(r.addedNodes))))).observe(target,{ch...

翻訳してしまっている場合でも原文からコピーしてきて修復

(()=>{const execAll=function*(re,str,m=null){while((m=re.exec(str))!==null)yield m};const src_str...

eh, too wide paragraphs... :/

(function(){Object.assign(document.body.style,{maxWidth:prompt('body width','22cm')+'!important',...

動くといいね。masterではもう動かないよ。

(()=>{const store=(()=>{let current_node=document.querySelector('#mastodon')._reactRootContainer....

void(document.getElementById('chatText').autocomplete="off");

outputs to console.log

console.log([...new Set([...document.styleSheets].reduce(((m,s)=>{try{return Array.prototype.conc...
unarist Twitter - n7m2017-09-28

ツイート中の3文字以上の英字列をnumeronymに変換します。

((target,p)=>(new MutationObserver((m=>m.forEach((r=>p(r.addedNodes))))).observe(target,{childLis...
unarist Mastodon - n7m2017-09-28

トゥート中の3文字以上の英字列をnumeronymに変換します。

((target,p)=>(new MutationObserver((m=>m.forEach((r=>p(r.addedNodes))))).observe(target,{childLis...

個人的な好みで前後に : が入ってます

[].concat(...JSON.parse(document.querySelector('pre').textContent).filter((({emoji:emoji})=>emoji...

charsetの指定がアレなサイトをMobileSafariで見たい時に

(window.length?Array.from(window):[window]).forEach((function(w){const xhr=new XMLHttpRequest;xhr...

ログインした状態で実行してね

(function(){var settings=JSON.parse(document.querySelector('#initial-state').textContent).setting...

適当

(function sayNext({target:c},target=new SpeechSynthesisUtterance(((document.querySelector('.masto...

my bookmarklet

web;void();
unarist Inject js/css2017-04-28

(function(){var url=prompt("Enter .js or .css URL:");document.head.appendChild(url.match(/\.js$/)...

割といける。

((r=window.getSelection(),s=String(r),p=r.anchorNode,e='',a,t)=>{if(p.nodeType==3)p=p.parentNode;...
1 2