Compare commits
2 Commits
fab39732c5
...
a6c3d9a96d
Author | SHA1 | Date | |
---|---|---|---|
a6c3d9a96d | |||
bf45e89dcb |
@ -1,7 +1,7 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name tieba page
|
// @name tieba page
|
||||||
// @namespace http://tampermonkey.net/
|
// @namespace http://tampermonkey.net/
|
||||||
// @version 1.024
|
// @version 1.025
|
||||||
// @author fthvgb1
|
// @author fthvgb1
|
||||||
// @match https://tieba.baidu.com/*
|
// @match https://tieba.baidu.com/*
|
||||||
// @match https://tiebac.baidu.com/*
|
// @match https://tiebac.baidu.com/*
|
||||||
@ -27,7 +27,7 @@
|
|||||||
imgs.forEach(value => {
|
imgs.forEach(value => {
|
||||||
let h = value.dataset.url.replace('tiebapic', 'imgsrc').replace('tiebapic', 'imgsrc');
|
let h = value.dataset.url.replace('tiebapic', 'imgsrc').replace('tiebapic', 'imgsrc');
|
||||||
if (h.indexOf('http://') === 0) {
|
if (h.indexOf('http://') === 0) {
|
||||||
h = 'https://image.baidu.com/search/down?url=' + h;
|
//h = 'https://image.baidu.com/search/down?url=' + h;
|
||||||
}
|
}
|
||||||
let tmp = decodeURIComponent(h.split('&src=')[1]).split('/');
|
let tmp = decodeURIComponent(h.split('&src=')[1]).split('/');
|
||||||
tmp = tmp[tmp.length - 1];
|
tmp = tmp[tmp.length - 1];
|
||||||
|
Loading…
Reference in New Issue
Block a user