google_news_preview_key(多野さんへの説明英語版)

I will explain it for sure. If you do not want to hear it, think it is a radio.
1. Install necessary add-ons.
Although it is not essential, I hope you can create a new user profile if possible. For safety. You can find out how to make it yourself.
· AutoPagerize or something similar
I am using weAutoPagerize.
https://addons.mozilla.org/en/firefox/addon/weautopagerize/
· Gresemonkey or something similar
I am using Tampermonkey.
https://addons.mozilla.org/en/firefox/addon/tampermonkey/?src=userprofile
· Stylish or something similar
I am using Stylus.
https://addons.mozilla.org/en/firefox/addon/styl-us/?src=userprofile
· Hatena Bookmark
It is necessary to secure the URL of the site. It's the same as before.
https://addons.mozilla.org/en/firefox/addon/hatena-bookmark/?src=userprofile
· Multiple Paste and Go Button
It is necessary to open the URL of the site.
https://addons.mozilla.org/en/firefox/addon/multiple-paste-and-go-button/?src=userprofile
· Copy All Tab Urls WE
It is necessary to copy the URL of the image.
https://addons.mozilla.org/en/firefox/addon/copy-all-tab-urls-we/?src=userprofile

2. Install user script and CSS
Here are the bottom two.
http://tanyao.hatenadiary.jp/entry/2018/06/30/125912
Usually, if you do not turn off image_key_set, only images will be displayed on any page, so be careful.

3. As usual, let AutoPageirze function until you see googlenews and want a preview.
If it is too much, wait time will increase after this, so moderately.Please close tabs other than Google News.

4. Run bookmarkletA
Run it from the console or scratch pad as before. A small text area should have been created on the page.

5. Copy the URL from the generated text area
Please enlarge the text area. The URL of each site should be listed.

6. Open the URL by clicking the Multiple Paste and Go Button icon on the toolbar
A lot of sites open at once, but do not panic.

7. Wait until each site changes to an image
It is sensuously about 1 minute or so. Of course it depends on the environment. I think it will get frustrating but calm down.

8. Click the Copy All Tab Urls WE icon on the tool bar to copy the image URL
Please check if there are any URLs other than images. The top is the Google News URL so please omit it.

9. Clear the text area used in 5 and paste the URL of the image copied with 8

10. Let bookmarkletB work
I'll put the URL again.
http://tanyao.hatenadiary.jp/entry/2018/06/30/125912
The image should be displayed.

Thank you for seeing so far. I wonder if you could see the image well.

google_news_preview_key(多野さんへの説明)

念のため説明はしておくよ。聞く気がなければラジオだと思ってね。
1.必要なアドオンをインストールする。
必須ではないけどできれば新しいユーザープロファイルを作ってほしい。安全の為にね。
AutoPagerizeかそれに類する何か
私はweAutoPagerizeを使っているよ。
https://addons.mozilla.org/ja/firefox/addon/weautopagerize/
・Gresemonkeyかそれに類する何か
私はTampermonkeyを使っているよ。
https://addons.mozilla.org/ja/firefox/addon/tampermonkey/?src=userprofile
Stylishかそれに類する何か
私はStylusを使っているよ。
https://addons.mozilla.org/ja/firefox/addon/styl-us/?src=userprofile



・Hatena Bookmark
サイトのURLを確保するのに必要。前と同じだよ。
https://addons.mozilla.org/ja/firefox/addon/hatena-bookmark/?src=userprofile
・Multiple Paste and Go Button
サイトのURLを開くのに必要。
https://addons.mozilla.org/ja/firefox/addon/multiple-paste-and-go-button/?src=userprofile
・Copy All Tab Urls WE
画像のURLをコピーするのに必要。
https://addons.mozilla.org/ja/firefox/addon/copy-all-tab-urls-we/?src=userprofile


2.ユーザスクリプトCSSをインストールする
ここの下2つだよ。
http://tanyao.hatenadiary.jp/entry/2018/06/30/125912
普段はimage_key_setをオフにしないとどのページでも画像が表示されるから気をつけてね。
3.いつも通りgooglenewsを見てプレビューが欲しいところまでAutoPageirzeを機能させる。
あまり多すぎるとこの後待ち時間が増えるからほどほどにしてね。Googleニュース以外のタブは閉じてください。
4.bookmarkletAを実行する
この前と同様にコンソールかスクラッチパッドから実行してね。小さいテキストエリアがページ上に生成されているはずだよ。

5.生成されたテキストエリアからURLをコピー
テキストエリアを拡大してね。各サイトのURLが記載されているはずだよ。
6.ツールバーのMultiple Paste and Go ButtonのアイコンをクリックしてURLを開く
一気にたくさんのサイトが開くけど慌てないでね。
7.各サイトが画像に変化するまで待つ
感覚的には1分くらいかな。当然環境次第だけど。イライラすると思うけど落ち着いてね。

8.ツールバーのCopy All Tab Urls WEのアイコンをクリックして画像のURLをコピー
画像以外のURLがないか確認してね。一番上はGoogleニュースのURLだから省いてね。
9. 5で使ったテキストエリアをクリアして8でコピーした画像のURLを貼り付け
10.bookmarkletBを機能させてね
またURLを貼っておくよ。
http://tanyao.hatenadiary.jp/entry/2018/06/30/125912
これで画像が表示されるはずだよ。

ここまで見てくれてありがとう。あなたもうまく画像が表示されたかな。

google_news_preview_key(テキストエリア生成版)

bookmarkletA

var result = document.evaluate('//a[@class="hBookmark-widget-counter"]/img',document, null, 7, null);
var t =document.createElement("textarea");
t.id="test";
document.getElementById("appbar").appendChild(t);

for(var i=0;i<result.snapshotLength;i++)
{
    var n_url=result.snapshotItem(i).src;
    var n_train=n_url.split("/image/");
    var t_url=n_train[1];
    var txt=t.value+"\n"+t_url;
    t.value=txt;   
}

bookmarkletB

var input_text = document.getElementById('test').value;
var arr = input_text.split(/\r\n|\r|\n/);	
var result = document.evaluate('//div[@class="g"]/descendant::a[1]/img',document, null, 7, null);
for(var i=0;i<result.snapshotLength;i++)
{
    result.snapshotItem(i).src=arr[i];
}

userscript

// ==UserScript==
// @name         image_key_set
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @include      https://*
// @include      http://*
// @grant        none
// ==/UserScript==
var result = document.evaluate('//meta[@property="og:image"]',document, null, 7, null);
location.href=result.snapshotItem(0).content;

css

.g img{object-fit: cover;}

google_news_preview(WordPress.comAPI版)

var result = document.evaluate('//a[@class="hBookmark-widget-counter"]/img[1]',document, null, 7, null);
var result2 = document.evaluate('//a[@class="hBookmark-widget-counter"]',document, null, 7, null);
//var result2 = document.evaluate('//div[@class="g"]/div/a',document, null, 7, null);
for(var i=0;i<result.snapshotLength;i++)
{
    var n_url=result.snapshotItem(i).src;
    var n_train=n_url.split("/image/");

    var thum="https://s.wordpress.com/mshots/v1/"+encodeURIComponent(n_train[1]);
    result2.snapshotItem(i).href=thum;
    result2.snapshotItem(i).title="このエントリをサムネイルで表示";

    result.snapshotItem(i).src="https://cdn-ak.f.st-hatena.com/images/fotolife/j/jigendaddy/20180622/20180622174633.png"

}
.hBookmark-widget-counter>img{display:inline-block !important;}

はてブ維持版

var result = document.evaluate('//a[@class="hBookmark-widget-counter"]/img[1]',document, null, 7, null);
var result2 = document.evaluate('//a[@class="hBookmark-widget-counter"]',document, null, 7, null);
//var result3 = document.evaluate('//div[./a[@class="hBookmark-widget-counter"]]',document, null, 7, null);
//var result2 = document.evaluate('//div[@class="g"]/div/a',document, null, 7, null);
for(var i=0;i<result.snapshotLength;i++)
{
    var n_url=result.snapshotItem(i).src;
    var n_train=n_url.split("/image/");

    //console.log(encodeURIComponent(n_train[1]));

    var thum_link="https://s.wordpress.com/mshots/v1/"+encodeURIComponent(n_train[1]);
    var thum = document.createElement("a");
    thum.href=thum_link;
    thum.title="このエントリをサムネイルで表示";
    /*result2.snapshotItem(i).href=thum;
    result2.snapshotItem(i).title="このエントリをサムネイルで表示";*/

    var thum_img = document.createElement("img");
    thum_img.src="https://cdn-ak.f.st-hatena.com/images/fotolife/j/jigendaddy/20180622/20180622174633.png"
    thum.appendChild(thum_img);
    result2.snapshotItem(i).parentNode.insertBefore(thum,result2.snapshotItem(i));
    //result3.snapshotItem(i).appendChild(thum);
    /*result.snapshotItem(i).appendChild(thum_link);
    result.snapshotItem(i).src="https://cdn-ak.f.st-hatena.com/images/fotolife/j/jigendaddy/20180622/20180622174633.png"*/

}
.hBookmark-widget-counter>img{display:inline-block !important;}

google_news_preview(searchpreview版)

var result = document.evaluate('//a[@class="hBookmark-widget-counter"]/img[1]',document, null, 7, null);
var result2 = document.evaluate('//a[@class="hBookmark-widget-counter"]',document, null, 7, null);
//var result2 = document.evaluate('//div[@class="g"]/div/a',document, null, 7, null);
for(var i=0;i<result.snapshotLength;i++)
{
    var n_url=result.snapshotItem(i).src;
    var n_train=n_url.split("/image/");
    //console.log(n_train[1]);
    var thum = document.createElement("img");
    thum.src="https://jp.searchpreview.de/preview?s="+n_train[1]+"&ua=Firefox&ver=1008&opts=1-1";
result2.snapshotItem(i).appendChild(thum);

}
.hBookmark-widget-counter img{display:none !important;}
.hBookmark-widget-counter img:nth-of-type(2){display:inline-block !important;}

美人が嫌い(2018年6月6日放送)より

はあちゅう はい、次はお悩み相談です。はあちゅうさんこんばんは。いつもVoicy楽しく拝聴させていただいております。はあちゅうさんの言葉の選び方が好きでそういう言い回しがあるのか、すごいといつも感激しております。そんなはあちゅうさんにご意見いただきたくて今回投稿させていただきました。


私は今大学2年生で、高1から付き合っているもうすぐ4年の彼氏がいます。この間私が20才の誕生日を迎え当日彼氏にお祝いしてもらいました。料理もおいしくてすごく楽しいひと時だったのですがその後「永遠の誕生日プレゼント」と言って渡されたのはおそらく1万円ほどのジェラピケのパジャマ。もちろん嬉しかったのですが私は以前「誕生日プレゼント何が欲しい?」と聞かれたとき「当日は何もいらないから夏休みに旅行に連れて行ってほしいな」と言いました。私は彼の誕生日にはディナーと彼が欲しいと言っていた5万円の靴をプレゼントしました。私の中では奮発したつもりでした。だから2人分で5万円ちょっとの旅行を期待していただけに少しがっくりしてしまったのです。しかも高校の2年生の時にもらった1万5千円のネックレスより低価格かともやもやが絶賛加速中です。「夏休み中旅行行きたいな」と言うと全ておごってほしいと言っているわけではないのに「え~」とやんわり拒否られています。別に普段からおごってもらっているわけでも、ねだっているわけでもありません。プレゼントは値段ではないと言い聞かせているのですが、こんなことばかり考えている私はやはり心が狭いですか?もやもやを払しょくしたいです。アドバイスをお願いします。はあちゅうさん大好きです。


うーんなるほど。これはねありますよね。プレゼントは値段ではないと言いつつやっぱり私が出した額分彼に出してほしいというのはね、人間だったら当然です。しかもさあこうハタチでしょ、ハタチの子がさあ5万出すってすっごいことですよ。そんだけ出したんだったら、まあちゃんとねバランスの釣り合うものを返してほしいってね。当然当然それはね正当な主張だから全然心なんか狭くないです。むしろ彼氏の心が狭いと言わざるを得ないなこれはね。なんでねえ、欲しいって言ってんのに夏休み旅行連れてってくれないんですねえ。彼忙しいから?そんなわけもないだろうしね。あるいはあんまり旅行慣れしてなくて旅行がいくら位かかるかというのをよく分かってないんじゃないかな。なんか彼の頭の中で、旅行っていうのは一人10万円位かかるもので2人だったら20万円だからそれは無理だとか勝手に思ってるのもしれないですね。でもさ今はもう楽天パックとかさ格安航空券とかいろいろあるから数万円で大きい旅行楽しんで旅行行けるわけですよ。だからなんかもう「これに行きたい」みたいなプレゼンしちゃっていいんじゃないですかね。「これもう2人で4万円とかだから一緒に行こう」とか。もうね実際にこれに行くっていうのを勝手にこっちで決めてそれで彼にプレゼンするっていうのはいっこありだと思います。あとはもうかわいくおねだりするしかないかなあ。なんか彼がさあの靴を履いてるときに「ねえねえねえそれね、5万円した」って言って。なんかうんちょっと笑ってみる。うんあの深刻にならないように責める感じにしたら怖いからさ、なんか元とろう元とろうってガツガツした人に見えるから「ねえねえそれ5万円だった」みたいな。「何時間働いたそれの為に」みたいな感じであくまで明るく楽しくかわいく伝える。で、ジェラピケのパジャマも嬉しかったけど「でもあと4万円分おねだりしていい」みたいな感じで。うーん、いいんじゃない言っちゃって。うん、あのいやらしい言い方しなけば言っちゃっていいと思う。それはもやもやする位だったら。で全く本題とは関係ないんですけどハタチで5万円ってすごいなって思っちゃいますね。私大学生の時は彼氏の誕生日の予算3万円だったけどうーんちょっとケチって2万円半ばくらいかな。しかもディナーも入れてそれ位だった気がするから、まあ5万円彼氏にねえ使えてしかもあれでしょ5万円プラスディナーでしょ。それはもうだいぶ頑張ったねえっていう感じしますね。交際4年目でそれだけ頑張れるっていうピュアな方だわ。偉いと思います。それはね大学生があの稼ぐには相当頑張らなきゃダメだったろうな、と思いました。後は夏休み旅行に連れてってほしいっていうことですけど2人とも学生だったらちょっと時期はずらしたほうがいいですね。夏休み高いからっていうね。そこ?みたいな感じてすけどいやそこ大事ですよ。うんあの秋になったら結構安くなるから安くなった時を見計らって「この旅行行かない?」みたいな。普段あの夏休みの時期だったらこれこれいくらだったんだけどでも今こんなディスカウントしてるから今行かなきゃ損だよという感じでね彼にプレゼンしたらいいんじゃないかなあなんて思いました。なんかあんまりアドバイスになってなかったらごめんね。まあまあでもちょっとね、もやもやしてるんだったらかわいく伝えてみてっていうのが私にできる最大限のアドバイスです。

Voicy(ボイシー)- 今日を彩るボイスメディア

今日見た動画

www.youtube.com
【ひろゆき】なぜ天才たちの考え方は似てるのか「僕たちは合理的なんで」 - YouTube

www.youtube.com
[スト5]ウメハラガイルのランクマ#85 - YouTube

www.youtube.com
【無料部分】〈HANGOUTPLUS〉加藤貞顕×宇野常寛 本と本屋と出版社はどう変わってくべきか - YouTube

www.youtube.com
【ゆっくり解説】しくじり企業 Chapter16 ~ダイエー~前半 - YouTube

www.youtube.com
【ゆっくり解説】しくじり企業 Chapter17 ~ゼネラルモーターズ~前半 - YouTube

www.youtube.com
日雇礼子が庄内にある元祖スーパー銭湯へ行くよ【前編】 - YouTube

www.youtube.com
【ゆっくり解説】しくじり企業 Chapter16 ~ダイエー~後半 - YouTube