0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

chrome拡張 コンテキスト

Posted at

createID = chrome.contextMenus.create({
"title": "add video info",
"type": "normal",
"contexts": ["link"],
"onclick": function(info) {
console.log(info);
console.log(createID);

        //実現パターン
        //(1)一覧から選択
            //○手軽 
            //×GETで作品ページにアクセス必要
            //×どうせ動画見てから選択するんでしょ
        //(2)作品ページから選択
        //
        //参考
        //一覧で動画見れる
        //FANZA×
        //MGS○
        //ソクミル×

        //FANZA
            //一覧(レンタル)https://www.dmm.co.jp/rental/ppr/-/list/
            //一覧(動画)https://www.dmm.co.jp/digital/videoa/-/list/=/sort=date/
            //作品(単品) https://www.dmm.co.jp/rental/ppr/-/detail/=/cid=h_094ktra207er/
            //作品(月額)https://www.dmm.co.jp/rental/-/detail/=/cid=h_796much095er/
            //作品(動画)https://www.dmm.co.jp/digital/videoa/-/detail/=/cid=1stars00226/
            //作品(動画 素人)https://www.dmm.co.jp/digital/videoc/-/list/=/sort=date/
        //MGS
            //一覧
            //作品
        //ソクミル
            //一覧(最新作)https://www.sokmil.com/itemlist/t-premium/s-1/index.htm?ref=menu_new
            //一覧(素人)https://www.sokmil.com/av/shirouto/?ref=menu_genre
            //一覧(人妻)https://www.sokmil.com/av/hitozuma/?ref=menu_genre
            
            //一覧(最新作)https://www.sokmil.com/itemlist/t-premium/s-1/index.htm?ref=menu_new

            //作品 https://www.sokmil.com/av/_item/item334934.htm?ref=itemlist_hitozuma
            //作品 https://www.sokmil.com/av/_item/item334925.htm?ref=recent

        // img
        // editable: false
        // frameId: 0
        // linkUrl: "https://www.dmm.co.jp/rental/ppr/-/detail/=/cid=4ssni558/"
        // mediaType: "image"
        // menuItemId: 1
        // pageUrl: "https://www.dmm.co.jp/rental/ppr/"
        // srcUrl: "https://pics.dmm.co.jp/mono/movie/4ssni558/4ssni558ps.jpg"

        // chrome.tabs.create({
        //     url:'http://twitter.com/search?q='+ encodeURIComponent(info.selectionText)
        // });
    }
});
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?