Welcome, Guest. Please Login or Register
  HomeHelpSearchLoginRegister Latest Rules  
 
Page Index Toggle Pages: 1
Send Topic Print
PTC Related Hacks - Tips n Tricks (Ways to simplify your PTC life) (Read 788 times)
SolidSnake
Forum Administrator
*****
Offline


I'm impossible to forget,
but I'm hard to remember

Posts: 3051
Center of the Universe
Gender: male
PTC Related Hacks - Tips n Tricks (Ways to simplify your PTC life)
12th Nov, 2018 at 2:02pm
 
I would like to dedicate this thread to simple tricks that we can do to make our life easier on PTCs we work on daily.

Everytime I find a way to speed up our process clicking process, sometimes just to reduce the number of clicks we do or the time it requires to complete repeatable processes, I will add my tips to this post.

This could include links to specific threads, pieces of code, or external links that I tend to look up every now and then so I would like to keep them all in one place.

This is not a discussion thread but will be a sticky collection of useful things for quick access.

If you would like an addition to this list feel free to contact me or state it in a relative program-specific discussion thread.

I will then check it out and add it here.

List of entries:
  1. Forcefully Display Ads (PTC Evolution Scripts)
  2. Select Rented Referrals expiring in X days (PTC Evolution Scripts)
  3. Select Rented Referrals that haven't clicked for more than X days (PTC Evolution Scripts)
  4. YouGetProfit RR Extension base prices table
  5. How to block ad networks without an adblocker on a Windows based PC
Back to top
« Last Edit: 4th Jan, 2019 at 6:00pm by SolidSnake »  
WWW  
IP Logged
 
SolidSnake
Forum Administrator
*****
Offline


I'm impossible to forget,
but I'm hard to remember

Posts: 3051
Center of the Universe
Gender: male
Re: PTC Related Hacks - Tips n Tricks (Ways to simplify your PTC life)
Reply #1 - 12th Nov, 2018 at 2:15pm
 
Forcefully Display Ads
(PTC Evolution Scripts)


I've just figured out a way to bypass the adblocker-blocker system on the view ads page of PTC Evolution scripts.

It's been a few months now that I've realized that even though I have added the ads page of all PTCs to my adblock's whitelist somehow the ads still don't show up.. even if I disable all my adblockers they are still hidden.

So everytime I loaded the page I would have to right click on inspect element find the ads' css class and bypass it for the ads to become visible and clickable.

Now I've figured out a way to simplify that process and would like to share it with you here.

All it takes is a new bookmark that is easily accessible on my browser that has the following code in the URL field:
Code (Javascript):
javascript:(function(){$( ':root .ad-block, :root .ad-content, :root .ad-footer' ).attr( 'style', 'display: block !important' )})(); 


Now assuming that the "view_ads" page is whitelisted in the browser's adblockers, all it takes is to click on that bookmark to make the ads show up.
Back to top
« Last Edit: 21st Nov, 2018 at 10:50am by SolidSnake »  
WWW  
IP Logged
 
SolidSnake
Forum Administrator
*****
Offline


I'm impossible to forget,
but I'm hard to remember

Posts: 3051
Center of the Universe
Gender: male
Re: PTC Related Hacks - Tips n Tricks (Ways to simplify your PTC life)
Reply #2 - 12th Nov, 2018 at 4:52pm
 
Select Rented Referrals expiring in X days
(PTC Evolution Scripts)


I've been using a javascript code to automatically select all RRs expiring in X days but it was kinda complicated to use so far, and required the user to open the console to insert the commands. Now I have simplified it again with a simple bookmark link.

You just need to set the days and the price variable to your liking.
Days: select all referrals in exactly or less than X days. Etc if the value is 14 then it will select referals expiring in 13 days, 14 days but it will not select those expiring in 15 days.
Price: insert the renewal price per referral for your preferred extension length.

To use the code simply copy it and paste it to notepad in order to set your own values.
Then copy the full code and paste it in a bookmark URL (name it as you wish).

Code (Javascript):
javascript:(function(){
var days = 15; /*<-- Adjust this number to select referrals expiring in X days--*/
var price = 0.528; /*<-- Adjust this number to set the price per referral extension--*/
$('#tablelist > tr > td').filter(function(){ var pattern = / days/;
	if(pattern.test($(this).text())){return $(this).text().replace(/ days/i, "") <= days}
}).parent().children().has('input').children().prop('checked', true);
$('#rentedbar').show();
var rrs = $('#tablelist > tr > td input:checked').length;
alert(rrs + ' RRs expiring in ' + days + ' days require $' + (rrs * price).toFixed(5) + ' to be extended.');
})(); 


Once in the RRs page, you can now click on the bookmark and it will automatically select all referrals based on your setting, and will throw a popup letting you know of the actual amount that you will need to pay for them, so it also saves you time by doing the math. Wink

After clicking ok in the popup you can now select to renew them for your preferred duration at the bottom of the page just like you normally do.
Back to top
« Last Edit: 21st Nov, 2018 at 10:50am by SolidSnake »  
WWW  
IP Logged
 
SolidSnake
Forum Administrator
*****
Offline


I'm impossible to forget,
but I'm hard to remember

Posts: 3051
Center of the Universe
Gender: male
Re: PTC Related Hacks - Tips n Tricks (Ways to simplify your PTC life)
Reply #3 - 21st Nov, 2018 at 10:46am
 
Select Rented Referrals that haven't clicked for more than X days
(PTC Evolution Scripts)


I've finally got time to fix my function that selects RRs for recycling once again in a bookmark URL.
Just like the previous commands, you need to create a new bookmark in your browser and insert the following code to the URL field.

If you would like to adjust the "days" or the "recyclePrice" value, you can do so by copy-pasting the above code to a notepad then inserting your prefered values and then copy-pasting it to the URL field of the bookmark.

Code (Javascript):
javascript:(function(){
var days = 6; /*<-- Adjust this to select RRs that haven't clicked for more than X days--*/
var recyclePrice = 0.05; /*<-- Adjust this to the recycling price per referral--*/
var date = new Date();
date.setDate(date.getDate() - (days+1));
var dd = date.getDate();
var mm = date.getMonth()+1;
var yyyy = date.getFullYear();
if(dd<10) {dd = '0'+dd};
if(mm<10) {mm = '0'+mm};
date = dd + '-' + mm + '-' + yyyy;
$('#tablelist > tr > td:nth-child(4)').filter(function() { var i=0;
	var inputDate = date.split("-");
	inputDate = new Date(inputDate[2], inputDate[1]-1, inputDate[0]);
	var foundDate = $(this).text();
	foundDate = foundDate.split("-");
	foundDate = new Date(foundDate[2], foundDate[1]-1, foundDate[0]);
	if (foundDate <= inputDate){ i++; return true; }
}).parent().children().has('input').children().prop('checked', true);
$('#rentedbar').show(); $('#tablelist > tr > td > input:checked').length;
var rrs = $('#tablelist > tr > td input:checked').length;
alert(rrs + ' RRs that haven\'t clicked since ' + date + ' require $' + (rrs * recyclePrice).toFixed(5) + ' to be recycled.');
})(); 


Here's how it works:

1. Browse to the RRs page (on PTCEvolution scripted PTCs).
2. Sort the RRs by the "Last Click" column in a way that older dates are at the top.
3. Click the bookmark with the above code.

You should get a popup stating the number of RRs that will be selected and the price you'll have to pay.
Click OK and they get selected so you can now simply click the recycling button at the bottom.
Back to top
 
WWW  
IP Logged
 
SolidSnake
Forum Administrator
*****
Offline


I'm impossible to forget,
but I'm hard to remember

Posts: 3051
Center of the Universe
Gender: male
Re: PTC Related Hacks - Tips n Tricks (Ways to simplify your PTC life)
Reply #4 - 21st Nov, 2018 at 11:33am
 
YouGetProfit RR Extension base prices table


I've always found myself looking this table up and it seems that it now has been removed from the original thread it was initially posted on YGP.
So, I found an old backup of mine and will have it visible here for us to easily find it.

...
Back to top
« Last Edit: 21st Nov, 2018 at 11:53am by SolidSnake »  
WWW  
IP Logged
 
SolidSnake
Forum Administrator
*****
Offline


I'm impossible to forget,
but I'm hard to remember

Posts: 3051
Center of the Universe
Gender: male
Re: PTC Related Hacks - Tips n Tricks (Ways to simplify your PTC life)
Reply #5 - 29th Dec, 2018 at 2:13pm
 
How to block ad networks without an adblocker on a Windows based PC


With the latest wave of annoying and heavily intrusive (if not malware-like) advertising networks, and the more anti-adblocking techniques used by sites, it's been getting harder and harder to block these pop up/under ads while being able to view the actual sites you want to visit.

So, I decided to share a simpler way of blocking whole networks from being able to send you any content without being spotted by anti-adblocking methods. Here's how:

On your Windows PC:
  1. Click "Start" and type "notepad.exe". This should bring up windows search and display the "notepad.exe" application on top of them.
  2. Right Click it and select "Run as Administrator". Select "Yes" if the User Account Control pops up a message requesting your permission to grant access to the application.
  3. Select "File -> Open" in the notepad's menu.
  4. Browse to the folder "C:\Windows\System32\drivers\etc" (you can even paste it in the "File Name" field and press "Enter" on your keyboard to directly browse to it).
  5. Change the extension field on the right of the "File Name" field, from "Text Documents (.txt)" to "All Files (*.*)".
  6. Select the "hosts" file then click "Open".
  7. (Optional) You can keep a backup of the file's contents in a new text file just in case you break something in order to restore it later.
  8. Now at the bottom of the file's contents, you can add one line for each advertising network that you want to block pointing it to your localhost IP (127.0.0.1) just like below:

    Code:
    127.0.0.1	pushmejs.com
    127.0.0.1	oktpage.com
    127.0.0.1	popads.net
    127.0.0.1	mellowads.com
    127.0.0.1	nutaku.net 
    
    


    These are my own blocked ad networks, you can always add as many as you want. Just use a tab after the IP address and add the domain name of the network you want to block.
  9. Once you're done click save to update the file with your changes.

From now on content from these sites will not be able to be loaded and your browsing experience will be cleaner and faster as they tend to also slow down page loading.

Please PM me if you require assistance in any step.
Back to top
« Last Edit: 9th Jul, 2019 at 10:34am by SolidSnake »  
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print