Created
July 9, 2025 16:36
-
-
Save QuartzWarrior/b2b499850e2de609f98e5e6a41b737b8 to your computer and use it in GitHub Desktop.
GPLinks Bypass ( July 2025 )
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name GPLinks Bypass | |
| // @namespace https://quartzwarrior.xyz | |
| // @version 1.0 | |
| // @description Bypasses the GPLinks timer and multi-step process by automatically redirecting to the final destination link. | |
| // @author QuartzWarrior | |
| // @match *://*/* | |
| // @grant none | |
| // @run-at document-idle | |
| // ==/UserScript== | |
| // need tampermonkey for this to work | |
| // has matching for all websites but will only work on websites with the correct cookies | |
| // so it should work as intended | |
| (async function() { | |
| 'use strict'; | |
| // --- Helper Functions --- | |
| function getCookie(name) { | |
| const value = `; ${document.cookie}`; | |
| const parts = value.split(`; ${name}=`); | |
| if (parts.length === 2) { | |
| return parts.pop().split(';').shift(); | |
| } | |
| return null; | |
| } | |
| function getStepsToGo(user_plan_id) { | |
| const id = parseInt(user_plan_id, 10); | |
| switch (id) { | |
| case 1: | |
| case 11: | |
| case 12: | |
| return 3; | |
| case 2: | |
| return 2; | |
| case 3: | |
| return 1; | |
| default: | |
| return 3; | |
| } | |
| } | |
| // --- Main Bypass Logic --- | |
| const link_id = getCookie("lid"); | |
| const pub_id = getCookie("pid"); | |
| const visitor_id = getCookie("vid"); | |
| const plan_id = getCookie("plid"); | |
| const type = getCookie("type") || ''; | |
| const mainDomain = "gplinks.com"; | |
| const redirectDomain = "gplinks.co"; | |
| if (link_id && pub_id && visitor_id && plan_id) { | |
| console.log("GPLinks Bypass Userscript: Found necessary cookies. Attempting bypass..."); | |
| try { | |
| const finalStep = getStepsToGo(plan_id); | |
| const apiUrl = `https://${mainDomain}/api/update-visitor-value?vid=${visitor_id}&value=${finalStep}&impressions=0`; | |
| const finalUrl = `https://${redirectDomain}/${link_id}/?pid=${pub_id}&vid=${visitor_id}&type=${type}`; | |
| console.log(`GPLinks Bypass Userscript: Notifying server and redirecting to: ${finalUrl}`); | |
| fetch(apiUrl, { mode: 'no-cors' }) | |
| .catch(err => console.warn("GPLinks Bypass Userscript: API call may have been blocked, but proceeding with redirect anyway.", err)); | |
| setTimeout(() => { | |
| window.location.href = finalUrl; | |
| }, 100); | |
| } catch (error) { | |
| console.error("GPLinks Bypass Userscript: An error occurred during the bypass attempt:", error); | |
| } | |
| } | |
| })(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // HOW TO USE: | |
| // GO TO YOUR GPLINKS PAGE | |
| // OPEN CONSOLE | |
| // PASTE THE BELOW IN | |
| // magic | |
| (async function() { | |
| 'use strict'; | |
| console.log("Attempting to bypass GPLinks (v2)..."); | |
| // --- Helper Functions --- | |
| function getCookie(name) { | |
| const value = `; ${document.cookie}`; | |
| const parts = value.split(`; ${name}=`); | |
| if (parts.length === 2) { | |
| return parts.pop().split(';').shift(); | |
| } | |
| return null; | |
| } | |
| function getStepsToGo(user_plan_id) { | |
| switch (user_plan_id) { | |
| case 1: | |
| case 11: | |
| case 12: | |
| return 3; | |
| case 2: | |
| return 2; | |
| case 3: | |
| return 1; | |
| default: | |
| return 3; | |
| } | |
| } | |
| // --- Main Bypass Logic --- | |
| const link_id = getCookie("lid"); | |
| const pub_id = getCookie("pid"); | |
| const visitor_id = getCookie("vid"); | |
| const plan_id = getCookie("plid"); | |
| const type = getCookie("type") || ''; | |
| const mainDomain = "gplinks.com"; | |
| const redirectDomain = "gplinks.co"; | |
| if (link_id && pub_id && visitor_id && plan_id) { | |
| try { | |
| const finalStep = getStepsToGo(parseInt(plan_id, 10)); | |
| const apiUrl = `https://${mainDomain}/api/update-visitor-value?vid=${visitor_id}&value=${finalStep}&impressions=0`; | |
| const finalUrl = `https://${redirectDomain}/${link_id}/?pid=${pub_id}&vid=${visitor_id}&type=${type}`; | |
| console.log(`Notifying server that step ${finalStep} is complete...`); | |
| await fetch(apiUrl, { | |
| mode: 'no-cors' | |
| }).catch(err => console.warn("API call may have been blocked, but proceeding with redirect anyway.", err)); | |
| console.log(`Bypass successful! Redirecting to: ${finalUrl}`); | |
| window.location.href = finalUrl; | |
| } catch (error) { | |
| console.error("An error occurred during the bypass attempt:", error); | |
| } | |
| } else { | |
| console.error("Bypass failed: Could not find all required cookies (lid, pid, vid, plid)."); | |
| console.log("Please make sure you are on the correct page and the original script has run at least once."); | |
| } | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment