Compare commits
No commits in common. "3181cd607b222c72ef4a6d3f883a01a241e96950" and "25f89b0d987b5552b17580f09cb0486edd069601" have entirely different histories.
3181cd607b
...
25f89b0d98
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +0,0 @@
|
|||||||
.idea
|
|
||||||
new tieba.js
|
|
@ -1,7 +1,7 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name tieba page
|
// @name tieba page
|
||||||
// @namespace http://tampermonkey.net/
|
// @namespace http://tampermonkey.net/
|
||||||
// @version 1.019
|
// @version 1.018
|
||||||
// @author fthvgb1
|
// @author fthvgb1
|
||||||
// @match https://tieba.baidu.com/*
|
// @match https://tieba.baidu.com/*
|
||||||
// @match https://tiebac.baidu.com/*
|
// @match https://tiebac.baidu.com/*
|
||||||
@ -1074,13 +1074,24 @@
|
|||||||
|
|
||||||
function reply() {
|
function reply() {
|
||||||
let h = document.querySelector('html').innerHTML;
|
let h = document.querySelector('html').innerHTML;
|
||||||
let co = /spb\/widget\/normal_post_list', function \(threadList\) \{ new threadList\((.*?)}\);/.exec(h);
|
let co = /spb\/widget\/normal_post_list', function \(threadList\) \{ new threadList\((.*?)\}\);/.exec(h);
|
||||||
let con = co[1] + '}';
|
let con = co[1] + '}';
|
||||||
let conf = (new Function("return " + con))();
|
let conf = (new Function("return " + con))();
|
||||||
|
|
||||||
window.conxx = conf;
|
window.conxx = conf;
|
||||||
window.xxLL = null;
|
window.xxLL = null;
|
||||||
|
|
||||||
|
let pa = document.querySelector('#list_pager');
|
||||||
|
pa.parentNode.removeChild(pa);
|
||||||
|
F.use('spb/widget/normal_post_list', function (threadList) {
|
||||||
|
if (!window.xxLL) {
|
||||||
|
window.xxLL = new threadList(conf)
|
||||||
|
}
|
||||||
|
window.totalPage = xxLL.pager._conf.totalPage;
|
||||||
|
if (location.href.indexOf('r=1') > -1) {
|
||||||
|
xxLL.pager._conf.url += '&r=1';
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
document.querySelectorAll('.j_nreply_btn').forEach(value => {
|
document.querySelectorAll('.j_nreply_btn').forEach(value => {
|
||||||
value.addEventListener('click', evt => {
|
value.addEventListener('click', evt => {
|
||||||
|
Loading…
Reference in New Issue
Block a user