Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
万物皆可.git

我愿人长久 ihewro

:octocat:
万物皆可.git
View GitHub Profile
@ihewro
ihewro / netease2appleAboutMost_love
Created Apr 28, 2020
迁移听歌排行音乐到apple music
View netease2appleAboutMost_love
var content=document.getElementById("m-record");
var items=content.getElementsByTagName("ul")[0].getElementsByTagName("li");
var ret = "";
for(var i=0;i<100;i++){
if (i!=-1){
var n = items[i].getElementsByClassName("song")[0].getElementsByClassName("txt")[0];
var title = n.getElementsByTagName("b")[0].getAttribute("title")
// console.log(n.getElementsByTagName("font")[2]);
if (n.getElementsByClassName("ar s-fc8").length >1){
var author = n.getElementsByClassName("ar s-fc8")[1].getElementsByTagName("span")[0].getAttribute("title")
@ihewro
ihewro / starDemo.html
Created Jun 1, 2018
一个点赞的效果
View starDemo.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
<style>
.heart {
View ajax_comments.min.js
var txt_1 = '必须填写用户名',
txt_2 = '必须填写电子邮箱地址',
txt_3 = '邮箱地址不合法',
txt_4 = '必须填写评论内容';
function ajaxc() {
var $body = (window.opera) ? (document.compatMode == "CSS1Compat" ? $('html') : $('body')) : $('html,body');
var comments_order = 'DESC',
comment_list = '.comment-list',
comments = '#comments .comments-title',