Switch devtools to detached window (click devtools settings icon, click “dock side” undock icon). Next time you can simply press Ctrl-Shift-D.
Invoke devtools-for-devtools by pressing Ctrl-Shift-i
Run this code to copy the URLs of all/filtered requests to clipboard: copy(UI.panels.network._networkLogView._dataGrid._rootNode._flatNodes.map(n => n._request._url).join('\n'))
You can save the code as a Snippet in Sources panel and run it via rightclick-menu or Ctrl-Enter:
var URLs = UI.panels.network._networkLogView._dataGrid._rootNode._flatNodes.map(n => n._request._url);
copy(URLs.join('\n'));
URLs; // displays it in the console as an expandable array
var b =0;
if(qs && qs['b']){
b = qs['b'] *1;
} else {
document.title='系分考试';
$('content').innerHTML= html;
return;
}
var url = data[b].url;
var start = data[b].start;
if(!start){
start =0;
}
var end = data[b].end;
var name = data[b].name;
document.title='系分考试-'+ name;
html +='\n\n';
for(var i = start;i<=end;i++){
html +='\n\n';
html +='![{0}]({0}) '.format(url.format(i));
}
console.log(html);
$('content').innerHTML= html;
7 通过浏览器打印生成pdf
8 完整代码
<!DOCTYPE html>
<html>
<title></title>
<metahttp-equiv=Content-Typecontent="text/html;charset=utf-8">
<metacontent="yes"name="apple-mobile-web-app-capable">
<metaname="viewport"content="width=device-width,initial-scale=1,maximum-scale=1">
<linkrel="apple-touch-icon"href="images/task/task3.png">
<xmptheme="simplex"style="display:none;"id="content">
</xmp>
<scriptsrc="js/tohours.min.js"></script>
<script>
(function(){var data = [];data.push({ name:'冲刺1', url:'http://cache.gensee.com/gsgetrecord/record20.gensee.net/gsrecord/115291/sbr/2018_05_05/V4AFs46eBy_1525481655/hls/3976114433_{0}.png', end:95 },{ name:'冲刺2', url:'http://cache.gensee.com/gsgetrecord/record19.gensee.net/gsrecord/115291/sbr/2018_05_05/V4AFs46eBy_1525499873/hls/3976114433_{0}.png', start:96, end:144 },{ name:'冲刺3', url:'http://cache.gensee.com/gsgetrecord/record14.gensee.net/gsrecord/115291/sbr/2018_05_06/V4AFs46eBy_1525568216/hls/3976114433_{0}.png', start:145, end:202 },{ name:'冲刺4', url:'http://cache.gensee.com/gsgetrecord/record20.gensee.net/gsrecord/115291/sbr/2018_05_06/V4AFs46eBy_1525586183/hls/3976114433_{0}.png', start:203, end:344 });var$=function(id){returndocument.getElementById(id); }var html ='';for(var i=0;i<data.length;i++){if(i%3==0){ html +='\n\n'; } html +='[【{0}】](cc-xf?b={1}) '.format(data[i].name, i); } html +='\n\n'; html +='<a href="javascript:;" onclick="hideLink()">【关闭】</a> [【首页】](cc-xf)'; qs =tohours.queryString();var b =0;if(qs && qs['b']){ b = qs['b'] *1; } else {document.title='系分考试';$('content').innerHTML= html;return; }var url = data[b].url;var start = data[b].start;if(!start){ start =0; }var end = data[b].end;var name = data[b].name;document.title='系分考试-'+ name; html +='\n\n';for(var i = start;i<=end;i++){ html +='\n\n'; html +='![{0}]({0}) '.format(url.format(i)); }console.log(html);$('content').innerHTML= html;})();functionhideLink(){var a =document.getElementsByTagName('a');for(var i=0;i<a.length;i++){ a[i].style='display:none'; }}</script>
<scriptsrc="js/strapdown.js"></script>
</html>