Created
December 27, 2018 13:21
-
-
Save liu246542/d52560c329e9994e7283f80a83a97ffd to your computer and use it in GitHub Desktop.
FRDS链接修复
This file contains 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 FRDS | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description fix the FRDS download link | |
// @author Cao | |
// @include https://pt.keepfrds.com/details.php?id=* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
const passkey = ''; // 把自己的秘钥粘贴到引号里面 | |
const srcObj = document.getElementsByClassName('index')[0]; | |
const trueLink = srcObj.href + '&passkey=' + passkey; | |
let downLink = document.createElement('tr'); | |
let downTile = document.createElement('td'); | |
let downTrue = document.createElement('td'); | |
downTile.className = 'rowhead'; | |
downTile.width = '13%'; | |
downTile.innerHTML = '下载链接'; | |
downTrue.className = 'rowfollow'; | |
downTrue.width = '87%'; | |
downTrue.align = 'left'; | |
let trueAli = document.createElement('a'); | |
trueAli.href = trueLink; | |
trueAli.innerHTML = '*'.repeat(24); | |
downTrue.appendChild(trueAli); | |
downTrue.innerHTML += ' [涉及个人信息,请勿泄露此链接]'; | |
downLink.appendChild(downTile); | |
downLink.appendChild(downTrue); | |
let tbObj = document.getElementsByTagName('tbody')[5]; | |
tbObj.insertBefore(downLink,tbObj.childNodes[2]); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment