Skip to content

Instantly share code, notes, and snippets.

@isayme
Last active October 26, 2018 05:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isayme/e1ef67ad38e95c9c8a5e849097941303 to your computer and use it in GitHub Desktop.
Save isayme/e1ef67ad38e95c9c8a5e849097941303 to your computer and use it in GitHub Desktop.
// ==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