Git Product home page Git Product logo

hatebu-webextensions's Introduction

= はてなブックマークオープナー

== これは何?

Firefox for Androidで, はてなブックマークのコメントページを読むためのWebExtensionsです.

はてな公式extensionがAndroidに対応していないので作成しました.

デスクトップ版ブラウザ上でも動作しますが, 機能が貧弱なのでAndroid以外では上記の公式のものを使うのが良いかと思います.

本プログラムは mdn/webextension-examples/chill-out を参考に作成しています.

== インストール方法

に記載しています。

現在、 Android では Nightly 版でしか利用できません。

hatebu-webextensions's People

Contributors

yukihane avatar

Watchers

 avatar  avatar  avatar

hatebu-webextensions's Issues

アプリケーション名の名称変更

MDNのexampleをコピペして作り始めたので、アプリケーション名など、本質的でない情報を変更しておらず意味が通じない箇所がある。

無駄にalarmを使っている

他のissueにも書いた通り、exampleのコピペで作り始めたため無駄な処理が入っている。
現在、起動初期処理にalarmで遅延起動するようになっているはずだが、これは全く不要。

AMP対応サイトのURL正規化

現状、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" />

のような情報がある(ことが多いと思われる)。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.