Created
March 19, 2020 16:02
-
-
Save Athrob/e986c8071c3efad9c7c6434e71b11e86 to your computer and use it in GitHub Desktop.
查看PC版网易跟帖油猴脚本
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 网易新闻跟贴 | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://c.m.163.com/news/a/*.html* | |
// @grant none | |
// @require https://cdn.jsdelivr.net/npm/jquery@3.4.1/dist/jquery.min.js | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
var tie = $('.reply.js-reply.js-open-newsapp'); | |
var id = tie.attr('data-param'); | |
var url = 'https://comment.tie.163.com/' + id.replace('tie\/', '') + '.html'; | |
var html = '<span class="reply"><a href="' + url + '" target="_blank">😂查看跟贴</a></span>'; | |
tie.parent().append(html); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment