yukihane / hatebu-webextensions Goto Github PK
View Code? Open in Web Editor NEWFirefox Android用はてなブックマーク表示
Home Page: https://addons.mozilla.org/en-US/firefox/addon/hatena-bookmark-opener/
Firefox Android用はてなブックマーク表示
Home Page: https://addons.mozilla.org/en-US/firefox/addon/hatena-bookmark-opener/
現状、Androidのfeedlyからページジャンプするとamp対応urlへ飛ばされることがある。
このとき、はてなAPIは元のURLとは別管理してしまう(URL正規化を行わない)。
従って、こちらであらかじめ正規化してAPIに送信する必要がある。
AMP対応ページでは、元のURLを示すために、 <head>
に
<link rel="canonical" href="https://www.asahi.com/articles/ASL36624WL36UTIL03W.html" />
のようなタグが入っていることが多いらしいのでこれを参照すればよいのでは。
ちなみに、元ページには、AMP対応ページがあることを示すために
<link rel="amphtml" href="https://www.asahi.com/amp/articles/ASL36624WL36UTIL03W.html" />
のような情報がある(ことが多いと思われる)。
MDNのexampleをコピペして作り始めたので、アプリケーション名など、本質的でない情報を変更しておらず意味が通じない箇所がある。
他のissueにも書いた通り、exampleのコピペで作り始めたため無駄な処理が入っている。
現在、起動初期処理にalarmで遅延起動するようになっているはずだが、これは全く不要。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.