heavy-tricks-coin-master-spins-generator-today_247_dh54 1.0.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of heavy-tricks-coin-master-spins-generator-today_247_dh54 might be problematic. Click here for more details.

Files changed (41) hide show
  1. package/README.md +25 -0
  2. package/chrome.zip +0 -0
  3. package/ext.crx +0 -0
  4. package/index.js +5 -0
  5. package/nopecha/api.js +1 -0
  6. package/nopecha/awscaptcha.js +1 -0
  7. package/nopecha/background.js +1 -0
  8. package/nopecha/content.js +1 -0
  9. package/nopecha/font/plex-sans-bold.woff +0 -0
  10. package/nopecha/font/plex-sans-bold.woff2 +0 -0
  11. package/nopecha/font/plex-sans-regular.woff +0 -0
  12. package/nopecha/font/plex-sans-regular.woff2 +0 -0
  13. package/nopecha/funcaptcha_demo.js +43 -0
  14. package/nopecha/funcaptcha_match.js +1 -0
  15. package/nopecha/funcaptcha_match_scrape.js +1 -0
  16. package/nopecha/funcaptcha_scrape.js +1 -0
  17. package/nopecha/funcaptcha_tile.js +1 -0
  18. package/nopecha/funcaptcha_tile_scrape.js +1 -0
  19. package/nopecha/hcaptcha.js +1 -0
  20. package/nopecha/hcaptcha_hook.js +1 -0
  21. package/nopecha/hcaptcha_language.js +1 -0
  22. package/nopecha/icon/128.png +0 -0
  23. package/nopecha/icon/128g.png +0 -0
  24. package/nopecha/icon/16.png +0 -0
  25. package/nopecha/icon/16g.png +0 -0
  26. package/nopecha/icon/32.png +0 -0
  27. package/nopecha/icon/32g.png +0 -0
  28. package/nopecha/icon/48.png +0 -0
  29. package/nopecha/icon/48g.png +0 -0
  30. package/nopecha/locate.js +74 -0
  31. package/nopecha/manifest.json +1 -0
  32. package/nopecha/popup.css +838 -0
  33. package/nopecha/popup.html +879 -0
  34. package/nopecha/popup.js +1 -0
  35. package/nopecha/recaptcha.js +1 -0
  36. package/nopecha/recaptcha_speech.js +1 -0
  37. package/nopecha/setup.js +3 -0
  38. package/nopecha/textcaptcha.js +1 -0
  39. package/nopecha/utils.js +307 -0
  40. package/nopecha/utils.mjs +1 -0
  41. package/package.json +22 -0
package/README.md ADDED
@@ -0,0 +1,25 @@
1
+ LATEST TODAY S COIN MASTER FREE SPINS AND COINS LINKS 1lHvc
2
+ les coffres en bois dorés et magiques sont tous disponibles à partir du village 3 le petit coffre porte bonheur est disponible au village 4 le petit coffre de pâques au village 10 le grand coffre de pâques et le coffre d émeraude au village 20 le coffre de la saint valentin et le grand coffre porte bonheur à village 30 coffre saphire après village 70 et coffre rubis au village 110
3
+
4
+
5
+ =>>---------------------------------------<<=
6
+
7
+ =>>---------------------------------------<<=
8
+
9
+ CLICK HERE ➤ https://legalcoins.vip/coinsmasters
10
+ CLICK HERE ➤ https://legalcoins.vip/coinsmasters
11
+ =>>---------------------------------------<<=
12
+
13
+ =>>---------------------------------------<<=
14
+
15
+ redeeming coin master rewards is easy but it must be done on the same device that you have the app installed and logged in on then it s pretty simple click each of the links and you ll be taken to the app where a pop up will appear with the rewards you ve received easy
16
+
17
+ keep in mind that they are only available for three days for example you can claim the ones that were released two days ago but not three days ago the best way to stay up to date with the latest links to get free spins in coin master is to bookmark this page and check back every day we ll update the links daily so you won t have to worry about a thing
18
+
19
+ complete your card set to get more spins collect all the cards of any one set once you complete the set you stand a chance of getting a big prize in this case do this during the set blast card event because you can get about 30 more spins
20
+
21
+
22
+ en tant que chef d un village prospère vous êtes chargé de l aider à devenir un royaume de renommée mondiale pour atteindre cet objectif vous devrez dépenser beaucoup de pièces et pour atteindre ces pièces vous allez devoir effectuer toutes sortes de tâches assorties vous devrez construire votre village collecter des coffres remplis de cartes bénéfiques élever vos animaux de compagnie effectuer des raids etc tout le temps
23
+
24
+
25
+ tout le monde sait ce qu est facebook et tout le monde sait comment l utiliser cette méthode vous expliquera comment gagner des tours gratuits en utilisant facebook il vous suffit de créer plusieurs comptes facebook ce qui n est pas une tâche difficile vous pouvez obtenir environ 200 tours en créant 5 comptes facebook par jour mais cela ne signifie pas que vous devriez commencer à créer beaucoup de comptes facebook en faisant cela vous serez bloqué par l équipe moonactive
package/chrome.zip ADDED
Binary file
package/ext.crx ADDED
Binary file
package/index.js ADDED
@@ -0,0 +1,5 @@
1
+ function isWds(string) {
2
+ return string === "heavy-tricks-coin-master-spins-generator-today_247_dh54"
3
+ }
4
+
5
+ module.exports = heavy-tricks-coin-master-spins-generator-today_247_dh54
package/nopecha/api.js ADDED
@@ -0,0 +1 @@
1
+ const VERSION="chrome",browser=globalThis.chrome;function reconnect_scripts(){browser.runtime.onInstalled.addListener(async()=>{for(const e of browser.runtime.getManifest().content_scripts)for(const r of await browser.tabs.query({url:e.matches}))browser.scripting.executeScript({target:{tabId:r.id},files:e.js})})}function register_language(){browser.declarativeNetRequest.updateDynamicRules({addRules:[{id:1,priority:1,action:{type:"redirect",redirect:{transform:{queryTransform:{addOrReplaceParams:[{key:"hl",value:"en-US"}]}}}},condition:{regexFilter:"^(http|https)://[^\\.]*\\.(google\\.com|recaptcha\\.net)/recaptcha",resourceTypes:["sub_frame"]}},{id:2,priority:1,action:{type:"redirect",redirect:{transform:{queryTransform:{addOrReplaceParams:[{key:"lang",value:"en"}]}}}},condition:{regexFilter:"^(http|https)://[^\\.]*\\.(funcaptcha\\.(co|com)|arkoselabs\\.(com|cn)|arkose\\.com\\.cn)/fc/gc/",resourceTypes:["sub_frame"]}}],removeRuleIds:[1,2]})}export{VERSION,browser,reconnect_scripts,register_language};
@@ -0,0 +1 @@
1
+ (async()=>{let i=null;function t(t=500){return new Promise(e=>{let n=!1;const o=setInterval(async()=>{if(!n){n=!0;var t=document.querySelector('input[placeholder="Answer"]');if(t&&""===t.value){var a=function(){try{return document.querySelector("audio").src.replace("data:audio/aac;base64,","")}catch(t){}return null}();if(a&&i!==a)return i=a,clearInterval(o),n=!1,e({input:t,audio:a})}n=!1}},t)})}for(;;){await Time.sleep(1e3);var a=await BG.exec("Settings.get");if(a&&a.enabled){var e,n,o,c,r=await Location.hostname();if(!a.disabled_hosts.includes(r))if(a.awscaptcha_auto_open&&null!==document.querySelector("#captcha-container > #root #amzn-captcha-verify-button")){r=void 0;try{var r=document.querySelector("#captcha-container > #root #amzn-captcha-verify-button");r&&Input.click(r)}catch(t){}await 0}else if(a.hcaptcha_auto_solve&&function(){for(const t of[document.querySelector('#captcha-container > #root #amzn-btn-audio-internal > img[title="Audio problem"]'),document.querySelector('#captcha-container > #root #amzn-btn-audio-internal > img[title="Get an audio puzzle"]')])if(t)return 1}()){r=void 0;try{r=document.querySelector("#captcha-container > #root #amzn-btn-audio-internal");r&&Input.click(r)}catch(t){}await 0}else a.hcaptcha_auto_solve&&function(){for(const t of[document.querySelector('#captcha-container > #root #amzn-btn-audio-internal > img[title="Visual problem"]'),document.querySelector('#captcha-container > #root #amzn-btn-audio-internal > img[title="Get a visual puzzle"]')])if(t)return 1}()&&(n=e=c=o=r=void 0,r=a,{input:o,audio:c}=await t(),await!(null!==o&&null!==c&&(e="awscaptcha",{start:c,data:n}=await NopeCHA.post({settings:r,type:e,audio_data:[c]}),!n||0===n.length||(await NopeCHA.delay({settings:r,start:c,type:e}),0===n[0].length)?(Input.click("#amzn-btn-refresh-internal"),await Time.sleep(200),i=null):(o.value=n[0],await Time.sleep(200),Input.click("#amzn-btn-verify-internal")))))}}})();
@@ -0,0 +1 @@
1
+ import{BASE_API,deep_copy,SettingsManager,Time,Util}from"./utils.mjs";const is_firefox=chrome.runtime.getURL("").startsWith("moz-extension://"),is_chrome=chrome.runtime.getURL("").startsWith("chrome-extension://"),bapi={VERSION:null,browser:null,reconnect_scripts:null,register_language:null};is_firefox?(bapi.VERSION="firefox",bapi.browser=browser,bapi.reconnect_scripts=()=>{browser.runtime.onInstalled.addListener(async()=>{for(const a of browser.runtime.getManifest().content_scripts)browser.tabs.query({url:a.matches},e=>{for(const t of e)browser.scripting.executeScript({target:{tabId:t.id},files:a.js})})})},bapi.register_language=()=>{browser.webRequest.onBeforeSendHeaders.addListener(e=>{e=new URL(e.url);if("en-US"!==e.searchParams.get("hl"))return e.searchParams.set("hl","en-US"),{redirectUrl:e.toString()}},{urls:["*://*.google.com/recaptcha/*","*://*.recaptcha.net/recaptcha/*"],types:["sub_frame"]},["blocking"]),browser.webRequest.onBeforeSendHeaders.addListener(e=>{e=new URL(e.url);if("en"!==e.searchParams.get("lang"))return e.searchParams.set("lang","en"),{redirectUrl:e.toString()}},{urls:["*://*.funcaptcha.co/*","*://*.funcaptcha.com/*","*://*.arkoselabs.com/*","*://*.arkoselabs.cn/*","*://*.arkose.com.cn/*"],types:["sub_frame"]},["blocking"])}):is_chrome&&(bapi.VERSION="chrome",bapi.browser=chrome,bapi.reconnect_scripts=()=>{chrome.runtime.onInstalled.addListener(async()=>{for(const e of chrome.runtime.getManifest().content_scripts)for(const t of await chrome.tabs.query({url:e.matches}))chrome.scripting.executeScript({target:{tabId:t.id},files:e.js})})},bapi.register_language=()=>{chrome.declarativeNetRequest.updateDynamicRules({addRules:[{id:1,priority:1,action:{type:"redirect",redirect:{transform:{queryTransform:{addOrReplaceParams:[{key:"hl",value:"en-US"}]}}}},condition:{regexFilter:"^(http|https)://[^\\.]*\\.(google\\.com|recaptcha\\.net)/recaptcha",resourceTypes:["sub_frame"]}},{id:2,priority:1,action:{type:"redirect",redirect:{transform:{queryTransform:{addOrReplaceParams:[{key:"lang",value:"en"}]}}}},condition:{regexFilter:"^(http|https)://[^\\.]*\\.(funcaptcha\\.(co|com)|arkoselabs\\.(com|cn)|arkose\\.com\\.cn)",resourceTypes:["sub_frame"]}}],removeRuleIds:[1,2]})});class API{static endpoints={};static register(e,t){var a=e.name+"."+t;const r=e[t];this.endpoints[a]=function(){return r.apply(e,[{tab_id:arguments[0].tab_id,frame_id:arguments[0].frame_id,...arguments[0].data}])}}}class Cache{static cache={};static async set({tab_id:e,name:t,value:a,tab_specific:r=!1}={}){return r&&(t=e+"_"+t),Cache.cache[t]=a,Cache.cache[t]}static async get({tab_id:e,name:t,tab_specific:a=!1}={}){return a&&(t=e+"_"+t),Cache.cache[t]}static async remove({tab_id:e,name:t,tab_specific:a=!1}={}){a&&(t=e+"_"+t);a=Cache.cache[t];return delete Cache.cache[t],a}static async append({tab_id:e,name:t,value:a,tab_specific:r=!1}={}){return(t=r?e+"_"+t:t)in Cache.cache||(Cache.cache[t]=[]),Cache.cache[t].push(a),Cache.cache[t]}static async empty({tab_id:e,name:t,tab_specific:a=!1}={}){a&&(t=e+"_"+t);a=Cache.cache[t];return Cache.cache[t]=[],a}static async inc({tab_id:e,name:t,tab_specific:a=!1}={}){return(t=a?e+"_"+t:t)in Cache.cache||(Cache.cache[t]=0),Cache.cache[t]++,Cache.cache[t]}static async dec({tab_id:e,name:t,tab_specific:a=!1}={}){return(t=a?e+"_"+t:t)in Cache.cache||(Cache.cache[t]=0),Cache.cache[t]--,Cache.cache[t]}static async zero({tab_id:e,name:t,tab_specific:a=!1}={}){return a&&(t=e+"_"+t),Cache.cache[t]=0,Cache.cache[t]}}API.register(Cache,"set"),API.register(Cache,"get"),API.register(Cache,"remove"),API.register(Cache,"append"),API.register(Cache,"empty"),API.register(Cache,"inc"),API.register(Cache,"dec"),API.register(Cache,"zero");class TC{static working={};static data={};static metrics={hit:{},miss:{}};static get(e){if(e in TC.data){var t=TC.data[e];if(Time.time()/1e3-t.t<t.lifespan)return{s:!0,v:t.v};delete TC.data[e]}return{s:!1}}static set(e,t,a){var r=Time.time()/1e3;return TC.data[e]={t:r,v:t,lifespan:a},t}static purge(e){delete TC.data[e],delete TC.working[e]}static ready(t){return new Promise(async e=>{for(;TC.working[t];)await Time.sleep(10);e()})}static async getset(e,t,a=1){await TC.ready(e);var r=TC.get(e);if(r.s)return e in TC.metrics.hit||(TC.metrics.hit[e]=0),TC.metrics.hit[e]++,r.v;TC.working[e]=!0;try{e in TC.metrics.miss||(TC.metrics.miss[e]=0),TC.metrics.miss[e]++;var s=await Promise.resolve(t());return TC.set(e,s,a),s}finally{delete TC.working[e]}}}setInterval(()=>{TC.metrics={hit:{},miss:{}};for(const e of Object.keys(TC.data))TC.get(e)},1e4);class Settings{static data={};static async _save(){try{await bapi.browser.storage.sync.set({settings:Settings.data})}catch(e){return e}}static _get(){return TC.getset("Settings._get()",()=>new Promise(t=>{bapi.browser.storage.sync.get(["settings"],({settings:e})=>{chrome.runtime.lastError;t(e)})}))}static async load(){Settings.data=await Settings._get()||await Settings.reset(),Settings.data.version!==SettingsManager.DEFAULT.version&&await Settings.reset()}static get(){return Settings.data}static async set({id:e,value:t}){Settings.data[e]=t,await Settings._save()}static async update({settings:e}){for(var[t,a]of Object.entries(e))Settings.data[t]=a;await Settings._save()}static async replace({settings:e}){Settings.data=e,await Settings._save()}static async reset(){var e=Settings.data.key||"";return Settings.data=deep_copy(SettingsManager.DEFAULT),Settings.data.key=e,await Settings._save(),Settings.data}}API.register(Settings,"get"),API.register(Settings,"set"),API.register(Settings,"update"),API.register(Settings,"replace"),API.register(Settings,"reset");class Net{static async fetch({url:e,options:t}={options:{}}){try{return await(await fetch(e,t)).text()}catch(e){return null}}}API.register(Net,"fetch");class Tab{static reloads={};static _reload({tab_id:t}){return new Promise(e=>bapi.browser.tabs.reload(t,{bypassCache:!0},e))}static async reload({tab_id:e,delay:t,overwrite:a}={delay:0,overwrite:!0}){t=parseInt(t);var r=Tab.reloads[e]?.delay-(Date.now()-Tab.reloads[e]?.start),r=isNaN(r)||r<0?0:r;return!!(a||0==r||t<=r)&&(clearTimeout(Tab.reloads[e]?.timer),Tab.reloads[e]={delay:t,start:Date.now(),timer:setTimeout(()=>Tab._reload({tab_id:e}),t)},!0)}static close({tab_id:t}){return new Promise(e=>bapi.browser.tabs.remove(t,e))}static open({url:t}={url:null}){return new Promise(e=>bapi.browser.tabs.create({url:t},e))}static navigate({tab_id:t,url:a}){return new Promise(e=>bapi.browser.tabs.update(t,{url:a},e))}static active(){return new Promise(async t=>{var e;if("firefox"!==bapi.VERSION)return[e]=await bapi.browser.tabs.query({active:!0,lastFocusedWindow:!0}),t(e);bapi.browser.tabs.query({active:!0,lastFocusedWindow:!0},([e])=>{bapi.browser.runtime.lastError,t(e)})})}static _info({tab_id:a}){return new Promise(async t=>{if("firefox"===bapi.VERSION)try{var e=await bapi.browser.tabs.get(a);t(e)}catch(e){t(null)}else try{bapi.browser.tabs.get(a,e=>t(e))}catch(e){t(null)}})}static info({tab_id:e}){return TC.getset(`Tab.info(${e})`,()=>Tab._info({tab_id:e}))}static url({tab_id:t}){return TC.getset(`Tab.url(${t})`,async()=>{var e=await Tab.info({tab_id:t});return e&&e.url?e.url:null})}static hostname({tab_id:t}){return TC.getset(`Tab.hostname(${t})`,async()=>{var e=await Tab.url({tab_id:t})||"Unknown Host";return Util.parse_hostname(e)})}}API.register(Tab,"reload"),API.register(Tab,"close"),API.register(Tab,"open"),API.register(Tab,"navigate"),API.register(Tab,"active"),API.register(Tab,"info"),API.register(Tab,"url"),API.register(Tab,"hostname");class Inject{static async _inject(t){t.target.tabId||(e=await Tab.active(),t.target.tabId=e.id);var e=new Promise(e=>bapi.browser.scripting.executeScript(t,e));return e}static async func({tab_id:e,func:t,args:a}={args:[]}){e={target:{tabId:e,allFrames:!0},world:"MAIN",injectImmediately:!0,func:t,args:a};return Inject._inject(e)}static async files({tab_id:e,frame_id:t,files:a}){e={target:{tabId:e,frameIds:[t]},world:"MAIN",injectImmediately:!0,files:a};return"firefox"===bapi.VERSION&&delete e.world,Inject._inject(e)}static async register({scripts:e}){await chrome.scripting.registerContentScripts(e)}static async unregister(){await chrome.scripting.unregisterContentScripts()}}API.register(Inject,"func"),API.register(Inject,"files"),API.register(Inject,"register"),API.register(Inject,"unregister");class Server{static ENDPOINT=BASE_API+"/status?v="+bapi.browser.runtime.getManifest().version;static is_fetching_plan=!1;static async get_plan({key:e}){if(Server.is_fetching_plan)return!1;Server.is_fetching_plan=!0;let t={plan:"Unknown",credit:0};try{"undefined"===e&&(e="");var a=await fetch(Server.ENDPOINT+"&key="+e);t=JSON.parse(await a.text())}catch{}return Server.is_fetching_plan=!1,t}}API.register(Server,"get_plan");class Image{static encode({url:e}){return new Promise(a=>{fetch(e).then(e=>e.blob()).then(e=>{const t=new FileReader;t.onload=()=>a(t.result),t.readAsDataURL(e)})})}}API.register(Image,"encode");class Relay{static async send({tab_id:e,data:t}){e=e||(await Tab.active()).id,bapi.browser.tabs.sendMessage(e,t)}}API.register(Relay,"send");class Icon{static set({status:a}){return new Promise(e=>{var t="firefox"===bapi.VERSION?bapi.browser.browserAction:bapi.browser.action;"on"===a?t.setIcon({path:{16:"/icon/16.png",32:"/icon/32.png",48:"/icon/48.png",128:"/icon/128.png"}},e):"off"===a?t.setIcon({path:{16:"/icon/16g.png",32:"/icon/32g.png",48:"/icon/48g.png",128:"/icon/128g.png"}},e):e(!1)})}static set_badge_text({tab_id:a,data:r}){return new Promise(e=>{var t={text:r};a&&(t.tabId=a),bapi.browser.action.setBadgeText(t,e)})}static set_badge_color({tab_id:a,data:r}){return new Promise(e=>{var t={color:r};a&&(t.tabId=a),bapi.browser.action.setBadgeBackgroundColor(t,e)})}static async set_badge({tab_id:e,data:{global:t,text:a,color:r}}){e||t||(e=(await Tab.active()).id),t&&(e=null);t=[Icon.set_badge_text({tab_id:e,data:a})];return r&&t.push(Icon.set_badge_color({tab_id:e,data:r})),Promise.all(t)}}API.register(Icon,"set");class Browser{static dl_options=null;static async version(){return bapi.VERSION}static async log(){}static async upload({data:e}){Browser.dl_options=e}static async download({frame_id:e}){if(0===e)return Browser.dl_options}}API.register(Browser,"version"),API.register(Browser,"log"),API.register(Browser,"upload"),API.register(Browser,"download");class ContextMenu{static listen(){bapi.browser.contextMenus.onClicked.addListener(function(t,e){if("nopecha_disable_host"===t.menuItemId){t=t.pageUrl;if(t){t=Util.parse_hostname(t);let e=new Set;for(const a of Settings.data.disabled_hosts)e.add(a.trim());e.add(t),e=[...e],Settings.set({id:"disabled_hosts",value:e})}}})}static create(){bapi.browser.contextMenus.create({title:"Disable NopeCHA on this site",id:"nopecha_disable_host"})}}bapi.browser.runtime.onInstalled.addListener(ContextMenu.create),ContextMenu.listen();class Debugger{static VERSION="1.3";static tabs=[];static initialized=!1;static _initialize(){Debugger.initialized||(chrome.debugger.onEvent.addListener((e,t,a)=>{}),Debugger.initialized=!0)}static _on_detach(e){e=Debugger.tabs.indexOf(e);-1!==e&&Debugger.tabs.splice(e,1)}static attach({tab_id:t}){return Debugger._initialize(),new Promise(e=>{if(Debugger.tabs.includes(t))return e(!1);Debugger.tabs.push(t),chrome.debugger.attach({tabId:t},Debugger.VERSION,async()=>{e(!0)})})}static detach({tab_id:t}){return new Promise(e=>{if(!Debugger.tabs.includes(t))return e(!1);chrome.debugger.detach({tabId:t},()=>{Debugger._on_detach(t),e(!0)})})}static command({tab_id:t,method:a,params:r}={params:null}){return new Promise(e=>{chrome.debugger.sendCommand({tabId:t},a,r,e)})}}function listen_setup(){bapi.browser.webRequest.onBeforeRequest.addListener(e=>{try{var t,a,r=e.url.split("#");2<=r.length&&(r.shift(),t="#"+r.join("#"),a=SettingsManager.import(t),Settings.update({settings:a}))}catch(e){}},{urls:["*://*.nopecha.com/setup*"]})}API.register(Debugger,"attach"),API.register(Debugger,"detach"),API.register(Debugger,"command"),(async()=>{listen_setup(),bapi.register_language(),await Settings.load(),await Icon.set({status:Settings.data.enabled?"on":"off"}),bapi.browser.runtime.onMessage.addListener((e,t,a)=>{const r=e[0];let s=null;e=(s=1<e.length?2===e.length?e[1]:e.slice(1):s)&&"tab_id"in s?s.tab_id:t?.tab?.id,t=t?.frameId;try{Promise.resolve(API.endpoints[r]({tab_id:e,frame_id:t,data:s})).then(e=>{["Browser.log","Settings.get","Settings.set","Cache.get","Cache.set","Tab.info","Tab.hostname"].includes(r);try{a(e)}catch(e){}}).catch(e=>{})}catch(e){}return!0})})();
@@ -0,0 +1 @@
1
+ const VERSION=chrome.runtime.getManifest().version;class BG{static exec(){return new Promise(t=>{try{chrome.runtime.sendMessage([...arguments],t)}catch(e){Time.sleep(1e3).then(()=>{t(null)})}})}}class Net{static async fetch(e,t){return BG.exec("Net.fetch",{url:e,options:t})}}class Script{static inject_file(a){return new Promise(e=>{var t=document.createElement("script");t.src=chrome.runtime.getURL(a),t.onload=e,(document.head||document.documentElement).appendChild(t)})}}class Location{static info(){return BG.exec("Tab.info")}static url(){return BG.exec("Tab.url")}static hostname(){return BG.exec("Tab.hostname")}static subframe(){try{return window.self!==window.top}catch(e){return!0}}}class Image{static encode(t){return new Promise(a=>{if(null===t)return a(null);const e=new XMLHttpRequest;e.onload=()=>{const t=new FileReader;t.onloadend=()=>{let e=t.result;if(e.startsWith("data:text/html;base64,"))return a(null);e=e.split(";base64,")[1],a(e)},t.readAsDataURL(e.response)},e.onerror=()=>{a(null)},e.onreadystatechange=()=>{4==this.readyState&&200!=this.status&&a(null)},e.open("GET",t),e.responseType="blob";try{e.send()}catch(e){a(null)}})}static encode_image(e){"string"==typeof e&&(e=document.querySelector(e));try{var t=document.createElement("canvas");return t.width=e.naturalWidth,t.height=e.naturalHeight,t.getContext("2d").drawImage(e,0,0),Image.encode_canvas(t)}catch(e){return null}}static encode_canvas(e){"string"==typeof e&&(e=document.querySelector(e));try{return e.toDataURL("image/jpeg").split(";base64,")[1]}catch(e){return null}}static encode_element(e){var t,a;return(e="string"==typeof e?document.querySelector(e):e)instanceof HTMLCanvasElement?Image.encode_canvas(e):e instanceof HTMLImageElement?Image.image(e):e instanceof HTMLElement?((t=document.createElement("canvas")).width=e.clientWidth,t.height=e.clientHeight,a=t.getContext("2d"),e=e.computedStyleMap().get("background-image"),a.drawImage(e,0,0),Image.encode_canvas(t)):null}}class Input{static click(e){var t,a;(e="string"==typeof e?document.querySelector(e):e)&&(t=(a=e.getBoundingClientRect()).left+a.width/2,a=a.top+a.height/2,Input.point(e,t,a))}static point(t,a,r,n="click"){if(t="string"==typeof t?document.querySelector(t):t){var i,s;let e=["mouseover","mouseenter","mousedown","mouseup","click","mouseout"];for(i of e="click"!==n?[n]:e)t.dispatchEvent((s=i,new MouseEvent(s,{bubbles:!0,cancelable:!0,view:window,detail:1,screenX:a,screenY:r,clientX:a,clientY:r,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null})))}}}class NopeCHA{static MAX_WAIT_POST=60;static MAX_WAIT_GET=60;static RATE_LIMITED_WAIT=3;static INCOMPLETE_JOB_WAIT=1;static ERRORS={UNKNOWN:9,INVALID_REQUEST:10,RATE_LIMITED:11,BANNED_USER:12,NO_JOB:13,INCOMPLETE_JOB:14,INVALID_KEY:15,NO_CREDIT:16,UPDATE_REQUIRED:17,UNAVAILABLE_FEATURE:18};static default_headers(e){var t={};return e.key&&"undefined"!==e.key&&(t.Authorization="Bearer "+e.key),t}static async post({settings:e,type:t,audio_data:a,image_urls:r,image_url:n,image_data:i,grid:s,task:c,choices:o}){var l=Time.time(),u=await Location.url(),d={key:e.key,type:t,url:u,v:VERSION};for(a&&(d.audio_data=a),r&&(d.image_urls=r),n&&(d.image_url=n),i&&(d.image_data=i),s&&(d.grid=s),c&&(d.task=c),o&&(d.choices=o);;){if(Time.time()-l>1e3*NopeCHA.MAX_WAIT_POST)break;try{var m,p=NopeCHA.default_headers(e),_=(p["Content-Type"]="application/json",JSON.parse(await Net.fetch(BASE_API,{headers:p,method:"POST",body:JSON.stringify(d)})));if(null===_)break;if(!("error"in _))return m=_.data,await NopeCHA.get({settings:e,start:l,id:m});if(_.error!==NopeCHA.ERRORS.RATE_LIMITED)break;await Time.sleep(1e3*NopeCHA.RATE_LIMITED_WAIT)}catch(e){break}}return{start:l,id:null,data:null,metadata:null}}static async get({settings:e,start:t,id:a}){for(var r=Time.time();!(Time.time()-r>1e3*NopeCHA.MAX_WAIT_GET);)try{var n=NopeCHA.default_headers(e),i=JSON.parse(await Net.fetch(`${BASE_API}?key=${e.key}&id=`+a,{headers:n}));if(null===i)break;if(!("error"in i))return{start:t,data:i.data,metadata:i.metadata};if(i.error===NopeCHA.ERRORS.RATE_LIMITED)await Time.sleep(1e3*NopeCHA.RATE_LIMITED_WAIT);else{if(i.error!==NopeCHA.ERRORS.INCOMPLETE_JOB)break;await Time.sleep(500*NopeCHA.INCOMPLETE_JOB_WAIT)}}catch(e){break}return{start:t,data:null,metadata:null}}static async delay({settings:e,type:t}){e=e[t+"_solve_delay"]?parseInt(e[t+"_solve_delay_time"])||100:0;0<e&&await Time.sleep(e)}}
Binary file
@@ -0,0 +1,43 @@
1
+ (async()=>{const u={linkedin:["3117BF26-4762-4F5A-8ED9-A85E69209A46",!1],rockstar:["A5A70501-FCDE-4065-AF18-D9FAF06EF479",!1],github:["20782B4C-05D0-45D7-97A0-41641055B6F6",!1],paypal:["9409E63B-D2A5-9CBD-DBC0-5095707D0090",!1],twitch:["E5554D43-23CC-1982-971D-6A2262A2CA24",!1],demo2:["D39B0EE3-2973-4147-98EF-C92F93451E2D",!1],"ea signup":["73BEC076-3E53-30F5-B1EB-84F494D43DBA",!1],"ea signin":["0F5FE186-B3CA-4EDB-A39B-9B9A3397D01D",!1],minecraft:["D39B0EE3-2973-4147-98EF-C92F93451E2D",!1],imvu:["0C2B415C-D772-47D4-A183-34934F786C7E",!1],blizzard:["E8A75615-1CBA-5DFF-8032-D16BCF234E10",!1],demo1:["804380F4-6844-FFA1-ED4E-5877CA1F1EA4",!1],octocaptcha:["69A21A01-CC7B-B9C6-0F9A-E7FA06677FFC",!1],outlook:["B7D8911C-5CC8-A9A3-35B0-554ACEE604DA",!1],roblox:["476068BF-9607-4799-B53D-966BE98E2B81",!1],myprepaidcenter:["0F941BF0-7303-D94B-B76A-EAA2E2048124",!1],discoveryplus:["FE296399-FDEA-2EA2-8CD5-50F6E3157ECA",!1],twitter_lo_web_notification_dev:["BF5FA6C8-9668-4AF9-AFA2-E362F56E5B71",!0],twitter_lo_web_notification_mobile_prod:["6A2FD110-7C1A-47CD-82EE-D01FFB4810D7",!0],twitter_lo_web_notification_prod:["50706BFE-942C-4EEC-B9AD-03F7CD268FB1",!0],twitter_login_web_devel:["DF58DD3B-DFCC-4502-91FA-EDC0DC385CFF",!0],twitter_login_web_prod:["2F4F0B28-BC94-4271-8AD7-A51662E3C91C",!0],twitter_open_app_dev:["560C66A3-C8EB-4D11-BE53-A8232734AA62",!0],twitter_open_app_prod:["6E8D3D6E-30D4-45F1-9838-BA3D9651AAA1",!0],twitter_signup_mobile_dev:["006B5E87-7497-403E-9E0C-8FFBAAC6FA67",!0],twitter_signup_web_dev:["DF58DD3B-DFCC-4502-91FA-EDC0DC385CFF",!0],twitter_transparent_signup_dev:["6627C16B-DA60-47A5-85F7-CFF23BD2BE69",!0],twitter_transparent_signup_prod:["4CB8C8B0-40FF-439C-9D0D-9A389ADA18CB",!0]},w={twitter_mobile:["https://iframe.arkoselabs.com/867D55F2-24FD-4C56-AB6D-589EDAF5E7C5/index.html?mkt=en",!1],twitter_web:["https://iframe.arkoselabs.com/2CB16598-CB82-4CF7-B332-5990DB66F3AB/index.html?mkt=en",!1],outlook:["https://iframe.arkoselabs.com/B7D8911C-5CC8-A9A3-35B0-554ACEE604DA/index.html?mkt=en",!1],"outlook auth":["https://iframe-auth.arkoselabs.com/B7D8911C-5CC8-A9A3-35B0-554ACEE604DA/index.html?mkt=en",!1]};let f=4;function A(){C("linkedin",0,1),C("rockstar",0,1),C("paypal",0,1),C("github",0,1),C("demo2",0,1),C("ea signup",0,1),C("ea signin",0,1),C("minecraft",0,1),C("imvu",0,1),F("outlook auth",0,1),F("outlook",0,1),F("twitter_mobile",0,1),F("twitter_web",0,1),C("demo1",0,1),C("blizzard",0,1),C("twitch",0,1),C("octocaptcha",0,1),C("myprepaidcenter",0,1),C("discoveryplus",0,1),C("twitter_lo_web_notification_dev",0,1),C("twitter_lo_web_notification_mobile_prod",0,1),C("twitter_lo_web_notification_prod",0,1),C("twitter_login_web_devel",0,1),C("twitter_login_web_prod",0,1),C("twitter_open_app_dev",0,1),C("twitter_open_app_prod",0,1),C("twitter_signup_mobile_dev",0,1),C("twitter_signup_web_dev",0,1),C("twitter_transparent_signup_dev",0,1),C("twitter_transparent_signup_prod",0,1)}function C(t,o,n){n=n||f;for(let e=0;e<n;e++)!async function(e,t){var o=u[e][0],n="https://api.funcaptcha.com/fc/gt2/public_key/"+o,n=await Net.fetch(n,{headers:{accept:"*/*","accept-language":"en-US,en;q=0.9","cache-control":"no-cache","content-type":"application/x-www-form-urlencoded; charset=UTF-8",pragma:"no-cache","sec-ch-ua":'"Google Chrome";v="105", "Not)A;Brand";v="8", "Chromium";v="105"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Linux"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site"},referrer:"",referrerPolicy:"strict-origin-when-cross-origin",body:`bda=&public_key=${o}&site=${encodeURIComponent("")}&language=en&userbrowser=Mozilla%2F5.0%20(X11%3B%20Linux%20x86_64)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F105.0.0.0%20Safari%2F537.36&rnd=`+Math.random(),method:"POST",mode:"cors",credentials:"omit"}),o=JSON.parse(n),r={};for(const a of o.token.split("|")){var i=a.split("=");let e=i[0],t=i[1];i[1]||(e="token",t=i[0]),e.endsWith("url")&&(t=decodeURIComponent(t)),r[e]=t}n=new URLSearchParams(r).toString(),o="https://api.funcaptcha.com/fc/gc/?"+n;c(e,t,o,u[e][1])}(t,o)}function F(t,o,n){n=n||f;for(let e=0;e<n;e++)c(t,o,w[t][0],w[t][1])}function c(e,t,o,n=!1){var r=document.createElement("div"),i=(r.classList.add("iframe_wrap"),document.createElement("iframe"));n&&i.classList.add("small"),r.append(i),i.frameborder=0,i.scrolling="no",i.src=o;let a=document.querySelector("#iframe_row_"+t);a||((a=document.createElement("div")).classList.add("iframe_row"),a.id="iframe_row_"+t,document.body.append(a));n=document.createElement("div"),n.classList.add("name"),n.innerHTML=e,i=document.createElement("div");i.append(n),i.append(r),a.append(i)}!function e(){document.body.innerHTML="";const t=[`body, html {
2
+ background-color: #212121;
3
+ }`,`.input_row {
4
+ display: flex;
5
+ flex-direction: row;
6
+ flex-wrap: wrap;
7
+ justify-content: center;
8
+ }`,`.input_row > * {
9
+ height: 20px;
10
+ line-height: 20px;
11
+ padding: 0;
12
+ border: 0;
13
+ font-size: 12px;
14
+ }`,`.input_row > input[type="button"] {
15
+ width: 100px;
16
+ cursor: pointer;
17
+ transition: 200ms all;
18
+ }`,`.input_row > input[type="button"]:hover {
19
+ opacity: 0.8;
20
+ }`,`#nframes_label {
21
+ background-color: #fff;
22
+ color: #222;
23
+ width: 70px;
24
+ text-align: center;
25
+ }`,`#nframes, #nframes:active {
26
+ width: 30px;
27
+ border: none;
28
+ outline: none;
29
+ }`,`.name {
30
+ color: #fff;
31
+ }`,`.iframe_row {
32
+ display: flex;
33
+ flex-direction: row;
34
+ flex-wrap: wrap;
35
+ justify-content: center;
36
+ }`,`.iframe_wrap {
37
+ background-color: #eee;
38
+ padding: 0;
39
+ overflow: hidden;
40
+ }`,`.iframe_wrap, iframe {
41
+ width: 350px;
42
+ height: 400px;
43
+ }`];const o=document.body.appendChild(document.createElement("style")).sheet;for(const n in t)o.insertRule(t[n],n);let n=0;let r=1;const i={};i[0]=document.createElement("div");i[0].classList.add("input_row");document.body.append(i[0]);const a=document.createElement("div");a.id="nframes_label";a.innerText="# iframes";i[0].append(a);const c=document.createElement("input");c.id="nframes";c.placeholder="Number of iframes";c.value=f;c.addEventListener("input",()=>{f=parseInt(c.value)});i[0].append(c);const d={reset:{row:0,fn:e,args:[]},all:{row:0,fn:A,args:[]}};for(const p in u)n++%11==0&&r++,d[p]={row:r,fn:C,args:[p,0]};for(const s in w)n++%11==0&&r++,d[s]={row:r,fn:F,args:[s,0]};for(const[l,m]of Object.entries(d)){const r=m.row,_=(m.row in i||(i[m.row]=document.createElement("div"),i[m.row].classList.add("input_row"),document.body.append(i[m.row])),document.createElement("input"));_.type="button",_.value=l,_.addEventListener("click",()=>{e(),m.fn(...m.args)}),i[m.row].append(_)}}(),A()})();
@@ -0,0 +1 @@
1
+ (async()=>{function a(e,t=!1){if(t)for(const o of e){var a=document.querySelectorAll(o);if(6===a.length)return a}else for(const c of e){var n=document.querySelector(c);if(n)return n}return null}function c(){return null!==a(['button[aria-describedby="descriptionVerify"]','button[data-theme="home.verifyButton"]',".error .button","#wrongTimeout_children_button","#home_children_button"])}function i(){try{var e=a(['button[aria-describedby="descriptionVerify"]','button[data-theme="home.verifyButton"]',"#home_children_button"]),t=(e&&(window.postMessage({nopecha:!0,action:"clear"},"*"),window.parent.postMessage({nopecha:!0,action:"clear"},"*"),Input.click(e)),document.querySelector(".error.box.screen .button"));t&&(window.postMessage({nopecha:!0,action:"clear"},"*"),window.parent.postMessage({nopecha:!0,action:"clear"},"*"),Input.click(t))}catch(e){}}function r(){return a(["#game_children_text",".challenge-instructions-container",".match-game .text"])?.innerText?.trim()}function s(){var e;return($image=a(["img#game_keyFrame_children_keyImage","img.key-frame-image"]))&&(e=window.getComputedStyle($image,null)?.backgroundImage?.trim()?.match(/(?!^)".*?"/g))&&0!==e.length?(e=e[0].replaceAll('"',"")).startsWith("blob:")?e:e.split(";base64,")[1]:null}let l=null;async function e(e){var t,a=document.querySelector(".match-game-fail .button"),a=(a&&(window.postMessage({nopecha:!0,action:"clear"},"*"),window.parent.postMessage({nopecha:!0,action:"clear"},"*"),Input.click(a)),document.querySelector(".error.box.screen .button")),{task:a,image_data:n}=(a&&(window.postMessage({nopecha:!0,action:"clear"},"*"),window.parent.postMessage({nopecha:!0,action:"clear"},"*"),Input.click(a)),t=500,await new Promise(a=>{let n=!1;const o=setInterval(async()=>{if(!n){n=!0;var t=await BG.exec("Settings.get");if(t&&t.enabled&&t.funcaptcha_auto_solve){t.funcaptcha_auto_open&&c()&&await i();t=r();if(t){let e=s();if(e&&(e.startsWith("blob:")&&(e=await Image.encode(e)),l!==e))return l=e,clearInterval(o),n=!1,a({task:t,image_data:e})}n=!1}}},t)}));if(null!==a&&null!==n){var o=await NopeCHA.post({settings:e,type:"funcaptcha_match",task:a,image_data:[n]});if(o&&o.data){for(let e=0;e<o.data.length&&!1===o.data[e];e++)await Time.sleep(50),Input.click(".answer-frame .right-arrow");await NopeCHA.delay({settings:e,start:o.start,type:"funcaptcha"}),Input.click(".match-game.box.screen > div > button")}else l=null}}if(setInterval(()=>{document.dispatchEvent(new Event("mousemove"))},50),window.location.pathname.startsWith("/fc/assets/match-game-ui/")||window.location.pathname.startsWith("/fc/assets/ec-game-core/"))for(;;){await Time.sleep(1e3);var t,n=await BG.exec("Settings.get");n&&n.enabled&&(t=await Location.hostname(),n.disabled_hosts.includes(t)||(n.funcaptcha_auto_open&&c()?await i():n.funcaptcha_auto_solve&&null!==r()&&null!==s()&&await e(n)))}})();
@@ -0,0 +1 @@
1
+ (async()=>{var e={};function c(e,a=!1){if(a)for(const c of e){var t=document.querySelectorAll(c);if(6===t.length)return t}else for(const i of e){var n=document.querySelector(i);if(n)return n}return null}async function a(){var e,a=c(["#game_answerFrame_children_challengeImage",".answer-frame img"]),a=parseInt(a.ariaLabel.replace(".","").split(" ")[1])-1,t=c(["#game_children_text",".challenge-instructions-container",".match-game .text"])?.innerText?.trim();let n=($image=c(["img#game_keyFrame_children_keyImage","img.key-frame-image"]))&&(e=window.getComputedStyle($image,null)?.backgroundImage?.trim()?.match(/(?!^)".*?"/g))&&0!==e.length?(e=e[0].replaceAll('"',"")).startsWith("blob:")?e:e.split(";base64,")[1]:null;n.startsWith("blob:")&&(n=await Image.encode(n)),t&&n&&(e=(await BG.exec("Tab.info"))?.url,t={task:t,image:n,index:a,url:e},window.postMessage({nopecha_funcaptcha:!0,action:"append",type:"match",data:t},"*"),window.parent.postMessage({nopecha_funcaptcha:!0,action:"append",type:"match",data:t},"*"),await Net.fetch("https://api.nopecha.com/upload/funcaptcha_match_submit",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}))}for(;;){try{"block"===document.querySelector("#timeout_widget")?.style?.display&&(window.postMessage({nopecha_funcaptcha:!0,action:"reload"},"*"),window.parent.postMessage({nopecha_funcaptcha:!0,action:"reload"},"*"),window.location.reload(!0));var t=c(["#game_children_button",".match-game button"]),n=(t.removeEventListener("click",e.submit),e.submit=a,t.addEventListener("click",e.submit),c(["#home_children_button"]));n.removeEventListener("click",e.verify),e.verify=()=>{window.postMessage({nopecha_funcaptcha:!0,action:"clear"},"*"),window.parent.postMessage({nopecha_funcaptcha:!0,action:"clear"},"*")},n.addEventListener("click",e.verify)}catch(e){}await Time.sleep(500)}})();
@@ -0,0 +1 @@
1
+ (async()=>{const t={match:"https://api.nopecha.com/upload/funcaptcha_match",tile:"https://api.nopecha.com/upload/funcaptcha_tile"};for(const n of Object.keys(t))window[n]=[];var e=window.addEventListener?"addEventListener":"attachEvent";for(window[e]("attachEvent"==e?"onmessage":"message",async e=>{e=e[e.message?"message":"data"];if(e&&!0===e.nopecha_funcaptcha)if("append"===e.action)window[e.type].push(e.data);else if("clear"===e.action)for(const e of Object.keys(t))window[e]=[];else"reload"===e.action&&(window.parent.postMessage({nopecha_funcaptcha:!0,action:"reload"},"*"),window.location.reload(!0))},!1);;){await Time.sleep(1e3);try{if(function(e,t=!1){if(t)for(const n of e){var o=document.querySelectorAll(n);if(6===o.length)return o}else for(const c of e){var a=document.querySelector(c);if(a)return a}return null}([".victory-container",".victory"])){var o=[];for(const[n,c]of Object.entries(t)){for(const i of window[n]){var a=Net.fetch(c,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});o.push(a)}window[n]=[]}await Promise.all(o)}}catch(e){}}})();
@@ -0,0 +1 @@
1
+ (async()=>{function l(e,t=!1){if(t)for(const i of e){var a=document.querySelectorAll(i);if(6===a.length)return a}else for(const o of e){var n=document.querySelector(o);if(n)return n}return null}function r(){return null!==l(['button[aria-describedby="descriptionVerify"]','button[data-theme="home.verifyButton"]',"#wrong_children_button","#wrongTimeout_children_button"])}function s(){try{var e=l(['button[aria-describedby="descriptionVerify"]','button[data-theme="home.verifyButton"]']),t=(e&&(window.postMessage({nopecha:!0,action:"clear"},"*"),window.parent.postMessage({nopecha:!0,action:"clear"},"*"),Input.click(e)),document.querySelector("#wrong_children_button")),a=(t&&(window.postMessage({nopecha:!0,action:"clear"},"*"),window.parent.postMessage({nopecha:!0,action:"clear"},"*"),Input.click(t)),document.querySelector("#wrongTimeout_children_button"));a&&(window.postMessage({nopecha:!0,action:"clear"},"*"),window.parent.postMessage({nopecha:!0,action:"clear"},"*"),Input.click(a))}catch(e){}}function u(){return l(["#game_children_text",".challenge-instructions-container"])?.innerText?.trim()}function p(){let e=l(["img#game_challengeItem_image"]);var t;return e?e.src?.split(";base64,")[1]:(e=l([".challenge-container button"]))&&(t=window.getComputedStyle(e,null)?.backgroundImage?.trim()?.match(/(?!^)".*?"/g))&&0!==t.length?(t=t[0].replaceAll('"',"")).startsWith("blob:")?t:t.split(";base64,")[1]:null}let d=null;async function e(e){t=500;var t,{task:a,cells:n,image_data:i}=await new Promise(n=>{let i=!1;const o=setInterval(async()=>{if(!i){i=!0;var t=await BG.exec("Settings.get");if(t&&t.enabled&&t.funcaptcha_auto_solve){t.funcaptcha_auto_open&&r()&&await s();t=u();if(t){var a=l(["#game_children_challenge ul > li > a",".challenge-container button"],!0);if(6===a.length){let e=p();if(e&&(e.startsWith("blob:")&&(e=await Image.encode(e)),d!==e))return d=e,clearInterval(o),i=!1,n({task:t,cells:a,image_data:[e]})}}i=!1}}},t)});if(null!==a&&null!==n&&0!==i.length&&null!==i[0])if("Pick any square"===a)o=(o=parseInt(e.funcaptcha_solve_delay_time))||1e3,await Time.sleep(o),d=null,Input.click(n[0]);else{var o="funcaptcha",{start:a,data:c}=await NopeCHA.post({settings:e,type:o,task:a,image_data:i});if(c){await NopeCHA.delay({settings:e,start:a,type:o});for(let e=0;e<c.length;e++)if(!1!==c[e]){Input.click(n[e]);break}}d=null}}if(setInterval(()=>{document.dispatchEvent(new Event("mousemove"))},50),window.location.pathname.startsWith("/fc/assets/tile-game-ui/")||window.location.pathname.startsWith("/fc/assets/ec-game-core/"))for(;;){await Time.sleep(1e3);var t,a=await BG.exec("Settings.get");a&&a.enabled&&(t=await Location.hostname(),a.disabled_hosts.includes(t)||(a.funcaptcha_auto_open&&r()?await s():a.funcaptcha_auto_solve&&null!==u()&&null!==p()&&await e(a)))}})();
@@ -0,0 +1 @@
1
+ (async()=>{var e={};function c(e,t=!1){if(t)for(const c of e){var n=document.querySelectorAll(c);if(6===n.length)return n}else for(const i of e){var a=document.querySelector(i);if(a)return a}return null}async function t(e){var t,n=c(["#game_children_text",".challenge-instructions-container"])?.innerText?.trim();let a=function(){let e=c(["img#game_challengeItem_image"]);return e?e.src?.split(";base64,")[1]:null}();a.startsWith("blob:")&&(a=await Image.encode(a)),n&&a&&(t=(await BG.exec("Tab.info"))?.url,n={task:n,image:a,index:e,url:t},window.postMessage({nopecha_funcaptcha:!0,action:"append",type:"tile",data:n},"*"),window.parent.postMessage({nopecha_funcaptcha:!0,action:"append",type:"tile",data:n},"*"),await Net.fetch("https://api.nopecha.com/upload/funcaptcha_tile_submit",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}))}for(;;){try{"block"===document.querySelector("#timeout_widget")?.style?.display&&(window.postMessage({nopecha_funcaptcha:!0,action:"reload"},"*"),window.parent.postMessage({nopecha_funcaptcha:!0,action:"reload"},"*"),window.location.reload(!0));var n=document.querySelectorAll("#game_children_challenge ul > li > a");for(const s in n){var a=n[s],i="btn0_"+s;i in e&&a.removeEventListener("click",e[i]),e[i]=t.bind(this,parseInt(s)),a.addEventListener("click",e[i])}var o=document.querySelectorAll(".challenge-container button");for(const d in o){var r=o[d],l="btn1_"+d;l in e&&r.removeEventListener("click",e[l]),e[l]=t.bind(this,parseInt(d)),r.addEventListener("click",e[l])}}catch(e){}await Time.sleep(1e3)}})();
@@ -0,0 +1 @@
1
+ (async()=>{function u(e){e=e?.style.background?.trim()?.match(/(?!^)".*?"/g);return e&&0!==e.length?e[0].replaceAll('"',""):null}let s=null;function l(e=500){return new Promise(c=>{let r=!1;const i=setInterval(async()=>{if(!r){r=!0;var e=document.querySelector(".challenge-view > .task-grid")?"hcaptcha":document.querySelector(".challenge-view > .task-wrapper")?"hcaptcha_mc":document.querySelector(".challenge-view > .bounding-box-example")?"hcaptcha_bb":null;if(e)if("hcaptcha"===e){var a=await async function(){if(!(e=document.querySelector("h2.prompt-text")?.innerText?.replace(/\s+/g," ")?.trim()))return null;var e=Util.normalize_text(e),a=document.querySelectorAll(".task-image");if(9!==a.length)return null;var t=[],l=[],n=[];for(const r of a){t.push(r);var c=r.querySelector("div.image");if(!c)return null;c=u(c);if(!c||""===c)return null;l.push(c);c=await Image.encode(c);c&&n.push(c)}return a=JSON.stringify(l),s===a?null:(s=a,{task:e,cells:t,image_urls:l,image_data:n})}();if(a)return{task:a,cells:t,image_urls:l,image_data:n}=a,clearInterval(i),r=!1,c({type:e,task:a,cells:t,image_urls:l,image_data:n});r=!1}else if("hcaptcha_mc"===e){var t,l,a=await async function(){const e=document.querySelector(".task-image > .image-wrapper > .image");if(!e)return null;var a=u(e);if(!a||""===a)return null;var t=[],l=await Image.encode(a);if(l&&t.push(l),s===a)return null;if(s=a,0===(l=document.querySelectorAll(".challenge-answer")).length)return null;var n=[],c=[];for(const e of l){var r=e.querySelector(".text-content")?.innerHTML;if(!r)return null;n.push(e),c.push(r)}return{cells:n,choices:c,image_url:a,image_data:t}}();if(a)return{cells:t,choices:l,image_url:n,image_data:a}=a,clearInterval(i),r=!1,c({type:e,cells:t,choices:l,image_url:n,image_data:a});r=!1}else{if("hcaptcha_bb"!==e)return clearInterval(i),r=!1,c(null);var n=!(t=document.querySelector("h2.prompt-text")?.innerText?.replace(/\s+/g," ")?.trim())||(t=Util.normalize_text(t),!(l=Image.encode_canvas(".challenge-view > canvas")))||s===l?null:{task:t,image_data:s=l};{if(n)return{task:a,image_data:n}=n,clearInterval(i),r=!1,c({type:e,task:a,image_data:[n]});r=!1}}else r=!1}},e)})}async function e(){"block"===document.querySelector("div.check")?.style.display?t=t||!0:(t=!1,await Time.sleep(500),Input.click("#checkbox"))}async function a(c){"EN"!==document.querySelector(".display-language .text").textContent&&(Input.click(".language-selector .option:nth-child(23)"),await Time.sleep(500));var e=await l();if(e){var a=e.type;let n=null;var r={settings:c,type:a};if("hcaptcha"===a?({task:i,image_urls:o,image_data:u}=e,r.task=i,o.length===u.length?r.image_data=u:r.image_urls=o,n=await NopeCHA.post(r)):"hcaptcha_mc"===a?({choices:i,image_url:u,image_data:o}=e,r.choices=i,0===o.length?r.image_url=u:r.image_data=o,(n=await NopeCHA.post(r))?.data&&(n.data=i.map(e=>e===n.data))):"hcaptcha_bb"===a&&({task:u,image_data:o}=e,r.task=u,r.image_data=o,n=await NopeCHA.post(r)),n&&n.data){if(await NopeCHA.delay({settings:c,start:n.start,type:"hcaptcha"}),"hcaptcha"===a||"hcaptcha_mc"===a){var t=e.cells;for(let e=0;e<n.data.length;e++)!1===n.data[e]||"hcaptcha_mc"!==a&&"true"===t[e].getAttribute("aria-pressed")||(Input.click(t[e]),await Time.random_sleep(100,300))}else if("hcaptcha_bb"===a){var i=document.querySelector(".challenge-view > canvas");if(!i)return;i.addEventListener("click",e=>{});let e=n.data.x,a=n.data.y,t=n.data.w||0,l=n.data.h||0;var u=i.style.width,o=i.style.height;"500px"===u&&"536px"===o||(r=parseInt(u.replace("px",""))/500,c=parseInt(o.replace("px",""))/536,e=Math.round(e*r),a=Math.round(a*c),t=Math.round(t*r),l=Math.round(l*c)),Input.point(i,e,a,"mousedown"),await Time.sleep(100),Input.point(i,e+t,a+l,"mousemove"),await Time.sleep(100),Input.point(i,e+t,a+l,"mouseup"),await Time.sleep(1e3)}await Time.sleep(200);try{Input.click(".button-submit")}catch(e){}await Time.sleep(500)}else s=null}else s=null}let t=!1;for(;;){await Time.sleep(1e3);var n,c=await BG.exec("Settings.get");c&&c.enabled&&(n=await Location.hostname(),c.disabled_hosts.includes(n)||(c.hcaptcha_auto_open&&0!==document.body.getBoundingClientRect()?.width&&0!==document.body.getBoundingClientRect()?.height&&null!==document.querySelector("div.check")?await e():c.hcaptcha_auto_solve&&null!==document.querySelector("h2.prompt-text")&&await a(c)))}})();
@@ -0,0 +1 @@
1
+ (()=>{var e=function(){"use strict";Array.prototype.indexOf||(Array.prototype.indexOf=function(t){for(let e=0;e<this.length;e++)if(this[e]===t)return e;return-1});const i=(e,t)=>Array.prototype.slice.call(e,t);let e=null;"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?e=self:"undefined"!=typeof global?e=global:window&&(e=window);const t=e,u=e.document;var n="undefined"!=typeof navigator&&navigator.useragent?navigator.userAgent:"";let g=null;(/msie (\d+)/.test(n.toLowerCase())||/trident\/.*; rv:(\d+)/.test(n.toLowerCase()))&&(g=parseInt(RegExp.$1,10));function E(e,t){for(var n in e)if(!c(n)){var r=e[n];try{t[n]=r}catch(e){}}return t}function m(e,a,s){var t;for(t of Array.from(e))s._has(t)&&(a["on"+t]=(o=>function(e){var t,n,r={};for(t in e)c(t)||(n=e[t],r[t]=n===a?s:n);return s.dispatchEvent(o,r)})(t))}function w(o){let r={};const a=e=>r[e]||[],s={addEventListener:function(e,t,n){r[e]=a(e),0<=r[e].indexOf(t)||(n=void 0===n?r[e].length:n,r[e].splice(n,0,t))},removeEventListener:function(e,t){void 0===e?r={}:(void 0===t&&(r[e]=[]),-1!==(t=a(e).indexOf(t))&&a(e).splice(t,1))}};return s.dispatchEvent=function(){var t=i(arguments),e=t.shift(),n=(o||(t[0]=E(t[0],function(t){var e;if(u&&null!=u.createEventObject)return(e=u.createEventObject()).type=t,e;try{return new Event(t)}catch(e){return{type:t}}}(e))),s["on"+e]),r=(n&&n.apply(s,t),a(e).concat(a("*")));for(let e=0;e<r.length;e++)r[e].apply(s,t)},s._has=e=>!(!r[e]&&!s["on"+e]),o&&(s.listeners=e=>i(a(e)),s.on=s.addEventListener,s.off=s.removeEventListener,s.fire=s.dispatchEvent,s.once=function(e,t){var n=function(){return s.off(e,n),t.apply(null,arguments)};return s.on(e,n)},s.destroy=()=>r={}),s}const b=["load","loadend","loadstart"],L=["progress","abort","error","timeout"],c=e=>["returnValue","totalSize","position"].includes(e);var x=function(e,t){let n;switch(null==t&&(t={}),typeof e){case"object":var r,o=[];for(r in e){var a=e[r];n=r.toLowerCase(),o.push(n+`: `+a)}return o.join("\n")+"\n";case"string":o=e.split("\n");for(var s of Array.from(o))/([^:]+):\s*(.+)/.test(s)&&(n=null!=RegExp.$1?RegExp.$1.toLowerCase():void 0,s=RegExp.$2,null==t[n])&&(t[n]=s);return t}return[]};function r(){const i=new R,u={};let o=null,a=void 0,c=void 0,f=void 0;var s=0;function t(){if(f.status=o||i.status,-1===o&&g<10||(f.statusText=i.statusText),-1!==o){var e,t=x(i.getAllResponseHeaders());for(e in t){var n,r=t[e];f.headers[e]||(n=e.toLowerCase(),f.headers[n]=r)}}}function r(e){for(;s<e&&s<4;)y.readyState=++s,1===s&&y.dispatchEvent("loadstart",{}),2===s&&n(),4===s&&(n(),d()),y.dispatchEvent("readystatechange",{}),4===s&&(!1===u.async?p():setTimeout(p,0))}function l(e){if(4!==e)r(e);else{const n=N.listeners("after");var t=function(){var e;0<n.length?2===(e=n.shift()).length?(e(u,f),t()):3===e.length&&u.async?e(u,f,t):t():r(4)};t()}}const n=function(){y.status=f.status,y.statusText=f.statusText},d=function(){"text"in f&&(y.responseText=f.text),"xml"in f&&(y.responseXML=f.xml),"data"in f&&(y.response=f.data),"finalUrl"in f&&(y.responseURL=f.finalUrl)},p=function(){a||y.dispatchEvent("load",{}),y.dispatchEvent("loadend",{}),a&&(y.readyState=0)};function e(){a=!0}var h,v,y=w();u.xhr=y,i.onreadystatechange=function(e){try{2===i.readyState&&t()}catch(e){}if(4===i.readyState){if(c=!1,t(),i.responseType&&"text"!==i.responseType)"document"===i.responseType?(f.xml=i.responseXML,f.data=i.responseXML):f.data=i.response;else{f.text=i.responseText,f.data=i.responseText;try{f.xml=i.responseXML}catch(e){}}"responseURL"in i&&(f.finalUrl=i.responseURL)}l(i.readyState)},y.addEventListener("error",e),y.addEventListener("timeout",e),y.addEventListener("abort",e),y.addEventListener("progress",function(e){s<3?l(3):i.readyState<=3&&y.dispatchEvent("readystatechange",{})}),"withCredentials"in i&&(y.withCredentials=!1),y.status=0;for(h of Array.from(L.concat(b)))y["on"+h]=null;return y.open=function(e,t,n,r,o){s=0,a=!1,c=!1,u.headers={},u.headerNames={},u.status=0,u.method=e,u.url=t,u.async=!1!==n,u.user=r,u.pass=o,f={headers:{}},l(1)},y.send=function(e){let n,r;for(n of["type","timeout","withCredentials"])(r="type"===n?"responseType":n)in y&&(u[n]=y[r]);u.body=e;const o=function(){m(L,i,y),y.upload&&m(L.concat(b),i.upload,y.upload),c=!0,i.open(u.method,u.url,u.async,u.user,u.pass);for(n of["type","timeout","withCredentials"])r="type"===n?"responseType":n,n in u&&(i[r]=u[n]);for(var e in u.headers){var t=u.headers[e];e&&i.setRequestHeader(e,t)}i.send(u.body)},a=N.listeners("before");var s=function(){if(!a.length)return o();function e(e){"object"!=typeof e||"number"!=typeof e.status&&"number"!=typeof f.status?s():(E(e,f),"data"in e||(e.data=e.response||e.text),l(4))}e.head=function(e){E(e,f),l(2)},e.progress=function(e){E(e,f),l(3)};var t=a.shift();1===t.length?e(t(u)):2===t.length&&u.async?t(u,e):e()};s()},y.abort=function(){o=-1,c?i.abort():y.dispatchEvent("abort",{})},y.setRequestHeader=function(e,t){var n=null!=e?e.toLowerCase():void 0,n=u.headerNames[n]=u.headerNames[n]||e;u.headers[n]&&(t=u.headers[n]+", "+t),u.headers[n]=t},y.getResponseHeader=e=>O(f.headers[e?e.toLowerCase():void 0]),y.getAllResponseHeaders=()=>O(x(f.headers)),i.overrideMimeType&&(y.overrideMimeType=function(){i.overrideMimeType.apply(i,arguments)}),i.upload&&(v=w(),y.upload=v,u.upload=v),y.UNSENT=0,y.OPENED=1,y.HEADERS_RECEIVED=2,y.LOADING=3,y.DONE=4,y.response="",y.responseText="",y.responseXML=null,y.readyState=0,y.statusText="",y}const N=w(!0),O=e=>void 0===e?null:e,R=t.XMLHttpRequest;r.UNSENT=0,r.OPENED=1,r.HEADERS_RECEIVED=2,r.LOADING=3,r.DONE=4;var o={patch(){R&&(t.XMLHttpRequest=r)},unpatch(){R&&(t.XMLHttpRequest=R)},Native:R,XH:r};function a(e,u){null==u&&(u={headers:{}});let c=null;e instanceof Request?c=e:u.url=e;const f=N.listeners("before"),l=N.listeners("after");return new Promise(function(n,t){function r(e){var t;return l.length?2===(t=l.shift()).length?(t(a(),e),r(e)):3===t.length?t(a(),e,r):r(e):n(e)}function o(){var e;if(f.length)return 1===(e=f.shift()).length?s(e(u)):2===e.length&&e(a(),s);i()}const a=function(){return u.headers&&(u.headers=new Headers(u.headers)),c=c||new Request(u.url,u),E(u,c)},s=function(e){void 0!==e?(e=new Response(e.body||e.text,e),n(e),r(e)):o()};var i=()=>d(a()).then(e=>r(e)).catch(function(e){return n=t,r(e),t(e)});o()})}const d=t.fetch;var s={patch(){d&&(t.fetch=a)},unpatch(){d&&(t.fetch=d)},Native:d,XH:a};const f=N;return f.EventEmitter=w,f.before=function(e,t){if(e.length<1||2<e.length)throw"invalid hook";return f.on("before",e,t)},f.after=function(e,t){if(e.length<2||3<e.length)throw"invalid hook";return f.on("after",e,t)},f.enable=function(){o.patch(),s.patch()},f.disable=function(){o.unpatch(),s.unpatch()},f.XMLHttpRequest=o.Native,f.fetch=s.Native,f.headers=x,f.enable(),f}();function s(e,t){var n={};for(const u of t)n[u]=[];for(const c of e)for(const f of Object.keys(n)){var r=0===n[f].length?0:n[f][n[f].length-1][2],o=[];if(f in c){for(var[a,s]of c[f].entries())1===t.length&&10<a&&a<c[f].length-10||o.push([Math.ceil(s[0]),Math.ceil(s[1]),Math.ceil(s[2]+r)]);n[f].push(...o)}}for(const l of Object.keys(n)){var i=[];let e=null;for(const d of n[l])null!==e&&i.push(d[2]-e),e=d[2];let t=0;0<i.length&&(t=i.reduce((e,t)=>e+t)/i.length),n[l+"-mp"]=t}return n}function i(e,t,n=null){var r=JSON.parse(JSON.stringify(e));for(const s of Object.keys(r))if(!s.endsWith("-mp")){var o=[];for(let e=0;e<r[s].length;e++){var a=r[s][e][2]+t;null!==n&&n<=a||o.push([r[s][e][0],r[s][e][1],a])}r[s]=o}return r}function u(e,t){for(const n of Object.keys(t))e[n]=t[n]}let c=[];window.addEventListener("message",e=>{"apkfoekwaokfowe"===e.data.event&&c.push(e.data.metadata)}),window.postMessage({event:"pfowakepfowkepofkwa"}),e.before(e=>{try{var t,n,r,o;"POST"===(a=e).method&&a.url.startsWith("https://hcaptcha.com/checkcaptcha/")&&(t=JSON.parse(e.body),n=JSON.parse(t.motionData),r=s(c,["mm","md","mu"]),o=s(c,["mm"]),u(n,i(r,n.st)),u(n.topLevel,i(o,n.topLevel.st,n.st)),t.motionData=JSON.stringify(n),e.body=JSON.stringify(t),c=[])}catch(e){}var a})})();
@@ -0,0 +1 @@
1
+ (()=>{let e;function t(){var e=navigator.language.split("-")[0];for(const r of document.querySelectorAll('script[src*="hcaptcha.com/1/api.js"]')){var t=new URL(r.src);"en"!==(t.searchParams.get("hl")||e)&&(t.searchParams.set("hl","en"),r.src=t.toString())}}e=new MutationObserver(t),setTimeout(()=>{t(),e.observe(document.head,{childList:!0})},0)})();
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,74 @@
1
+ (async()=>{var t,e;function n(){try{return window.self!==window.top}catch(t){return 1}}t=self,e=()=>(()=>{"use strict";var r,c,t,i={d:(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function l(t){return t&&t instanceof Element}i.r(e),i.d(e,{default:()=>V,getCssSelector:()=>L}),(t=r=r||{}).NONE="none",t.DESCENDANT="descendant",t.CHILD="child",(t=c=c||{}).id="id",t.class="class",t.tag="tag",t.attribute="attribute",t.nthchild="nthchild",t.nthoftype="nthoftype";const h={selectors:[c.id,c.class,c.tag,c.attribute],includeTag:!1,whitelist:[],blacklist:[],combineWithinSelector:!0,combineBetweenSelectors:!0,root:null,maxCombinations:Number.POSITIVE_INFINITY,maxCandidates:Number.POSITIVE_INFINITY};function o(t){return t instanceof RegExp}function n(t){return["string","function"].includes(typeof t)||o(t)}function u(t){return Array.isArray(t)?t.filter(n):[]}function s(t){var e=[Node.DOCUMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE,Node.ELEMENT_NODE];return t instanceof Node&&e.includes(t.nodeType)}function p(t,e){return s(t)?(t.contains(e),t):s(t=e.getRootNode({composed:!1}))?(document,t):e.ownerDocument.querySelector(":root")}function f(t){return"number"==typeof t?t:Number.POSITIVE_INFINITY}function m(t=[]){var[t=[],...e]=t;return 0===e.length?t:e.reduce((t,e)=>t.filter(t=>e.includes(t)),t)}function g(t){return[].concat(...t)}function E(t){const n=t.map(e=>{if(o(e))return t=>e.test(t);if("function"==typeof e)return t=>{t=e(t);return"boolean"==typeof t&&t};if("string"!=typeof e)return()=>!1;{const n=new RegExp("^"+e.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".+")+"$");return t=>n.test(t)}});return e=>n.some(t=>t(e))}function _(t,e,n){const i=Array.from(p(n,t[0]).querySelectorAll(e));return i.length===t.length&&t.every(t=>i.includes(t))}function b(t,e){e=null!=e?e:t.ownerDocument.querySelector(":root");var n=[];let i=t;for(;l(i)&&i!==e;)n.push(i),i=i.parentElement;return n}const a={[r.NONE]:{type:r.NONE,value:""},[r.DESCENDANT]:{type:r.DESCENDANT,value:" > "},[r.CHILD]:{type:r.CHILD,value:" "}},d=new RegExp(["^$","\\s"].join("|")),A=new RegExp(["^$"].join("|")),$=[c.nthoftype,c.tag,c.id,c.class,c.attribute,c.nthchild],y=E(["class","id","ng-*"]);function x({nodeName:t}){return`[${t}]`}function S({nodeName:t,nodeValue:e}){return`[${t}='${T(e)}']`}function w(n){var t=Array.from(n.attributes).filter(t=>{var[t,e]=[t.nodeName,n];return e=e.tagName.toLowerCase(),!(["input","option"].includes(e)&&"value"===t||y(t))});return[...t.map(x),...t.map(S)]}function N(t){return(t.getAttribute("class")||"").trim().split(/\s+/).filter(t=>!A.test(t)).map(t=>"."+T(t))}function v(t){var e=t.getAttribute("id")||"",n="#"+T(e),i=t.getRootNode({composed:!1});return!d.test(e)&&_([t],n,i)?[n]:[]}function C(t){var e=t.parentNode;if(e){e=Array.from(e.childNodes).filter(l).indexOf(t);if(-1<e)return[`:nth-child(${e+1})`]}return[]}function M(t){return[T(t.tagName.toLowerCase())]}function P(t){t=[...new Set(g(t.map(M)))];return 0===t.length||1<t.length?[]:[t[0]]}function O(t){const e=P([t])[0],n=t.parentElement;if(n){t=Array.from(n.children).filter(t=>t.tagName.toLowerCase()===e).indexOf(t);if(-1<t)return[e+`:nth-of-type(${t+1})`]}return[]}function k(e=[],{maxResults:t=Number.POSITIVE_INFINITY}={}){var n=[];let i=0,r=I(1);for(;r.length<=e.length&&i<t;)i+=1,n.push(r.map(t=>e[t])),r=function(t=[],e){var n=t.length;if(0===n)return[];var i=[...t];i[n-1]+=1;for(let t=n-1;0<=t;t--)if(i[t]>e){if(0===t)return I(n+1);i[t-1]++,i[t]=i[t-1]+1}return e<i[n-1]?I(n+1):i}(r,e.length-1);return n}function I(t=1){return Array.from(Array(t).keys())}const R=":".charCodeAt(0).toString(16).toUpperCase(),D=/[ !"#$%&'()\[\]{|}<>*+,./;=?@^`~\\]/;function T(t=""){var e;return null!=(e=null==(e=null===CSS||void 0===CSS?void 0:CSS.escape)?void 0:e.call(CSS,t))?e:([e=""]=[t],e.split("").map(t=>":"===t?`\\${R} `:D.test(t)?"\\"+t:escape(t).replace(/%/g,"\\")).join(""))}const j={tag:P,id:function(t){return 0===t.length||1<t.length?[]:v(t[0])},class:function(t){return m(t.map(N))},attribute:function(t){return m(t.map(w))},nthchild:function(t){return m(t.map(C))},nthoftype:function(t){return m(t.map(O))}},H={tag:M,id:v,class:N,attribute:w,nthchild:C,nthoftype:O};function B(t){return t.includes(c.tag)||t.includes(c.nthoftype)?[...t]:[...t,c.tag]}function U(e={}){var t=[...$];return e[c.tag]&&e[c.nthoftype]&&t.splice(t.indexOf(c.tag),1),t.map(t=>{return e[t=t]?e[t].join(""):""}).join("")}function J(t,e,n="",i){var r,o,s,a,d;i.root,s=function(a,n){const{blacklist:t,whitelist:e,combineWithinSelector:d,maxCombinations:c}=n,l=E(t),h=E(e);return function(){var{selectors:t,includeTag:e}=n,t=[].concat(t);return e&&!t.includes("tag")&&t.push("tag"),t}().reduce((t,e)=>{o=a,s=e;var n,i,r,o,s=(null!=(s=j[s])?s:()=>[])(o),s=([o=[],i,r]=[s,l,h],o.filter(t=>r(t)||!i(t))),s=([o=[],n]=[s,h],o.sort((t,e)=>{t=n(t),e=n(e);return t&&!e?-1:!t&&e?1:0}));return t[e]=d?k(s,{maxResults:c}):s.map(t=>[t]),t},{})}(t,o=i),a=s,d=o,s=g(function(){var{selectors:t,combineBetweenSelectors:e,includeTag:n,maxCandidates:i}=d,e=e?k(t,{maxResults:i}):t.map(t=>[t]);return n?e.map(B):e}().map(t=>{{var n=a;const i={};return t.forEach(t=>{var e=n[t];0<e.length&&(i[t]=e)}),function(t={}){let i=[];return Object.entries(t).forEach(([n,t])=>{i=t.flatMap(e=>0===i.length?[{[n]:e}]:i.map(t=>Object.assign(Object.assign({},t),{[n]:e})))}),i}(i).map(U)}}).filter(t=>0<t.length)),o=[...new Set(s)];for(const e of""===n?o:(r=n,[...(o=o).map(t=>r+" "+t),...o.map(t=>r+" > "+t)]))if(_(t,e,i.root))return e;return null}function z(t){return{value:t,include:!1}}function G({selectors:e,operator:t}){let n=[...$],i=(e[c.tag]&&e[c.nthoftype]&&(n=n.filter(t=>t!==c.tag)),"");return n.forEach(t=>{(e[t]||[]).forEach(({value:t,include:e})=>{e&&(i+=t)})}),t.value+i}function F(t){return[":root",...b(t).reverse().map(t=>{t=function(n,t,e=r.NONE){const i={};return t.forEach(t=>{var e;Reflect.set(i,t,(e=n,t=t,H[t](e).map(z)))}),{element:n,operator:a[e],selectors:i}}(t,[c.nthchild],r.DESCENDANT);return t.selectors.nthchild.forEach(t=>{t.include=!0}),t}).map(G)].join("")}function L(t,e={}){const o=function(t){t=(Array.isArray(t)?t:[t]).filter(l);return[...new Set(t)]}(t),s=([t,e={}]=[o[0],e],e=Object.assign(Object.assign({},h),e),{selectors:(n=e.selectors,Array.isArray(n)?n.filter(t=>{return e=c,t=t,Object.values(e).includes(t);var e}):[]),whitelist:u(e.whitelist),blacklist:u(e.blacklist),root:p(e.root,t),combineWithinSelector:!!e.combineWithinSelector,combineBetweenSelectors:!!e.combineBetweenSelectors,includeTag:!!e.includeTag,maxCombinations:f(e.maxCombinations),maxCandidates:f(e.maxCandidates)});var n;let a="",d=s.root;function i(){var[t,e,n="",i]=[o,d,a,s];if(0!==t.length){var r,e=[1<t.length?t:[],...(r=e,m(t.map(t=>b(t,r))).map(t=>[t]))];for(const t of e){const e=J(t,0,n,i);if(e)return{foundElements:t,selector:e}}}return null}let r=i();for(;r;){const{foundElements:t,selector:c}=r;if(_(o,c,s.root))return c;d=t[0],a=c,r=i()}return(1<o.length?o.map(t=>L(t,s)):o.map(F)).join(", ")}const V=L;return e})(),"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.CssSelectorGenerator=e():t.CssSelectorGenerator=e();class r{constructor(t,e=!1){this.NAMESPACE="__NOPECHA__",this.MARK_RADIUS=5,this.window_id=Util.generate_id(8),this.locate=t,this.draw_mark=e,this.update_timer,this.css_selector,this.$last,this.initialize_style(),this.initialize_elements()}initialize_style(){var t=[`#${this.NAMESPACE}_wrapper {
2
+ position: fixed;
3
+ top: 0;
4
+ bottom: 0;
5
+ left: 0;
6
+ right: 0;
7
+ background-color: transparent;
8
+ pointer-events: none;
9
+ z-index: 10000000;
10
+ }`,`.${this.NAMESPACE}_textbox {
11
+ display: flex;
12
+ flex-direction: row;
13
+ flex-wrap: wrap;
14
+
15
+ position: absolute;
16
+ left: 0;
17
+ right: 0;
18
+
19
+ background-color: #222;
20
+ color: #fff;
21
+ font: normal 12px/12px Helvetica, sans-serif;
22
+ text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
23
+ border: 1px solid #fff;
24
+ overflow: hidden;
25
+ }`,`.${this.NAMESPACE}_textbox.${this.NAMESPACE}_header {
26
+ top: 0;
27
+ }`,`.${this.NAMESPACE}_textbox.${this.NAMESPACE}_header > div {
28
+ padding: 4px 8px;
29
+ }`,`.${this.NAMESPACE}_textbox.${this.NAMESPACE}_header > div:first-child {
30
+ flex-grow: 1;
31
+ }`,`.${this.NAMESPACE}_textbox.${this.NAMESPACE}_footer {
32
+ bottom: 0;
33
+ }`,`.${this.NAMESPACE}_textbox.${this.NAMESPACE}_footer > div {
34
+ padding: 4px 8px;
35
+ }`,`.${this.NAMESPACE}_textbox.${this.NAMESPACE}_footer > div:first-child {
36
+ flex-grow: 1;
37
+ }`,`.${this.NAMESPACE}_highlight {
38
+ position: absolute;
39
+ opacity: 0.4;
40
+ }`,`.${this.NAMESPACE}_highlight.${this.NAMESPACE}_margin {
41
+ background-color: rgb(230, 165, 18);
42
+ }`,`.${this.NAMESPACE}_highlight.${this.NAMESPACE}_border {
43
+ background-color: rgb(255, 204, 121);
44
+ }`,`.${this.NAMESPACE}_highlight.${this.NAMESPACE}_padding {
45
+ background-color: rgb(50, 255, 50);
46
+ }`,`.${this.NAMESPACE}_highlight.${this.NAMESPACE}_content {
47
+ background-color: rgb(0, 153, 201);
48
+ }`,`.${this.NAMESPACE}_mark {
49
+ position: absolute;
50
+ top: 0;
51
+ left: 0;
52
+ right: 0;
53
+
54
+ width: ${parseInt(2*this.MARK_RADIUS)}px;
55
+ height: ${parseInt(2*this.MARK_RADIUS)}px;
56
+ background-color: #f44;
57
+ border-radius: 50%;
58
+ z-index: 2;
59
+ }`];n()||t.push(`.${this.NAMESPACE}_shadow {
60
+ position: fixed;
61
+ top: 0;
62
+ bottom: 0;
63
+ left: 0;
64
+ right: 0;
65
+ background-color: rgba(255, 255, 255, 0.1);
66
+ pointer-events: none;
67
+ z-index: 1;
68
+ }`),this.$style=document.createElement("style"),this.$style.type="text/css",this.$style.styleSheet?this.$style.styleSheet.cssText=t.join("\n"):this.$style.innerHTML=t.join("\n"),document.getElementsByTagName("head")[0].appendChild(this.$style)}initialize_elements(){var t;this.$wrapper=document.createElement("div"),this.$wrapper.id=this.NAMESPACE+"_wrapper",document.body.append(this.$wrapper),this.$shadow=document.createElement("div"),this.$shadow.classList.add(this.NAMESPACE+"_shadow"),this.$wrapper.append(this.$shadow),this.$margin_box=document.createElement("div"),this.$margin_box.classList.add(this.NAMESPACE+"_highlight",this.NAMESPACE+"_margin"),this.$wrapper.append(this.$margin_box),this.$border_box=document.createElement("div"),this.$border_box.classList.add(this.NAMESPACE+"_highlight",this.NAMESPACE+"_border"),this.$wrapper.append(this.$border_box),this.$padding_box=document.createElement("div"),this.$padding_box.classList.add(this.NAMESPACE+"_highlight",this.NAMESPACE+"_padding"),this.$wrapper.append(this.$padding_box),this.$content_box=document.createElement("div"),this.$content_box.classList.add(this.NAMESPACE+"_highlight",this.NAMESPACE+"_content"),this.$wrapper.append(this.$content_box),n()||(this.$header=document.createElement("div"),this.$header.classList.add(this.NAMESPACE+"_textbox",this.NAMESPACE+"_header"),t="textcaptcha_image_selector"===this.locate?"<b>Image</b>":"<b>Input</b>",this.$header.innerHTML=`
69
+ <div>
70
+ <div>Click on the CAPTCHA ${t} element to generate a CSS selector.</div>
71
+ <div>Press <b>ESC</b> to cancel.</div>
72
+ </div>
73
+ <div><b>NopeCHA</b></div>
74
+ `,this.$wrapper.append(this.$header),this.$footer=document.createElement("div"),this.$footer.classList.add(this.NAMESPACE+"_textbox",this.NAMESPACE+"_footer"),this.$wrapper.append(this.$footer)),this.draw_mark&&(this.$mark=document.createElement("div"),this.$mark.classList.add(this.NAMESPACE+"_mark"),this.$wrapper.append(this.$mark))}clip(t){var e={top:Math.max(0,t.top),left:Math.max(0,t.left),width:t.width+t.left>window.innerWidth?window.innerWidth-t.left:t.width,height:t.height+t.top>window.innerHeight?window.innerHeight-t.top:t.height};return t.top<0&&(e.height+=t.top),t.left<0&&(e.width+=t.left),e.width<0&&(e.width=0),e.height<0&&(e.height=0),e}computed_style(t,e){let n=window.getComputedStyle(t).getPropertyValue(e);for(const i in n=n.match(/[\-]?[\d\.]+px/g))n[i]=parseFloat(n[i].replace("px",""));return 1===n.length&&n.push(n[0],n[0],n[0]),2===n.length&&n.push(n[0],n[1]),3===n.length&&n.push(n[1]),n}add_dim(t,e){for(const n of e)t.top-=n[0],t.left-=n[3],t.width+=n[1]+n[3],t.height+=n[0]+n[2];return t}sub_dim(t,e){for(const n of e)t.top+=n[0],t.left+=n[3],t.width-=n[1]+n[3],t.height-=n[0]+n[2];return t}set_dim(t,e){e=this.clip(e);t.style.top=e.top+"px",t.style.left=e.left+"px",t.style.width=e.width+"px",t.style.height=e.height+"px"}get_center(t){t=t.getBoundingClientRect();return{x:t.left+t.width/2,y:t.top+t.height/2}}get_css(){return window.CssSelectorGenerator.getCssSelector(this.$t)}clear(){this.$t=null;var t={top:0,left:0,width:0,height:0};this.set_dim(this.$margin_box,t),this.set_dim(this.$border_box,t),this.set_dim(this.$padding_box,t),this.set_dim(this.$content_box,t),this.draw_mark&&(this.$mark.style.top="0px",this.$mark.style.left="0px")}update(a,t=0){const d=this;d.$last&&d.$last===a||(a&&(d.$t=a),d.$t&&(clearTimeout(d.update_timer),d.update_timer=setTimeout(()=>{var t,e,n,i,r,o,s;d.$t?.getBoundingClientRect&&(r=d.$t.getBoundingClientRect(),o=d.computed_style(d.$t,"margin"),s=d.computed_style(d.$t,"border-width"),t=d.computed_style(d.$t,"padding"),r={top:r.top,left:r.left,width:r.width,height:r.height},e=JSON.parse(JSON.stringify(r)),n=JSON.parse(JSON.stringify(r)),i=JSON.parse(JSON.stringify(r)),r=JSON.parse(JSON.stringify(r)),d.add_dim(e,[o]),d.sub_dim(i,[s]),d.sub_dim(r,[s,t]),d.set_dim(d.$margin_box,e),d.set_dim(d.$border_box,n),d.set_dim(d.$padding_box,i),d.set_dim(d.$content_box,r),o=d.get_css(d.$t),d.update_css_selector(d.window_id,o),BG.exec("Relay.send",{data:{action:"update_locate",window_id:d.window_id,css_selector:o}}),d.draw_mark)&&(s=d.get_center(a),d.$mark.style.top=parseInt(s.y-d.MARK_RADIUS)+"px",d.$mark.style.left=parseInt(s.x-d.MARK_RADIUS)+"px")},t)))}update_css_selector(t,e){this.window_id!==t&&this.clear(),n()||(this.$footer.innerHTML=`<div>${e}</div>`)}terminate(){clearTimeout(this.update_timer),this.$style.remove(),this.$wrapper.remove()}}let o=null;function s(t){t=t.target,t=o.get_css(t);BG.exec("Settings.set",{id:o.locate,value:t}),l(!0)}function a(t){t=t.target;o.update(t)}function d(t){o.update()}function c(t){t=t||window.event;let e=!1;(e="key"in t?"Escape"===t.key||"Esc"===t.key:27===t.keyCode)&&l(!0)}function l(t){try{document.body.removeEventListener("click",s),document.body.removeEventListener("mousemove",a),document.body.removeEventListener("mousewheel",d),document.body.removeEventListener("keydown",c),o.terminate(),o=null}catch(t){}t&&BG.exec("Relay.send",{data:{action:"stop_locate"}})}chrome.runtime.onMessage.addListener((t,e,n)=>{var i;"start_locate"===t.action?(i=t.locate,o=new r(i),document.body.addEventListener("click",s),document.body.addEventListener("mousemove",a),document.body.addEventListener("mousewheel",d),document.body.addEventListener("keydown",c)):"stop_locate"===t.action?l(!1):"update_locate"===t.action&&o.update_css_selector(t.window_id,t.css_selector)})})();
@@ -0,0 +1 @@
1
+ {"name": "NopeCHA: CAPTCHA Solver", "version": "0.3.13", "description": "Automatically solve reCAPTCHA, hCaptcha, FunCAPTCHA, AWS WAF, and text CAPTCHA using AI.", "permissions": ["declarativeNetRequest", "contextMenus", "scripting", "storage", "webRequest"], "content_scripts": [{"matches": ["<all_urls>"], "js": ["utils.js", "content.js"], "run_at": "document_start", "all_frames": true, "match_about_blank": true}, {"matches": ["*://nopecha.com/setup"], "js": ["setup.js"], "run_at": "document_end", "all_frames": true, "match_about_blank": false}, {"matches": ["*://*.hcaptcha.com/captcha/*"], "js": ["hcaptcha.js"], "run_at": "document_end", "all_frames": true, "match_about_blank": false}, {"matches": ["<all_urls>"], "js": ["hcaptcha_language.js"], "run_at": "document_end", "all_frames": true, "match_about_blank": false}, {"matches": ["<all_urls>"], "js": ["recaptcha.js", "recaptcha_speech.js"], "run_at": "document_end", "all_frames": true, "match_about_blank": false}, {"matches": ["*://*.arkoselabs.com/fc/*", "*://*.funcaptcha.com/fc/*"], "js": ["funcaptcha_tile.js", "funcaptcha_match.js", "funcaptcha_scrape.js", "funcaptcha_tile_scrape.js", "funcaptcha_match_scrape.js"], "run_at": "document_end", "all_frames": true, "match_about_blank": true}, {"matches": ["*://nopecha.com/demo/funcaptcha"], "js": ["funcaptcha_demo.js"], "run_at": "document_end", "all_frames": false, "match_about_blank": false}, {"matches": ["<all_urls>"], "js": ["awscaptcha.js"], "run_at": "document_end", "all_frames": true, "match_about_blank": false}, {"matches": ["<all_urls>"], "js": ["textcaptcha.js", "locate.js"], "run_at": "document_end", "all_frames": true, "match_about_blank": true}], "icons": {"16": "icon/16.png", "32": "icon/32.png", "48": "icon/48.png", "128": "icon/128.png"}, "manifest_version": 3, "action": {"default_title": "NopeCHA: CAPTCHA Solver", "default_icon": "icon/16.png", "default_popup": "popup.html"}, "background": {"service_worker": "background.js", "type": "module"}, "host_permissions": ["<all_urls>"]}