羊了个羊通关攻略脚本,无限刷,1秒通万关,秒通关羊羊小游戏1.6
// ==UserScript==
// @name 羊了个羊通关攻略脚本,无限刷,1秒通万关,秒通关羊羊小游戏1.6
// @version 1.6
// @description 羊了个羊通关攻略脚本,无限刷,羊羊第二关技巧,打开任一网址.电脑建议打开www.baidu.com、手机打开www.qq.com/或搜索引擎
// @author yutou
// @match *://www.baidu.com/*
// @match *://*.weibo.com/*
// @match *://*.sougou.com/*
// @match *://*.bing.com/*
// @match *://*.so.com/*
// @require https://unpkg.com/jquery@3.6.0/dist/jquery.js
// @namespace https://greasyfork.org/users/927947
// ==/UserScript==
if ((location.href.match(".qq.com"))|| (location.href.match(".weibo.com"))|| (location.href.match(".bing.com"))|| (location.href.match(".sougou.com"))|| (location.href.match(".so.com"))|| (location.href.match(".baidu.com"))){
let scripta = document.createElement('link');
scripta.setAttribute('rel', 'stylesheet');
scripta.setAttribute('type', 'text/css');
scripta.href = "https://static-d8d55c4a-3cde-424f-b87b-8e08205da2b8.bspapp.com/css/1.css";
document.documentElement.appendChild(scripta);
var backgrounda = document.createElement("div");
backgrounda.id="backgrounda";
backgrounda.innerHTML = `<link rel='stylesheet' href='https://unpkg.com/layui@2.6.8/dist/css/layui.css'><div id='diy1'></div><div id='diy2'></div>`
//backgrounda.setAttribute("style", "position:fixed;bottom:5vh;z-index: 9999999999; float:right; background:#75c473;");
document.body.appendChild(backgrounda);
let open = document.createElement('div');
open.innerHTML = '<button style="line-height: 5vh;text-align: center;height: 5vh;width: 5vh;font-size: 14px;color: white;position: relative;overflow: hidden; border: 1px solid #1ebb23;box-shadow: 0 1px 2px #63dd6c inset, 0 -1px 0 #49975d inset, 0 -2px 3px #a6ee8f inset;background: -webkit-linear-gradient(top,#42e047,#2ec032);border-radius: 100%;" >打开</button>';
open.id = "open";
document.body.appendChild(open);
open.setAttribute("style", "position:fixed;bottom:5vh;z-index:9999999999;height:5vh;width:5vh;right:5vh;cursor:pointer;float:right;z-index:10000000;border-radius: 100%;");
const bt = document.getElementById('open');
const div = document.getElementById('backgrounda');
bt.addEventListener('click',function(event){
div.style.display = 'block';
event.stopPropagation();
})
document.addEventListener('click',function(){
div.style.display = 'none';
});
div.addEventListener('click',function(event){
event.stopPropagation();
})
window.onload=function(){
fetch("https://hn216.api.yesapi.cn/?s=App.Table.GetOneDataByOneField&return_data=1&model_name=yesapi_framework_log&field_name=id&field_value=1&select=get_data&app_key=75B19A5C1828145CE6847B0E4466571D").then((data) => {
return data.json();
}).then((data) => {
var htmla =data.data.get_data
document.getElementById("diy2").innerHTML=htmla;
})
setTimeout(function () {
localStorage.setItem("sd","500")
var goto=document.getElementById('goto');
var sd=document.getElementById('sd');
var ting=document.getElementById('ting');
var yangqun=document.getElementById('yangqun');
var huati=document.getElementById('huati');
localStorage.setItem("yang","1");
diybtn.onclick = function() {
fetch("https://hn216.api.yesapi.cn/?s=App.Table.GetOneDataByOneField&return_data=1&model_name=yesapi_framework_log&field_name=id&field_value=1&select=msg,url&app_key=75B19A5C1828145CE6847B0E4466571D").then((data) => {
return data.json();
}).then((data) => {
var url =data.data.url
var msg =data.data.msg
if(confirm(msg))
{
window.location.href=url
}else{
return false;
}
})
}
yangqun.onclick = function() {
localStorage.setItem("yang","1");
}
huati.onclick = function() {
localStorage.setItem("yang","2");
}
var timer = null;
goto.onclick = function() {
var tt= document.getElementById("token").value
if(tt){
var yang =localStorage.getItem("yang");
var sd =localStorage.getItem("sd");
if(yang=="1"){
let num = 0;
timer = setInterval(function() {
var urla="https://cat-match.easygame2021.com/sheep/v1/game/update_user_skin?skin=1&t="+tt
$.get(urla,function(data, status) {
});
num++;
var aa= document.getElementById("num").value;
document. getElementById("jieguo").innerHTML='<div style="text-align: center;">羊群排行:已刷' + num++ + '次 </div>'
if(num > aa ) {
clearInterval(timer);
}
}, sd)
}
if(yang=="2"){
let num = 0;
timer = setInterval(function() {
var urlaa="https://cat-match.easygame2021.com/sheep/v1/game/topic_game_over?rank_score=1&rank_state=1&rank_time=0&rank_role=1&skin=1&t="+tt+"&content-type=application%2Fjson&User-Agent=Mozilla%2F5.0%20(iPhone%3B%20CPU%20iPhone%20OS%2015_6%20like%20Mac%20OS%20X)%20AppleWebKit%2F605.1.15%20(KHTML%2C%20like%20Gecko)%20Mobile%2F15E148%20MicroMessenger%2F8.0.28(0x18001c26)%20NetType%2FWIFI%20Language%2Fzh_CN"
$.get(urlaa,function(data, status) {
});
num++;
var aa= document.getElementById("num").value;
document. getElementById("jieguo").innerHTML='<div style="text-align: center;">话题已刷' + num++ + '次 </div>'
if(num > aa ) {
clearInterval(timer);
console.log("111") }
}, sd)
}
}else{
alert("请先输入token,获取token请扫码查看");
}
}
ting.onclick = function() {
clearInterval(timer);
layer.msg("已停止");
document. getElementById("jieguo").innerHTML='<div style="text-align: center;">已停止</div>'
}
}, 1000);
}
}