Greasy Fork

Greasy Fork is available in English.

楼主你玩贴吧开心吗?

一个让楼主玩贴吧格外开心的工具 OwO

目前为 2015-05-22 提交的版本,查看 最新版本

// ==UserScript==
// @name        楼主你玩贴吧开心吗?
// @namespace   荆棘的思念
// @description 一个让楼主玩贴吧格外开心的工具 OwO
// @include     *tieba.baidu.com/p/*pn=0*
// @include     *tieba.baidu.com/*error*
// @version     2
// @grant       none
// ==/UserScript==
console.log('script strat!');
$(document).ready(function () {
  var $ = window.jQuery;
  $('html, body').animate({
    scrollTop: $(document).height()
  }, 1000);
  setTimeout(function () {
    setTimeout(function () {
      if (/error/.test(location.href))
        location.href = document.referrer;
      else
        location.reload();
    }, 3000);
    var x = $('#ueditor_replace');
    var input = x.children('p');
    var submit = $('a.poster_submit');
    input.html(location.hash || '楼主你玩贴吧开心吗?');
    submit.click();
  }, 10000);
});