Last active
October 26, 2018 05:21
-
-
Save isayme/e1ef67ad38e95c9c8a5e849097941303 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name 电影天堂(dy2018.com) | |
// @version 0.1.2 | |
// @description 修正下载链接 | |
// @author iSayme | |
// @namespace https://github.com/isayme | |
// @homepage https://github.com/isayme | |
// @icon https://www.dy2018.com/favicon.ico | |
// @include https://www.dy2018.com/* | |
// @run-at document-end | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
document.querySelectorAll('a[thunderhref]').forEach(function(ele) { | |
ele.removeAttribute('onclick') | |
ele.href = ele.text.trim() | |
}) | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment