noromanba (254)

noromanba Scrapbox link2017-01-28

prompt Scrapbox link syntax

(function(){'use strict';var title=document.title.trim();var text='['+title+' '+location.href+']'...
noromanba +/-editable2017-01-28

toggle contentEditable

document.documentElement.contentEditable=!document.documentElement.isContentEditable;
noromanba nextH2017-01-07

scroll into next headings (h1-6)

Array.from(document.body.querySelectorAll([Array.from(Array(6).keys(),n=>'h'+(n+1))])).some(headi...
noromanba +/-passwd2017-01-07

toggle password visibility

(function(){'use strict';Array.prototype.forEach.call(document.body.querySelectorAll(['input[type...
noromanba +passwd2017-01-06

view password

Array.from(document.body.querySelectorAll(['input[type="password"]']),pass=>pass.type='text');
noromanba ↓Headings2017-01-05

scroll into next headings (h1-6)

(function(){'use strict';var currentPosition=function(){return document.documentElement.scrollTop...

hidden spam on Hatena::Let w/ Pager Extension (as UserScript)

'http://www.hatena.ne.jp/faq/q/let';(()=>{const invalidURL=/(?:^|[^"'\s\/^.\\dwstrnvfb0\[\]^|$()?...
noromanba feedback2016-03-04

goto Hatena::Let feedback-form

'http://www.hatena.ne.jp/faq/q/let';(function(){var support='http://www.hatena.ne.jp/faq/q/let';l...
noromanba YSSS↺2016-03-02

auto-reload Yahoo social stream search

(()=>{const state=document.body.querySelector('#msg_TSk_1[style]');if(!state)return;const reload=...
noromanba iframe2link2016-02-28

replace iframe to anchor link

(()=>{const whitelist=['[src^="javascript:"]','[src*="//www.facebook.com/plugins/"]','[class|="tw...
noromanba Coursera ERT2016-02-28

show Estimated Reading Time on Coursera

alert('total '+(Array.from(document.querySelectorAll('.text-hint'),node=>{return+(node.textConten...
noromanba 💩2016-02-25

emoji makes number two

(()=>{const poopee=(ctx)=>Array.from(ctx.querySelectorAll('img[src].emoji'),node=>{node.title=nod...
noromanba -emoji2016-02-25

hidden emoi emoji

(()=>{const clean=(ctx)=>Array.from(ctx.querySelectorAll('.emoji'),img=>{img.parentNode.removeChi...
noromanba t.um block2016-02-11

detox t.umblr.com link on tumblr.com

(()=>{'use strict';const detox=(ctx)=>{if(!ctx.querySelectorAll)return;Array.from(ctx.querySelect...

hidden spam topics on Hatena Space via http://a-kuma3.hatenablog.com/entry/hatena_space_backup

(()=>{const spamTitle=/^(?:https?:\/\/\S+|[A-z0-9 =+<>*$'.!"\[\]():\^&#\-'{}_~\/|]+$)/;Array.from...
noromanba copylet2016-01-24

show minified code on Hatena::Let; for copy of mobile

(()=>{if(!/let\.(?:st\-)?hatelabo\.(?:jp|com)$/.test(location.hostname)||location.pathname.split(...
noromanba 2copylet2016-01-24

show minified code on Hatena::Let when 2-exec; for copy of mobile

(()=>{if(location.hostname==='let.hatelabo.jp'){location.hostname='let.st-hatelabo.com';return;}i...
noromanba path--2016-01-21

declement last path number stupidly, tiny RW

(()=>{const paths=location.pathname.match(/\D*(\d+)\D*/g);paths.push(paths.pop().replace(/\d+/,(d...
noromanba path++2016-01-21

inclement last path number stupidly, tiny FF

(()=>{const paths=location.pathname.match(/\D*(\d+)\D*/g);paths.push(paths.pop().replace(/\d+/,(d...
noromanba Twimedi2016-01-21

open current tweet medias in new tab/window

(()=>{if(!/twitter\.com/.test(location.hostname)||location.pathname.split('/').slice(1)<3){return...
<< 1 2 3 4 5 6 7 8 9 10