Skip to content

Commit

Permalink
[Fix] 新生コモンズで素材名コピーが効いてない問題を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
istallia committed Feb 2, 2021
1 parent a7cc816 commit e450293
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion content-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if (page_url.startsWith('commons.nicovideo.jp/material') && !page_url.startsWith
const copy_text = pattern.replace('${id}', material_id).replace('${title}', material_title).replace('${creator}', material_creator);
navigator.clipboard.writeText(copy_text);
};
document.querySelector("#material_left > div.commons_preview > div.commons_download > table > tbody > tr > td > div.center > a > input[type=image]").addEventListener('click', func.bind(this, options['title-pattern']));
document.querySelector('a[href*="/material/agreement/"] > input[type="button"]').addEventListener('click', func.bind(this, options['title-pattern']));
}
});
}
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version" : 2,
"name" : "コモンズ素材名直送ツール",
"version" : "0.1.1",
"version" : "0.1.2",
"description" : "ニコニ・コモンズにて素材名をファイル名に付加した状態でダウンロードできるようにする拡張機能",
"author" : "istallia",
"icons" : {
Expand Down

0 comments on commit e450293

Please sign in to comment.