Skip to content

Instantly share code, notes, and snippets.

@rhoaias2017
Created September 26, 2017 17:19
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 rhoaias2017/277c5099ad89e42fbb773abe90942dd4 to your computer and use it in GitHub Desktop.
Save rhoaias2017/277c5099ad89e42fbb773abe90942dd4 to your computer and use it in GitHub Desktop.
十个字十个字
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match http://www.mitbbs.com/mwap/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
reply_submit = function() {
var board = $('#board').html();
var groupid = $('#groupid').html();
var title = $('#title').html();
var re_content = $('#re_content').html();
var searchableStr = document.URL + '&';
var father_page = "http://www.mitbbs.com/mwap/forum/board.php?board=" + board;
var obj = document.getElementById("text_"+groupid);
var content = obj.value;
content = content+"\n"+re_content;
post_article(board, title, groupid, content, "0", father_page);
return false;
};
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment