File tree Expand file tree Collapse file tree 3 files changed +50
-1
lines changed Expand file tree Collapse file tree 3 files changed +50
-1
lines changed Original file line number Diff line number Diff line change
1
+ import BypassDefinition from './BypassDefinition.js' ;
2
+
3
+ export default class BlogTechh extends BypassDefinition {
4
+ constructor ( ) {
5
+ super ( ) ;
6
+ }
7
+
8
+ execute ( ) {
9
+ this . helpers . awaitElement ( "button#getlink" , button => {
10
+ button . click ( )
11
+ } )
12
+ }
13
+ }
14
+
15
+ export const matches = [ 'blogtechh.com' , 'oko.sh' ] ;
Original file line number Diff line number Diff line change
1
+ import BypassDefinition from './BypassDefinition.js' ;
2
+
3
+ export default class TiiLa extends BypassDefinition {
4
+ constructor ( ) {
5
+ super ( ) ;
6
+ this . ensure_dom = true ;
7
+ }
8
+
9
+ execute ( ) {
10
+ const urlObj = new URL ( window . location . href )
11
+ this . helpers . crowdQuery ( 'tii.la' , urlObj . pathname . slice ( 1 ) ) . then ( ( dest ) => {
12
+ this . helpers . crowdNavigate ( dest )
13
+ } ) ;
14
+ /*keep checking for the button*/
15
+ setInterval ( ( ) => {
16
+ const button = document . querySelector ( "a.btn.btn-success.btn-lg.get-link" ) ;
17
+ if ( button && button . href ) {
18
+ this . helpers . crowdContribute ( 'tii.la' , urlObj . pathname . slice ( 1 ) , button . href )
19
+ this . helpers . safelyNavigate ( button . href )
20
+ }
21
+ } , 500 ) ;
22
+
23
+ }
24
+ }
25
+
26
+ export const matches = [ 'tii.la' ] ;
Original file line number Diff line number Diff line change @@ -247,7 +247,7 @@ export function crowdQuery(domain, path) {
247
247
return new Promise ( ( resolve , reject ) => {
248
248
const timeout = setTimeout ( ( ) => {
249
249
reject ( new Error ( 'Timeout: crowd response not received' ) ) ;
250
- } , 5000 ) ; //5 sec timeout
250
+ } , 10000 ) ; //10 sec timeout
251
251
252
252
document . addEventListener ( 'ff53054c0e13_crowdResponse' , function ( event ) {
253
253
clearTimeout ( timeout ) ;
@@ -443,6 +443,13 @@ export async function bypassRequests(execution_method) {
443
443
return Promise . resolve ( result ) ;
444
444
} ;
445
445
}
446
+ /**
447
+ * Navigates to the specified URL. To be used for crowd sourced bypasses.
448
+ * @param {string } target - The target URL to navigate to.
449
+ */
450
+ export function crowdNavigate ( target ) {
451
+ unsafelyNavigate ( target , null , true ) ;
452
+ }
446
453
447
454
export default {
448
455
insertInfoBox,
@@ -451,6 +458,7 @@ export default {
451
458
ffclipboard,
452
459
crowdQuery,
453
460
crowdContribute,
461
+ crowdNavigate,
454
462
followAndContribute,
455
463
unsafelyNavigate,
456
464
parseTarget,
You can’t perform that action at this time.
0 commit comments