Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let time = 15
- let start = false
- let pages = [
- 'https://www.instagram.com/shnurovs/',
- 'https://www.instagram.com/urgantcom/',
- 'https://www.instagram.com/norimyxxxo/',
- 'https://www.instagram.com/yurydud/',
- 'https://www.instagram.com/xenia_sobchak/',
- 'https://www.instagram.com/samoylovaoxana/',
- 'https://www.instagram.com/pavelvolyaofficial/',
- 'https://www.instagram.com/samburskaya/',
- 'https://www.instagram.com/missalena.92/',
- 'https://www.instagram.com/buzova86/',
- 'https://www.instagram.com/ververa/',
- 'https://www.instagram.com/muradosmann/',
- 'https://www.instagram.com/borodylia/',
- 'https://www.instagram.com/timatiofficial/',
- 'https://www.instagram.com/irinashayk/',
- 'https://www.instagram.com/mikhail_litvin/',
- 'https://www.instagram.com/_agentgirl_/',
- 'https://www.instagram.com/gan_13_/',
- 'https://www.instagram.com/karinakross/',
- 'https://www.instagram.com/samoylovaoxana/',
- ]
- $(document).ready(function(){
- let interval;
- let timeout;
- var url = new URL(window.location.href);
- var started = url.searchParams.get("started");
- var unsubscibe = url.searchParams.get("unsubscibe");
- var subscribe = url.searchParams.get("subscribe");
- let urlarr = window.location.href.split('/')
- if(started === 'true'){
- $('.nZSzR').prepend('<button id="stop">STOP</button>')
- start()
- }
- if(unsubscibe != null){
- let index = parseInt(unsubscibe)
- console.log("unsubscibe " + unsubscibe)
- if(index >= pages.length - 1){
- console.log("Отписались от говна")
- return
- }
- index++
- let a = document.getElementsByClassName("_5f5mN");
- if(a[0].innerText == "Following"){
- a[0].click()
- b = document.getElementsByClassName("-Cab_");
- b[0].click()
- console.log("Отписка");
- }else{
- window.location.href = pages[index] + "?unsubscibe=" + index;
- }
- timeout = setTimeout(function() {
- window.location.href = pages[index] + "?unsubscibe=" + index;
- }, 3000);
- }
- if(subscribe != null){
- let index = parseInt(subscribe)
- console.log("subscribe" + subscribe)
- if(index >= pages.length - 1){
- console.log("Подписались на говно")
- return
- }
- index++
- let a = document.getElementsByClassName("_5f5mN");
- if(a[0].innerText != "Following"){
- a[0].click()
- console.log("Подписка");
- }else{
- window.location.href = pages[index] + "?subscribe=" + index;
- }
- timeout = setTimeout(function() {
- window.location.href = pages[index] + "?subscribe=" + index;
- }, 30000);
- }
- $('.nZSzR').prepend('<button id="start">START</button>')
- $('.nZSzR').prepend('<button id="unsubscibe">unsubscibe</button>')
- $('.nZSzR').prepend('<button id="subscribe">subscribe</button>')
- $('#stop').on('click', function(){
- console.log('Скрипт остановлен.')
- clearTimeout(timeout)
- clearInterval(interval)
- })
- $('#start').on('click', function(){
- clearTimeout(timeout)
- start()
- })
- $('#unsubscibe').on('click', function(){
- window.location.href = pages[0] + "?unsubscibe=0";
- })
- $('#subscribe').on('click', function(){
- window.location.href = pages[0] + "?subscribe=0";
- })
- function start(){
- for(let i = 0; i < pages.length; i++){
- if(pages[i] == 'https://www.instagram.com/' + urlarr[3] + "/"){
- interval = setInterval(nakr, time * 1000);
- console.log("Скрипт запущен.");
- return
- }
- }
- window.location.href = pages[index] + "?started=true";
- }
- function nakr() {
- let a = document.getElementsByClassName("_5f5mN");
- if(a[0].innerText == "Following"){
- a[0].click()
- b = document.getElementsByClassName("-Cab_");
- b[0].click()
- console.log("Отписка");
- }else{
- a[0].click()
- console.log("Подписка");
- }
- for(let i = 0; i < pages.length; i++){
- if(pages[i] == 'https://www.instagram.com/' + urlarr[3] + "/"){
- let page;
- if(i == pages.length - 1){
- page = 0
- }else{
- page = i + 1
- }
- setTimeout(function() {
- window.location.href = pages[page] + "?started=true";
- }, 3000);
- break;
- }
- }
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement