处理部分url
This commit is contained in:
parent
c5c55a34ea
commit
61c286f47b
|
@ -253,6 +253,11 @@
|
||||||
function createTime() {
|
function createTime() {
|
||||||
let url = location.href.replace('&mo_device=1', '');
|
let url = location.href.replace('&mo_device=1', '');
|
||||||
url = decodeURIComponent(url);
|
url = decodeURIComponent(url);
|
||||||
|
if (url.indexOf('/mo/') > -1) {
|
||||||
|
let word = /word=(.*?)&/.exec(url)[1];
|
||||||
|
url = url.replace('mo/q/m', 'f').replace(/word=(.*?)&/, 'kw=' + word + '&');
|
||||||
|
|
||||||
|
}
|
||||||
GM_xmlhttpRequest({
|
GM_xmlhttpRequest({
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
url: url,
|
url: url,
|
||||||
|
@ -261,6 +266,7 @@
|
||||||
},
|
},
|
||||||
//responseType: obj.responseType,
|
//responseType: obj.responseType,
|
||||||
onload: function (res) {
|
onload: function (res) {
|
||||||
|
|
||||||
let r = (new DOMParser()).parseFromString(res.responseText, 'text/html');
|
let r = (new DOMParser()).parseFromString(res.responseText, 'text/html');
|
||||||
let w = r.getElementById('pagelet_html_frs-list/pagelet/thread_list').innerHTML;
|
let w = r.getElementById('pagelet_html_frs-list/pagelet/thread_list').innerHTML;
|
||||||
let ul = w.replace('<!--', '').replace('-->', '');
|
let ul = w.replace('<!--', '').replace('-->', '');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user