This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// JavaScript source code | |
xml = '<ResultSet xmlns="urn:yahoo:jp:jlp:FuriganaService" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:yahoo:jp:jlp:FuriganaService https://jlp.yahooapis.jp/FuriganaService/V1/furigana.xsd">\n<Result>\n<WordList>\n<Word>\n<Surface>漢字</Surface>\n<Furigana>かんじ</Furigana>\n<Roman>kanzi</Roman>\n</Word>\n<Word>\n<Surface>かな交じり</Surface>\n<Furigana>かなまじり</Furigana>\n<Roman>kanamaziri</Roman>\n<SubWordList>\n<SubWord>\n<Surface>かな</Surface>\n<Furigana>かな</Furigana>\n<Roman>kana</Roman>\n</SubWord>\n<SubWord>\n<Surface>交</Surface>\n<Furigana>ま</Furigana>\n<Roman>ma</Roman>\n</SubWord>\n<SubWord>\n<Surface>じり</Surface>\n<Furigana>じり</Furigana>\n<Roman>ziri</Roman>\n</SubWord>\n</SubWordList>\n</Word>\n<Word>\n<Surface>文</Surface>\n<Furigana>ぶん</Furigana>\n<Roman>bun</Roman>\n</Word>\n<Word>\n<Surface>に</Surface>\n</Word>\n<Word>\n<Surface>ふりがな</Surface>\n</Word>\n<Word>\n<Surface>を</Surface>\n</Word>\n<Word>\n<Surface>振る</Surface>\n<Furigana>ふる</Furigana>\n< |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<script src="vkbeautify.js"></script> | |
<title>ページタイトル</title> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
function convert(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ----------------------------------------------------------------------------- | |
// 校正支援ツール | |
// 説明 選択した文字の校正支援する。 | |
// | |
// | |
// 参考 | |
// http://qiita.com/tnakagawa/items/3bce99d49b1aa3fc9a72 | |
// http://qiita.com/tnakagawa/items/4b501c21abcd39f30fbe | |
// 使用API | |
// https://developer.yahoo.co.jp/webapi/jlp/kousei/v1/kousei.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"manifest_version": 2, | |
"name": "1-click remove", | |
"version": "1.0", | |
"content_scripts": [ | |
{ | |
"matches": ["http://www.amazon.co.jp/*","https://www.amazon.co.jp/*"], | |
"js": [ "myscript.js"] | |
} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ku=document.getElementById("borrow-button");//PC用 | |
var kum=document.getElementById("KU_logo_link");//スマホ用 | |
if((ku|| kum) != null){//空なら実行しない | |
var element = document.getElementById("one-click-button"); | |
var node = element.parentNode.parentNode;//親要素の親要素を削除 | |
if(node != null){ | |
node.parentNode.removeChild(node); | |
} | |
} |