Greasy Fork is available in English.

NSFC_conclusion_downloader

帮助你直接下载国自然结题报告

< Обсуждения NSFC_conclusion_downloader

Отзыв: Хороший — скрипт работает как нужно

今天又不能用了,不知道能否修复一下,谢谢!

好像还是不行,看不到按钮,等修复吧,

RhilipАвтор
§
Создано: 23.02.2023

官方短期内以相同方式屏蔽代码添加的下载按钮。本人无意于官方连续作对,不再更新该脚本。

以下仅做提示,

// 官方第一次屏蔽代码,检查 <button> 标签
// from https://kd.nsfc.gov.cn/js/chunk-55def51a.3de62794.js
setTimeout((function(){for(var t=document.getElementById("related").childNodes[0],e=t.childNodes,a=e.length-1;a>=0;a--)"BUTTON"===e[a].tagName&&t.removeChild(e[a])}),500)

第一次修改如下: https://greasyfork.org/zh-CN/scripts/421052-nsfc-conclusion-downloader/diff?v1=1149704&v2=1056261

// 官方第二次屏蔽代码,检查是否有 下载 字符串
// from https://kd.nsfc.gov.cn/js/chunk-3053c211.dbb4389c.js
setTimeout((function(){for(var t=document.getElementById("related").childNodes[0],e=t.childNodes,a=e.length-1;a>=0;a--)-1!==e[a].innerText.indexOf("下载")&&t.removeChild(e[a])}),500)

本次的屏蔽方式也可以同样用修改第42行的形式进行修复。


以上是我最后一次对该脚本进行回复,感谢理解。

官方短期内以相同方式屏蔽代码添加的下载按钮。本人无意于官方连续作对,不再更新该脚本。

以下仅做提示,

// 官方第一次屏蔽代码,检查 <button> 标签
// from https://kd.nsfc.gov.cn/js/chunk-55def51a.3de62794.js
setTimeout((function(){for(var t=document.getElementById("related").childNodes[0],e=t.childNodes,a=e.length-1;a>=0;a--)"BUTTON"===e[a].tagName&&t.removeChild(e[a])}),500)

第一次修改如下: https://greasyfork.org/zh-CN/scripts/421052-nsfc-conclusion-downloader/diff?v1=1149704&v2=1056261

// 官方第二次屏蔽代码,检查是否有 下载 字符串
// from https://kd.nsfc.gov.cn/js/chunk-3053c211.dbb4389c.js
setTimeout((function(){for(var t=document.getElementById("related").childNodes[0],e=t.childNodes,a=e.length-1;a>=0;a--)-1!==e[a].innerText.indexOf("下载")&&t.removeChild(e[a])}),500)

本次的屏蔽方式也可以同样用修改第42行的形式进行修复。


以上是我最后一次对该脚本进行回复,感谢理解。

感谢,it works

官方短期内以相同方式屏蔽代码添加的下载按钮。本人无意于官方连续作对,不再更新该脚本。

以下仅做提示,

// 官方第一次屏蔽代码,检查 <button> 标签
// from https://kd.nsfc.gov.cn/js/chunk-55def51a.3de62794.js
setTimeout((function(){for(var t=document.getElementById("related").childNodes[0],e=t.childNodes,a=e.length-1;a>=0;a--)"BUTTON"===e[a].tagName&&t.removeChild(e[a])}),500)

第一次修改如下: https://greasyfork.org/zh-CN/scripts/421052-nsfc-conclusion-downloader/diff?v1=1149704&v2=1056261

// 官方第二次屏蔽代码,检查是否有 下载 字符串
// from https://kd.nsfc.gov.cn/js/chunk-3053c211.dbb4389c.js
setTimeout((function(){for(var t=document.getElementById("related").childNodes[0],e=t.childNodes,a=e.length-1;a>=0;a--)-1!==e[a].innerText.indexOf("下载")&&t.removeChild(e[a])}),500)

本次的屏蔽方式也可以同样用修改第42行的形式进行修复。


以上是我最后一次对该脚本进行回复,感谢理解。

感谢,it works

官方短期内以相同方式屏蔽代码添加的下载按钮。本人无意于官方连续作对,不再更新该脚本。

以下仅做提示,

// 官方第一次屏蔽代码,检查 <button> 标签
// from https://kd.nsfc.gov.cn/js/chunk-55def51a.3de62794.js
setTimeout((function(){for(var t=document.getElementById("related").childNodes[0],e=t.childNodes,a=e.length-1;a>=0;a--)"BUTTON"===e[a].tagName&&t.removeChild(e[a])}),500)

第一次修改如下: https://greasyfork.org/zh-CN/scripts/421052-nsfc-conclusion-downloader/diff?v1=1149704&v2=1056261

// 官方第二次屏蔽代码,检查是否有 下载 字符串
// from https://kd.nsfc.gov.cn/js/chunk-3053c211.dbb4389c.js
setTimeout((function(){for(var t=document.getElementById("related").childNodes[0],e=t.childNodes,a=e.length-1;a>=0;a--)-1!==e[a].innerText.indexOf("下载")&&t.removeChild(e[a])}),500)

本次的屏蔽方式也可以同样用修改第42行的形式进行修复。


以上是我最后一次对该脚本进行回复,感谢理解。

感谢,it works

请问您是怎么操作可以work啦,可以教教我麻。太感谢了。我微信18326187761

官方短期内以相同方式屏蔽代码添加的下载按钮。本人无意于官方连续作对,不再更新该脚本。

以下仅做提示,

// 官方第一次屏蔽代码,检查 <button> 标签
// from https://kd.nsfc.gov.cn/js/chunk-55def51a.3de62794.js
setTimeout((function(){for(var t=document.getElementById("related").childNodes[0],e=t.childNodes,a=e.length-1;a>=0;a--)"BUTTON"===e[a].tagName&&t.removeChild(e[a])}),500)

第一次修改如下: https://greasyfork.org/zh-CN/scripts/421052-nsfc-conclusion-downloader/diff?v1=1149704&v2=1056261

// 官方第二次屏蔽代码,检查是否有 下载 字符串
// from https://kd.nsfc.gov.cn/js/chunk-3053c211.dbb4389c.js
setTimeout((function(){for(var t=document.getElementById("related").childNodes[0],e=t.childNodes,a=e.length-1;a>=0;a--)-1!==e[a].innerText.indexOf("下载")&&t.removeChild(e[a])}),500)

本次的屏蔽方式也可以同样用修改第42行的形式进行修复。


以上是我最后一次对该脚本进行回复,感谢理解。

thank you, it works,担心后续官家全面屏蔽,那就不好了……

官方短期内以相同方式屏蔽代码添加的下载按钮。本人无意于官方连续作对,不再更新该脚本。

以下仅做提示,

// 官方第一次屏蔽代码,检查 <button> 标签
// from https://kd.nsfc.gov.cn/js/chunk-55def51a.3de62794.js
setTimeout((function(){for(var t=document.getElementById("related").childNodes[0],e=t.childNodes,a=e.length-1;a>=0;a--)"BUTTON"===e[a].tagName&&t.removeChild(e[a])}),500)

第一次修改如下: https://greasyfork.org/zh-CN/scripts/421052-nsfc-conclusion-downloader/diff?v1=1149704&v2=1056261

// 官方第二次屏蔽代码,检查是否有 下载 字符串
// from https://kd.nsfc.gov.cn/js/chunk-3053c211.dbb4389c.js
setTimeout((function(){for(var t=document.getElementById("related").childNodes[0],e=t.childNodes,a=e.length-1;a>=0;a--)-1!==e[a].innerText.indexOf("下载")&&t.removeChild(e[a])}),500)

本次的屏蔽方式也可以同样用修改第42行的形式进行修复。


以上是我最后一次对该脚本进行回复,感谢理解。

感谢,it works

感谢作者的提示,但是我不知道是把提供的代码粘贴过去还是怎样,失败了,有没有了解的热心人提示一下。

Ответить

Войдите, чтобы ответить.