|
|
@ -572,11 +572,14 @@ function SRCSet() { |
|
|
|
if(/\/storage\/emulated\//.test(input)){input = "file://" + input} |
|
|
|
if(/\/storage\/emulated\//.test(input)){input = "file://" + input} |
|
|
|
var html = fetch(input,{timeout:2000}); |
|
|
|
var html = fetch(input,{timeout:2000}); |
|
|
|
if(!/https:\/\/i.*memory.coding.net/.test(input)||/^file:/.test(input)){ |
|
|
|
if(!/https:\/\/i.*memory.coding.net/.test(input)||/^file:/.test(input)){ |
|
|
|
|
|
|
|
eval('var testjson = '+html) |
|
|
|
|
|
|
|
log(testjson); |
|
|
|
var lx ="TVb"; |
|
|
|
var lx ="TVb"; |
|
|
|
var reg = /("([^\\\"]*(\\.)?)*")|('([^\\\']*(\\.)?)*')|(\/{2,}.*?(\r|\n|$))|(\/\*(\n|.)*?\*\/)/g; |
|
|
|
var reg = /("([^\\\"]*(\\.)?)*")|('([^\\\']*(\\.)?)*')|(\/{2,}.*?(\r|\n|$))|(\/\*(\n|.)*?\*\/)/g; |
|
|
|
html = html.replace(reg, function(word) {
|
|
|
|
html = html.replace(reg, function(word) {
|
|
|
|
return /^\/{2,}/.test(word) || /^\/\*/.test(word) ? "" : word;
|
|
|
|
return /^\/{2,}/.test(word) || /^\/\*/.test(word) ? "" : word;
|
|
|
|
}).replace(/^.*#.*$/gm,"").replace(/🐝|🐌|💡|🥇|⚽|🏀|📺|🐨|🐧|🍋|🐯|👒|🅱|🚁|🍎|🎈|💘|🐞|🔥|🌎|🈲|🍀|🥒|⭐️|❄️|\(XPF\)|\(萝卜\)|\(神马\)|\(切\)|\(聚\)|\(优\)|\(神马\)|\(XB\)|\(SP\)|\\t|\\r|\\n/g,'').replace(/\,\,/g,','); |
|
|
|
}).replace(/^.*#.*$/gm,"").replace(/🐝|🐌|💡|🥇|⚽|🏀|📺|🐨|🐧|🍋|🐯|👒|🅱|🚁|🍎|🎈|💘|🐞|🔥|🌎|🈲|🍀|🥒|⭐️|❄️|\(XPF\)|\(萝卜\)|\(神马\)|\(切\)|\(聚\)|\(优\)|\(神马\)|\(XB\)|\(SP\)|\\t|\\r|\\n/g,'').replace(/\,\,/g,','); |
|
|
|
|
|
|
|
log(html); |
|
|
|
var data = JSON.parse(html); |
|
|
|
var data = JSON.parse(html); |
|
|
|
var jiekou = data.sites; |
|
|
|
var jiekou = data.sites; |
|
|
|
var jiexi = data.parses; |
|
|
|
var jiexi = data.parses; |
|
|
|