Skip to content

Instantly share code, notes, and snippets.

@rhoaias2017
Created September 26, 2017 19:04
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/42bce851b761ec78242d03b36f8cb4c5 to your computer and use it in GitHub Desktop.
Save rhoaias2017/42bce851b761ec78242d03b36f8cb4c5 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 group_id = searchableStr.match (/[\?\&]group_id=([^\&\#]+)[\&\#]/i) [1];
var father_page = "http://www.mitbbs.com/mwap/forum/article.php?board=" + board + "&groupid=" + group_id + "&content_type=all";
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