討論 » 開發

Needs some help guys

§
發表於:2016-12-10
編輯:2016-12-10

Needs some help guys

No one could help me until now
I'm trying to make Bypasser for ani-share.com this site like adf.ly you need to click and wait to get skip button

Test Link Click Here

My script until now can skip wait time
but unable to auto click button

this scrip inside ani-share.com site who is responsible for redirect
is there is any way to replace var a with document.location.replace( var a );

 

This is my Script

// ==UserScript==
// @name          Auto Bypasser For Ani-Share.com
// @namespace     Skip Ani-Share.com Wait Time
// @description   Bypass  Wait Time
// @version       0.2
// @author        Another Dimension
// @include       http*://ani-share.com/*
// ==/UserScript==

(function() {
	function Generate () {
		$("#showlink").delay(80).fadeIn("fast");
		$("#pleasewait").fadeIn("fast");
	} Generate ();

    $('#headimg').remove();
    $('#pleasewait').remove();
    $('body,html').animate({scrollTop:0}, 100);
    document.querySelector('.soractrl').appendChild(document.querySelector('.spoint'));
    document.querySelector('.soractrl img').remove();
    document.querySelector('.spoint').src = 'http://static.wixstatic.com/media/e9bf02_dda835f5d45e4f3eb70e3d9d623137f1.png';
    document.querySelector('.spoint').onclick = function () { changeLink(); window.close(); };
})(); 

Test Link Full Url

http://ani-share.com/the-general-benefits-of-insurance/?get=ZXU3Q1E4cDNCdnFUazVuVDNja01QdTMxaHBwbGVyaVJXV3pqWkFoWkNMNFdlRGQwQVh2YkxLTzlvbmFxelkrZg==#generate
woxxom管理員
§
發表於:2016-12-10
編輯:2016-12-10

To call functions from the page context directly you need either to declare @grant none in metablock (this will expose all your global variables/functions too so use an IIFE) or use a universal method: unsafeWindow.changeLink() instead of changeLink() Alternatively, you can parse the .text of all script elements and extract the link url via regexp and navigate to it directly via location.href =

§
發表於:2016-12-10

@wOxxOm
Thanks for your answer

Could you please tell me how i can parse the .text and extract the link url via regexp and navigate to it directly via location.href

I'm Still Noob in Coding

woxxom管理員
§
發表於:2016-12-10

It might be easier to override window.open with your own function like this:

unsafeWindow.open = exportFunction(function(url, name, features) {
    console.log('Intercepted window.open() for', url);
    location.href = url;
}, unsafeWindow);

發表回覆

登入以回復