FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
userscript/itpubnet.user.js at master · zeus911/userscript · GitHub
zeus911
userscript
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
userscript
/
itpubnet.user.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
19 lines (17 loc) · 700 Bytes
Breadcrumbs
userscript
/
itpubnet.user.js
Copy path
File metadata and controls
19 lines (17 loc) · 700 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// ==UserScript==
//
@id
itpub.net@ywzhaiqi@gmail.com
//
@name
itpub.net下载助手
//
@version
1.1
//
@namespace
https://github.com/ywzhaiqi
//
@author
ywzhaiqi@gmail.com
//
@description
ITPUB论坛 - 电子图书与IT文档资料无需登入直接下载
//
@include
http://www.itpub.net/thread*
//
@include
http://www.itpub.net/forum.php*
//
@run
-at document-end
// ==/UserScript==
var
links
=
document
.
querySelectorAll
(
'a[href^="attachment.php?aid="]'
)
;
for
(
var
i
=
0
,
l
=
links
.
length
;
i
<
l
;
i
++
)
{
var
link
=
links
[
i
]
;
link
.
href
=
link
.
href
.
replace
(
'attachment.php?'
,
'forum.php?mod=attachment&'
)
;
link
.
target
=
""
;
}
Back
|
FazBrowse Home
|
New Git URL