当前位置:网站首页>One click filtering to select Baidu online disk files
One click filtering to select Baidu online disk files
2022-07-04 05:37:00 【a10615】
background
Today, the photo gallery sent me through Baidu online disk 266 A picture , Let me choose 20 Zhang Yinshu . But the other party put .CR2 and .JPG Both formats have been sent , In fact, I just need to .JPG Download it , Then choose . But I need to choose from 133 Zhang , This kind of quantity is large 、 Repetitive work , It's quite a test of endurance . As a programmer , We must find a lazy way to solve it , without doubt , Just from the front (Ctrl+Shift+I, Browser developer tools ) To solve
Find the differences between the two files
Corresponding element layout :
<dd class="g-clearfix AuPKyz open-enable" _position="132" _cmd_installed="1" _installed="1">
<span node-type="EOGexf" class="EOGexf"></span>
<div class="JS-fileicon fileicon-small-pic"></div>
<div class="file-name" style="width:60%">
<div class="text">
<a href="javascript:void(0);" class="filename" title="_P5A1453.JPG">_P5A1453.JPG</a>
</div>
...
</div>
</dd>
<dd class="g-clearfix AuPKyz" _position="133" _cmd_installed="1" _installed="1">
<span node-type="EOGexf" class="EOGexf"></span>
<div class="JS-fileicon default-small"></div>
<div class="file-name" style="width:60%">
<div class="text">
<a href="javascript:void(0);" class="filename" title="_P5A1397.CR2">_P5A1397.CR2</a>
</div>
...
</div>
</dd>
The difference is <dd>
Inside the label class in . So as long as such a fishing ,133 All the documents are fished out :
document.getElementsByClassName('g-clearfix AuPKyz open-enable')
Execute click event
The rest , Is to perform click operations :
document.getElementsByClassName('g-clearfix AuPKyz open-enable').forEach(item => item.firstElementChild.click())
Be careful :
item.click()
, It is a single choice function , And multiple choice , Its child elements must be used<span>
边栏推荐
- Integer type of C language
- Simulink与Arduino串口通信
- Zhanrui tankbang | jointly build, cooperate and win-win zhanrui core ecology
- [matlab] communication signal modulation general function - low pass filter
- [paper summary] zero shot semantic segmentation
- Penetration tool - sqlmap
- 远程桌面客户端 RDP
- BUU-Reverse-easyre
- Basic concept of bus
- [matlab] matlab simulates digital baseband transmission system eye diagram of bipolar baseband signal (cosine roll off forming pulse)
猜你喜欢
[interested reading] advantageous filtering modeling on long term user behavior sequences for click through rate pre
Flask
2022年T电梯修理操作证考试题库及模拟考试
What is MQ?
Signification des lettres du module optique et abréviation des paramètres Daquan
空洞卷积、可变形卷积、可变形ROI Pooling
Simulink与Arduino串口通信
ANSYS command
[QT] timer
Canoe panel learning video
随机推荐
Viewing and using binary log of MySQL
Zzulioj:1201: mode problem
Graduation design of small programs -- small programs of food and recipes
[matlab] general function of communication signal modulation Fourier transform
Automated testing selenium foundation -- webdriverapi
VB.net GIF(制作、拆解——优化代码,类库——5)
[matlab] matlab simulation modulation system SSB system
Flask
VB. Net calls ffmpeg to simply process video (class Library-6)
left_and_right_net正常版本
Yyds dry goods inventory TCP & UDP
BUU-Crypto-[GUET-CTF2019]BabyRSA
June 2022 summary
flink1.13 sql基础语法(二)join操作
[matlab] matlab simulation modulation system - VSB system
Supplement the JS of a video website to decrypt the video
C language simple student management system (including source code)
Li Kou's 300th weekly match
1.1 history of Statistics
[matlab] matlab simulation modulation system - DSB system