当前位置:网站首页>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>
边栏推荐
- [matlab] communication signal modulation general function - low pass filter
- VB. Net GIF (making and disassembling - optimizing code, class library - 5)
- Li Kou's 300th weekly match
- Flutter calls Gaode map app to realize location search, route planning and reverse geocoding
- [technology development -25]: integration technology of radio and television network, Internet, telecommunication network and power grid
- Canoe panel learning video
- 谷歌 Chrome 浏览器将支持选取文字翻译功能
- Zhanrui tankbang | jointly build, cooperate and win-win zhanrui core ecology
- Integer type of C language
- How to use postman to realize simple interface Association [add, delete, modify and query]
猜你喜欢
Evolution of system architecture: differences and connections between SOA and microservice architecture
Principle and practice of common defects in RSA encryption application
C语言简易学生管理系统(含源码)
(4) Canal multi instance use
VB. Net simple processing pictures, black and white (class library - 7)
VB.net GIF(制作、拆解——优化代码,类库——5)
RSA加密应用常见缺陷的原理与实践
2022 a special equipment related management (elevator) examination questions simulation examination platform operation
Write a complete answer applet (including single choice questions, judgment questions and multiple topics) (III) single choice questions, judgment questions, and the first question display
19. Framebuffer application programming
随机推荐
VB.net GIF(制作、拆解——优化代码,类库——5)
PostgreSQL has officially surpassed mysql. Is this guy too strong!
2022 a special equipment related management (elevator) examination questions simulation examination platform operation
[QT] create mycombobox click event
谷歌 Chrome 浏览器将支持选取文字翻译功能
left_and_right_net可解释性设计
Unity2d -- character moves and turns
[matlab] matlab simulates digital bandpass transmission systems - QPSK and OQPSK systems
Ping port artifact psping
云原生架构实战案例及优化解决方案
Zzulioj:1201: mode problem
【QT】制作MyComboBox点击事件
Notepad++ -- display related configurations
[matlab] communication signal modulation general function - low pass filter
Simulated small root pile
c语言经典指针和数组笔试题解析
SQL injection - injection based on MSSQL (SQL Server)
SQL performance optimization skills
The data mark is a piece of fat meat, and it is not only China Manfu technology that focuses on this meat
[matlab] general function of communication signal modulation bandpass filter