Last active
October 30, 2016 14:55
-
-
Save ygkn/156fd03b79771db2bcbc47c6db4a918a to your computer and use it in GitHub Desktop.
J-Lyricの歌詞をコピるブックマークレット ref: http://qiita.com/ygkn/items/57ad273ee04fce7a26aa
This file contains hidden or 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:(function(r){r.selectNode(document.getElementById("lyricBlock"));getSelection().addRange(r);document.execCommand("copy");getSelection().removeAllRanges()})(document.createRange()) |
This file contains hidden or 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
(function(r) { | |
r.selectNode(document.getElementById("lyricBlock")); | |
getSelection().addRange(r); | |
document.execCommand("copy"); | |
getSelection().removeAllRanges() | |
})(document.createRange()) |
This file contains hidden or 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
(function(r){ | |
// 略 | |
})(document.createRange()) |
This file contains hidden or 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
(function(){ | |
var r = document.createRange() | |
// 略 | |
})() |
This file contains hidden or 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
(function() { | |
var range = document.createRange(); | |
var lyricBlock = document.getElementById("lyricBlock"); | |
range.selectNode(lyricBlock); | |
getSelection().addRange(range); | |
document.execCommand("copy"); | |
getSelection().removeAllRanges() | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment