标签:function 查重率 span text 维普 修改 jghtny eq children
适用网站
我自己学校的机构用户入口(维普论文检测官方)个人入口不知道是不是一样的。
预装环境
使用油猴桃等脚本管理插件,并启用,刷新维普论文界面立刻生效,能从页面显示的数据上更改查重相似率、通过率、自写率、检测结果、通过不通过数目统计、高频词、相似片段数目。不过他会对所有查重报告生效,进行统一修改,暂时不能单独修改。
脚本使用效果
原图
设定参数
执行脚本后
说明
是不是可以在室友或同学面前炫耀一番,如果别人没有通过,你还能用这个安慰他,说你自己也 “没有通过” 对吧,对于那些通过且查重率比较低的人,你可以直接调整查重率为0%,震惊一下他人。里面一些注释掉的语句是用来执行一部分,不全执行的,可以自己尝试琢磨一下。
源码
// ==UserScript==
// @name 查重率修改
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author 高俊佶
// @match *://vpcs.cqvip.com/*
// @match *://118.178.194.46:9980/*
// @exclude http://vpcs.cqvip.com/organ/lib/szai/
// @require https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js
// @grant none
// ==/UserScript==
(function() {
var n,c="66.66",nc="33.34",p="未通过",s="666",w="帅哥,英俊,潇洒,迷人";//n为论文个数,c为两位小数查重率不带%,nc为两位小数自写率不带%,p为显示查重结果[通过/未通过],s为相似片段,w为高频词。
//var n,c="100.00",nc="0.00",p="未通过",s="999",w="帅哥,英俊,潇洒,迷人";//n为论文个数,c为两位小数查重率不带%,nc为两位小数自写率不带%,p为显示查重结果[通过/未通过],s为相似片段,w为高频词。
jQuery.fn.wait = function (func, times, interval) {
var _times = times || -1, //100次
_interval = interval || 20, //20毫秒每次
_self = this,
_selector = this.selector, //选择器
_iIntervalID; //定时器id
if( this.length ){ //如果已经获取到了,就直接执行函数
func && func.call(this);
} else {
_iIntervalID = setInterval(function() {
if(!_times) { //是0就退出
clearInterval(_iIntervalID);
}
_times <= 0 || _times--; //如果是正数就 --
_self = $(_selector); //再次选择
if( _self.length ) { //判断是否取到
func && func.call(_self);
clearInterval(_iIntervalID);
}
}, _interval);
}
return this;
}
function no_pass() {//修改相似率和查重结果
//console.log($(".jghtny-lunwenchoujian-qh").children("img").eq(0).prop("src").slice(-7,-4));
$("#datatable tbody tr").each(function() {
console.log($(this).children("td").eq(9).text());
$(this).children("td").eq(9).text(c+"%");
$(this).children("td").eq(10).text(p);
});
}
function all() {//修改“全部”通过为未通过
n = $(".jghtny-lwk-conten-title-1.vpcs-tongjitext").children("span").eq(0).children("a").text();
$(".jghtny-lwk-conten-title-1.vpcs-tongjitext").children("span").eq(1).children("a").text("0");
$(".jghtny-lwk-conten-title-1.vpcs-tongjitext").children("span").eq(2).children("a").text(n);
no_pass();
}
function have() {//修改“完成检测论文”通过为未通过
n = $(".jghtny-lwk-conten-title-1.vpcs-tongjitext").children("span").eq(0).children("a").text();
$(".jghtny-lwk-conten-title-1.vpcs-tongjitext").children("span").eq(1).children("a").text(n);
$(".jghtny-lwk-conten-title-1.vpcs-tongjitext").children("span").eq(0).children("a").text("0");
no_pass();
}
$(".jghtny-hydl-nrxq-nr-table.jghtny-hydl-nrxq-nr-table-2.jghtny-hydl-nrxq-nr-table-margin-1").wait(function() {//监听登录后主界面表格元素加载完成
setTimeout(function(){
n = $(".jghtny-hydl-nrxq-nr-table.jghtny-hydl-nrxq-nr-table-2.jghtny-hydl-nrxq-nr-table-margin-1 tbody").children("tr").eq(1).children("td").eq(0).text().replace(" \n ", "").replace("\n \n ", "");
$(".jghtny-hydl-nrxq-nr-table.jghtny-hydl-nrxq-nr-table-2.jghtny-hydl-nrxq-nr-table-margin-1 tbody").children("tr").eq(1).children("td").eq(1).text(" \n 0\n \n ");
$(".jghtny-hydl-nrxq-nr-table.jghtny-hydl-nrxq-nr-table-2.jghtny-hydl-nrxq-nr-table-margin-1 tbody").children("tr").eq(1).children("td").eq(2).text(" \n " + n + "\n \n ");
}, 500);
})
$(".report-bdl-title-lxsb-span").wait(function() {//监听对比报告
$(".report-bdl-title-lxsb-span").children("span").text(c);
})
$(".report-scr-jcjg-qwxsb-bl").wait(function() {//监听片段对比报告
$(".report-scr-jcjg-qwxsb-bl").children("span").text(c);
$(".report-scr-jcjg-bil").eq(0).children("span").eq(2).children("span").text(c);
$(".report-scr-jcjg-bil.report-scr-qtzb").eq(0).children("span").children("span").text(nc);
$(".report-scr-jcjg-bil.report-scr-qtzb").eq(1).children("span").children("span").text(w);
$(".report-scr-xspd-left-val").eq(0).children("span").text(s);
})
$("#datatable").wait(function() {//监听检测报告默认界面
setTimeout(all, 1000);
//setTimeout(no_pass, 1000);
})
$(".jghtny-lunwenchoujian-qh img").eq(0).click(function() {//监听检测报告点击“全部”
setTimeout(all, 500);
//setTimeout(no_pass, 500);
})
$(".jghtny-lunwenchoujian-qh img").eq(1).click(function() {//监听检测报告点击“完成检测论文”
setTimeout(have, 500);
//setTimeout(no_pass, 500);
})
})();
标签:function,查重率,span,text,维普,修改,jghtny,eq,children 来源: https://blog.csdn.net/user_from_future/article/details/120927049
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。