81983 Bookmarklets! Create

Hatena::Let でブックマークレットをかんたんに作成・公開しよう!

mino90 viewport width=2020-12-31

viewport の横幅を変える

(function(){let a=prompt('viewport width=');if(a==""||a==null){}else{document.getElementsByName('...

指定されているMS UI Gothicを無効にする。

(function(){var s=document.createElement('style');s.setAttribute('type','text/css');s.innerHTML='...
jigendaddy nishino_ameblo_add2020-12-13

try to take over the world!

var reg=/[\u3040-\u30ff]/;var tmp3=[];for(var k=0;k<$("#entryBody a").length;k++){var tmp2=$("#en...

今後は https://greasyfork.org/ja/scripts/417287-twfleetcapture 参照(Twitterユーザープロフィール...

(()=>{'use strict';const fetch_api=api_url=>fetch(api_url,{method:'GET',headers:{authorization:'B...

http://let.hatelabo.jp/pacochi/let/ipfOgsHcgqAA が直っていたので

alert(`\nhttp://let.hatelabo.jp/\n/* CSS 書いた時に勝手にスペースが省略されて違う意味合いになって...

try to take over the world!

document.onkeydown=pressFunction;document.onkeyup=releaseFunction;var keyStatus={};function press...

プルリクできればいいんだけど…… とりあえずフォーク。

['contextmenu','selectstart','copy'].forEach((ev=>window.addEventListener(ev,(e=>e.stopPropagatio...

au Market アプリのマイアプリを開く。AndroidのGoogle Chromeで確認。

location.href="auonemkt://myapps_list";

Twitterユーザーのscreen_nameからユーザーIDを取得する

(()=>{'use strict';let screen_name=window.getSelection().toString()||prompt('Input screen name of...

http://java.cocolog-nifty.com/blog/2005/10/javascript_c163.html の移植版(jQuery使用)

(function(){'use strict';window.cocolog_ajax_search_options={color:'#ffcc33',truncation_length:80...

エントリーリストで下方スクロール後でも、新着・人気を切り替える

((d,l)=>{if(!d.documentElement.dataset.pageScope==="EntryList")return;const re=/^https\:\/\/b\.ha...

ページ途中へのフラグメント付きURL(#xxx)が欲しい時に

{const pipe=x=>f=>f?pipe(f(x)):x;const $attr=attr=>val=>e=>{if(val==null)return e.getAttribute(at...

make eid notation

(d=>{if(!d.documentElement.hasAttribute('data-entry-eid'))return;const Header=d.getElementById('i...

今後は https://greasyfork.org/ja/scripts/411491-yn-searchorigin 参照(Yahoo!ニュースでは元記事へ...

(()=>{'use strict';const yahoo_news_hostname=new URL(location.href).hostname,cwin=window.open('ab...

Twitterで引用ツイートを嫌がる方のツイートを引用したい場合に使ってみる?

(()=>{const width=1024,height=768;let matches=new URL(location.href).pathname.match(/^\/([^/]+)\/...

閲覧中のページを Full HD (1920x1080) の新しいウィンドウで開きます。

window.open(location.href,"1920x1080","width=1920,height=1080");

新しいタブで開くと迷子になるので。

location.href=new URL(location.href).searchParams.get('u');
jigendaddy nishino_gamp2020-07-24

try to take over the world!

var result2=document.evaluate('//div[@class="entry-text"]//td/ancestor::*[./ancestor::div[@class=...

忘れるのでメモ。

void(s=>prompt('',/\D/.test(s)?String(BigInt(new Date(s.replace(/[年月]/g,'/').replace(/[時分]/g,...

[URL:title=タイトル]という形式でページのタイトルとURLをpromptします

(function(){const content=`[${location.href}:title=${document.title}]`;prompt('',content)})();
<< 3 4 5 6 7 8 9 10 11 12