Skip to content

Instantly share code, notes, and snippets.

@Athrob
Created March 19, 2020 16:02
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 Athrob/e986c8071c3efad9c7c6434e71b11e86 to your computer and use it in GitHub Desktop.
Save Athrob/e986c8071c3efad9c7c6434e71b11e86 to your computer and use it in GitHub Desktop.
查看PC版网易跟帖油猴脚本
// ==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