MCPcopy Index your code
hub / github.com/XIU2/UserScript / originalPic

Function originalPic

Zhihu-Enhanced.user.js:1565–1567  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1563
1564// 默认高清原图(无水印)
1565function originalPic(){
1566 document.querySelectorAll('img[data-original][data-original-token][data-lazy-status]:not([data-original-xiu]):not(.comment_sticker):not(.Avatar)').forEach(function(one){one.src = 'https://' + one.dataset.original.split('/')[2] + '/' + one.dataset.originalToken + '.webp'; one.dataset.originalXiu = 'true';});
1567}
1568
1569
1570// 默认站外直链,修改自:https://greasyfork.org/scripts/402808(从 JQuery 改为原生 JavaScript,且精简、优化了代码)

Callers 1

startFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected