Greasy Fork is available in English.
Lấy link Vip Fshare
当前为
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.greasyfork.icu/scripts/11950/69774/Fshare%20Auto%20Login.js
// ==UserScript==
// @name Fshare Auto Login
// @description Lấy link Vip Fshare
// @namespace ABPVN
// @include https://www.fshare.vn/file/*
// @version 1
// @grant none
// ==/UserScript==
function Encrypt(plan){var alphabet='!@#$%^&*()_+-=`|\\\/{}[];:\'"<>?.,0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'.split('');var max=alphabet.length;var code=Math.floor((Math.random()*max)+5)-5;while(code%alphabet.length==0){code=Math.floor((Math.random()*max)+5)-5}var plan_char=plan.split('');for(var i=0;i<plan_char.length;i++){for(var j=0;j<alphabet.length;j++){if(plan_char[i]===alphabet[j]){var index=(j+code)%alphabet.length;plan_char[i]=alphabet[index];break}}}var str='';for(var i=0;i<plan_char.length;i++){str+=plan_char[i]}return{code:code,str:str}}function Decrypt(crypted,code){var alphabet='!@#$%^&*()_+-=`|\\\/{}[];:\'"<>?.,0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'.split('');var encrypted_char=crypted.split('');var str='';for(var i=0;i<encrypted_char.length;i++){for(var j=0;j<alphabet.length;j++){if(encrypted_char[i]===alphabet[j]){var index=j-code;if(index<0)index+=alphabet.length;index=index%alphabet.length;encrypted_char[i]=alphabet[index];break}}}var str='';for(var i=0;i<encrypted_char.length;i++){str+=encrypted_char[i]}var tmp=str.split('|');return{email:tmp[0],password:tmp[1],remember:'0',}}function deleteAllCookies(){var cookies=document.cookie.split(";");for(var i=0;i<cookies.length;i++){var cookie=cookies[i];var eqPos=cookie.indexOf("=");var name=eqPos>-1?cookie.substr(0,eqPos):cookie;document.cookie=name+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT"}}function getacc(){jqxhr=$.ajax({url:'https://www.webanh.tk/fshare/index.php',type:'GET',async:false,success:function(data){var tmp=data}});var tmp=jqxhr.responseText;tmp=tmp.split('~');return Decrypt(tmp[1].substring(0,tmp[1].length-1),parseInt(tmp[0]))}function FSAutoLogin(){var checknode=node=$('.dropdown span')[0];if(checknode.className!="glyphicon glyphicon-cog"){deleteAllCookies();var LoginForm=getacc();var fs_csrf=document.getElementsByName('fs_csrf')[0].value;$.ajax({url:'/login',type:'POST',data:{fs_csrf:fs_csrf,LoginForm:LoginForm,yt0:'Đăng+Nhập'},complete:function(data){location.href=location.href;setTimeout(function(){$.ajax({url:'/logout',type:'GET',complete:function(){$.alert({success:true,message:'ABPVN: Đã đăng xuất khỏi Fshare.vn'})}})},500)},async:false})}}window.addEventListener('DOMContentLoaded',function(){FSAutoLogin()});