FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
userscript/scripts/No_Auto_open_ed2k.user.js at master · Elewc/userscript · GitHub
Elewc
userscript
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
userscript
/
scripts
/
No_Auto_open_ed2k.user.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
23 lines (21 loc) · 709 Bytes
Breadcrumbs
userscript
/
scripts
/
No_Auto_open_ed2k.user.js
Copy path
File metadata and controls
23 lines (21 loc) · 709 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
20
21
22
23
// ==UserScript==
//
@name
No Auto open ed2k
//
@description
在 simplecd 下载页面停止自动弹出 ed2k 下载窗口
//
@namespace
https://github.com/ywzhaiqi
//
@include
http://simplecd.me/download/*
//
@version
1
//
@grant
none
//
@run
-at document-start
//
@note
only firefox
// ==/UserScript==
// Mozilla Firefox
if
(
'onbeforescriptexecute'
in
window
)
{
window
.
addEventListener
(
'beforescriptexecute'
,
stopScript
,
false
)
;
}
function
stopScript
(
e
)
{
if
(
e
.
target
.
innerHTML
.
contains
(
'setTimeout("location.href='
)
)
{
e
.
preventDefault
(
)
;
e
.
stopPropagation
(
)
;
window
.
removeEventListener
(
'beforescriptexecute'
,
stopScript
,
false
)
;
}
}
Back
|
FazBrowse Home
|
New Git URL