-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathscript.js
More file actions
2679 lines (2598 loc) · 111 KB
/
Copy pathscript.js
File metadata and controls
2679 lines (2598 loc) · 111 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// ==UserScript==
// @name URL Modifier for Search Engines
// @name:zh-CN 搜索引擎结果 URL 修改器
// @name:zh-TW 搜索引擎結果 URL 修改器
// @name:es Modificador de URL para Motores de Búsqueda
// @name:pt Modificador de URL para Motores de Busca
// @name:ru Изменитель URL для Поисковых Систем
// @name:ja 検索エンジン用 URL 修正
// @name:fr Modificateur d'URL pour les moteurs de recherche
// @name:de URL Modifier für Suchmaschinen
// @name:nl URL Wijzigingsmodule voor Zoekmachines
// @name:sv URL Modifierare för Sökmotorer
// @name:fi URL Muokkain Hakukoneille
// @name:da URL Modifier til Søgemaskiner
// @name:ko 검색 엔진용 URL 수정기
// @name:it Modificatore di URL per Motori di Ricerca
// @name:cs Modifikátor URL pro vyhledávače
// @name:el Μετατροπέας URL για Μηχανές Αναζήτησης
// @name:he מתקן URL למנועי חיפוש
// @name:pl Modyfikator URL dla Wyszukiwarek
// @name:tr Arama Motorları için URL Değiştirici
// @name:ro Modificator de URL pentru Motoare de Căutare
// @name:hu URL Módosító a Keresőmotorokhoz
// @name:no URL Modifier for Søkemotorer
// @name:uk Модифікатор URL для Пошукових Систем
// @name:id Pengubah URL untuk Mesin Pencari
// @name:vi Bộ Chỉnh Sửa URL cho Các Công Cụ Tìm Kiếm
// @name:hi सर्च इंजनों के लिए URL संशोधक
// @name:fa تغییردهنده URL برای موتورهای جستجو
// @version 2.6.4
// @author Domenic
// @namespace http://tampermonkey.net/
// @description This Tampermonkey script enhances your search engine usage by modifying (redirecting) URLs in the search result of search engines, redirecting to alternative sites, allowing for a more customized and efficient browsing experience. You can also add you custom URL modification rule to the script and are welcomed to commit your rules to this script to make it much more useful.
// @description:zh-cn 这个 Tampermonkey 脚本通过修改搜索引擎结果中的 URL,重定向到替代网站,从而增强了您的搜索引擎使用体验,允许更自定义和高效的浏览体验。您还可以添加自定义的 URL 修改规则到脚本中,并欢迎将您的规则提交给这个脚本,使其变得更加有用。
// @description:zh-tw 這個 Tampermonkey 腳本通過修改搜索引擎結果中的 URL,重定向到替代網站,從而增強了您的搜索引擎使用體驗,允許更自定義和高效的瀏覽體驗。您還可以添加自定義的 URL 修改規則到腳本中,並歡迎將您的規則提交給這個腳本,使其變得更加有用。
// @description:es Este script de Tampermonkey mejora tu uso del motor de búsqueda modificando las URLs en los resultados de búsqueda de los motores de búsqueda, redirigiendo a sitios alternativos, lo que permite una experiencia de navegación más personalizada y eficiente. También puedes añadir tu regla de modificación de URL personalizada al script y se te invita a comprometer tus reglas con este script para hacerlo aún más útil.
// @description:pt Este script do Tampermonkey aprimora seu uso do mecanismo de busca modificando URLs nos resultados de pesquisa dos motores de busca, redirecionando para sites alternativos, permitindo uma experiência de navegação mais personalizada e eficiente. Você também pode adicionar sua própria regra de modificação de URL ao script e é bem-vindo para comprometer suas regras com este script para torná-lo ainda mais útil.
// @description:ru Этот скрипт Tampermonkey улучшает использование поисковой системы за счет модификации URL-адресов в результатах поиска, перенаправляя на альтернативные сайты, что позволяет более настраиваемый и эффективный опыт просмотра. Вы также можете добавить свое собственное правило модификации URL в скрипт и приветствуется ваш вклад в этот скрипт своими правилами, чтобы сделать его еще более полезным.
// @description:ja この Tampermonkey スクリプトは、検索エンジンの検索結果の URL を変更して代替サイトにリダイレクトすることで、検索エンジンの使用体験を向上させ、よりカスタマイズされ効率的なブラウジング体験を可能にします。また、カスタム URL 変更ルールをスクリプトに追加することができ、このスクリプトをさらに便利にするためにあなたのルールをコミットすることを歓迎します。
// @description:fr Ce script Tampermonkey améliore votre utilisation du moteur de recherche en modifiant les URL dans les résultats de recherche des moteurs de recherche, redirigeant vers des sites alternatifs, permettant une expérience de navigation plus personnalisée et efficace. Vous pouvez également ajouter votre propre règle de modification d'URL au script et êtes invité à engager vos règles avec ce script pour le rendre encore plus utile.
// @description:de Dieses Tampermonkey-Skript verbessert Ihre Nutzung der Suchmaschine, indem es URLs in den Suchergebnissen von Suchmaschinen modifiziert, auf alternative Seiten umleitet und so ein individuelleres und effizienteres Browsing-Erlebnis ermöglicht. Sie können auch Ihre eigene URL-Modifikationsregel zum Skript hinzufügen und sind eingeladen, Ihre Regeln zu diesem Skript beizutragen, um es noch nützlicher zu machen.
// @description:nl Dit Tampermonkey-script verbetert uw zoekmachinegebruik door URL's in de zoekresultaten van zoekmachines te wijzigen, om te leiden naar alternatieve sites, wat een meer aangepaste en efficiënte browse-ervaring mogelijk maakt. U kunt ook uw eigen URL-wijzigingsregel aan het script toevoegen en u wordt uitgenodigd om uw regels aan dit script te committeren om het nog nuttiger te maken.
// @description:sv Detta Tampermonkey-skript förbättrar din användning av sökmotorer genom att modifiera URL:er i sökresultaten från sökmotorer, omdirigera till alternativa webbplatser, vilket möjliggör en mer anpassad och effektiv surfupplevelse. Du kan också lägga till din egen anpassade URL-modifieringsregel till skriptet och är välkommen att bidra med dina regler till detta skript för att göra det ännu mer användbart.
// @description:fi Tämä Tampermonkey-skripti tehostaa hakukoneiden käyttöäsi muokkaamalla hakutulosten URL-osoitteita hakukoneissa, ohjaten vaihtoehtoisille sivustoille, mahdollistaen mukautetumman ja tehokkaamman selailukokemuksen. Voit myös lisätä omia URL-muokkaussääntöjäsi skriptiin ja olet tervetullut lähettämään sääntöjäsi tähän skriptiin, jotta se olisi vieläkin hyödyllisempi.
// @description:da Dette Tampermonkey script forbedrer din brug af søgemaskiner ved at ændre URL'er i søgemaskinens søgeresultater, omdirigere til alternative sider, hvilket tillader en mere tilpasset og effektiv browsing oplevelse. Du kan også tilføje din egen tilpassede URL-ændringsregel til scriptet og er velkommen til at bidrage med dine regler til dette script for at gøre det endnu mere nyttigt.
// @description:ko 이 Tampermonkey 스크립트는 검색 엔진의 검색 결과에서 URL 을 수정하여 대체 사이트로 리디렉션함으로써 검색 엔진 사용을 개선하고 더 맞춤화되고 효율적인 브라우징 경험을 가능하게 합니다. 또한 사용자만의 URL 수정 규칙을 스크립트에 추가할 수 있으며, 이 스크립트를 더 유용하게 만들기 위해 규칙을 커밋하는 것을 환영합니다.
// @description:it Questo script di Tampermonkey migliora l'uso del motore di ricerca modificando gli URL nei risultati di ricerca dei motori di ricerca, reindirizzando a siti alternativi, consentendo un'esperienza di navigazione più personalizzata ed efficiente. Puoi anche aggiungere la tua regola di modifica dell'URL allo script e sei invitato a impegnare le tue regole con questo script per renderlo ancora più utile.
// @description:cs Tento skript Tampermonkey vylepšuje vaše používání vyhledávače úpravou URL výsledků vyhledávání na vyhledávačích, přesměrováním na alternativní stránky, což umožňuje více přizpůsobený a efektivnější prohlížecí zážitek. Můžete také přidat své vlastní pravidlo úpravy URL do skriptu a jste vítáni, abyste svá pravidla s tímto skriptem zavázali, aby byl ještě užitečnější.
// @description:el Αυτό το σενάριο Tampermonkey ενισχύει τη χρήση της μηχανής αναζήτησης σας με την τροποποίηση των URL στα αποτελέσματα αναζήτησης των μηχανών αναζήτησης, ανακατευθύνοντας σε εναλλακτικούς ιστότοπους, επιτρέποντας μια πιο προσαρμοσμένη και αποδοτική εμπειρία περιήγησης. Μπορείτε επίσης να προσθέσετε τον δικό σας κανόνα τροποποίησης URL στο σενάριο και είστε ευπρόσδεκτοι να δεσμεύσετε τους κανόνες σας σε αυτό το σενάριο για να το κάνετε ακόμα πιο χρήσιμο.
// @description:he סקריפט Tampermonkey זה משפר את השימוש במנועי חיפוש שלך על ידי שינוי URL-ים בתוצאות החיפוש של מנועי חיפוש, הפניה לאתרים חלופיים, מה שמאפשר חוויית גלישה מותאמת אישית ויעילה יותר. תוכל גם להוסיף כלל שינוי URL מותאם אישית לסקריפט ולהתחייב בכללים שלך לסקריפט זה כדי להפוך אותו לשימושי יותר.
// @description:pl Ten skrypt Tampermonkey ulepsza korzystanie z wyszukiwarek internetowych poprzez modyfikację URL-i w wynikach wyszukiwania, przekierowując do alternatywnych stron, co pozwala na bardziej spersonalizowane i efektywne przeglądanie sieci. Możesz również dodać własne reguły modyfikacji URL do skryptu i jesteś mile widziany, aby dodać swoje reguły do tego skryptu, aby uczynić go jeszcze bardziej użytecznym.
// @description:tr Bu Tampermonkey betiği, arama motoru sonuçlarındaki URL'leri değiştirerek alternatif sitelere yönlendirme yaparak arama motoru kullanımınızı geliştirir, daha özelleştirilmiş ve verimli bir tarama deneyimi sağlar. Ayrıca özel URL değiştirme kuralınızı betiğe ekleyebilir ve bu betiği daha faydalı hale getirmek için kuralınızı bu betikle taahhüt etmeye davet edilirsiniz.
// @description:ro Acest script Tampermonkey îmbunătățește utilizarea motorului de căutare prin modificarea URL-urilor în rezultatele căutării motoarelor de căutare, redirecționând către site-uri alternative, permițând o experiență de navigare mai personalizată și eficientă. Puteți adăuga, de asemenea, regula de modificare a URL-ului personalizat la script și sunteți bineveniți să vă angajați regulile la acest script pentru a-l face mult mai util.
// @description:no Dette Tampermonkey-skriptet forbedrer din bruk av søkemotorer ved å endre URL-er i søkeresultatet fra søkemotorer, omdirigere til alternative nettsteder, noe som tillater en mer tilpasset og effektiv nettleseropplevelse. Du kan også legge til din egen tilpassede URL-modifikasjonsregel i skriptet og er velkommen til å forplikte dine regler til dette skriptet for å gjøre det mye mer nyttig.
// @description:hu Ez a Tampermonkey szkript fokozza a keresőmotorok használatát a keresési eredmények URL-jeinek módosításával, alternatív oldalakra való átirányítással, lehetővé téve egy személyre szabottabb és hatékonyabb böngészési élményt. Hozzáadhatsz saját URL módosítási szabályokat a szkripthez, és szívesen látjuk, ha hozzájárulsz a szabályaidat ehhez a szkripthez, hogy még hasznosabbá tegyük.
// @description:uk Цей скрипт для Tampermonkey покращує ваше використання пошукових систем шляхом модифікації URL-адрес у результатах пошуку пошукових систем, перенаправляючи на альтернативні сайти, що дозволяє отримати більш налаштований і ефективний досвід перегляду. Ви також можете додати власне правило модифікації URL до скрипта та вітаєтеся додати свої правила до цього скрипта, щоб зробити його набагато кориснішим.
// @description:id Skrip Tampermonkey ini meningkatkan penggunaan mesin pencari Anda dengan mengubah URL dalam hasil pencarian mesin pencari, mengarahkan ke situs alternatif, memungkinkan pengalaman browsing yang lebih disesuaikan dan efisien. Anda juga dapat menambahkan aturan modifikasi URL kustom ke dalam skrip dan dipersilakan untuk mencommit aturan Anda ke skrip ini agar menjadi lebih berguna.
// @description:vi Script Tampermonkey này cải thiện việc sử dụng công cụ tìm kiếm của bạn bằng cách chỉnh sửa URL trong kết quả tìm kiếm của các công cụ tìm kiếm, chuyển hướng đến các trang thay thế, cho phép trải nghiệm duyệt web tùy chỉnh và hiệu quả hơn. Bạn cũng có thể thêm quy tắc chỉnh sửa URL tùy chỉnh của mình vào script và được chào đón để cam kết các quy tắc của mình với script này để làm cho nó hữu ích hơn.
// @description:hi यह Tampermonkey स्क्रिप्ट आपके सर्च इंजन उपयोग को बेहतर बनाती है जिससे सर्च इंजन के परिणामों में URLs को संशोधित करके वैकल्पिक साइटों पर पुनर्निर्देशित किया जा सकता है, जिससे अधिक कस्टमाइज़्ड और कुशल ब्राउज़िंग अनुभव प्रदान किया जा सकता है। आप इस स्क्रिप्ट में अपना कस्टम URL संशोधन नियम जोड़ सकते हैं और इसे अधिक उपयोगी बनाने के लिए अपने नियमों को इस स्क्रिप्ट में कमिट करने का स्वागत है।
// @description:fa این اسکریپت Tampermonkey با تغییر URLها در نتایج جستجوی موتورهای جستجو و هدایت به سایتهای جایگزین، استفاده شما از موتور جستجو را بهبود میبخشد و امکان تجربهای شخصیسازی شده و کارآمدتر در مرور وب را فراهم میآورد. شما همچنین میتوانید قانون تغییر URL سفارشی خود را به اسکریپت اضافه کنید و برای کردن این اسکریپت به ابزاری مفیدتر، دعوت به ارسال قوانین خود به این اسکریپت میشوید.
// @match *://www.google.com/*?*
// @match *://www.google.ad/*?*
// @match *://www.google.ae/*?*
// @match *://www.google.com.af/*?*
// @match *://www.google.com.ag/*?*
// @match *://www.google.al/*?*
// @match *://www.google.am/*?*
// @match *://www.google.co.ao/*?*
// @match *://www.google.com.ar/*?*
// @match *://www.google.as/*?*
// @match *://www.google.at/*?*
// @match *://www.google.com.au/*?*
// @match *://www.google.az/*?*
// @match *://www.google.ba/*?*
// @match *://www.google.com.bd/*?*
// @match *://www.google.be/*?*
// @match *://www.google.bf/*?*
// @match *://www.google.bg/*?*
// @match *://www.google.com.bh/*?*
// @match *://www.google.bi/*?*
// @match *://www.google.bj/*?*
// @match *://www.google.com.bn/*?*
// @match *://www.google.com.bo/*?*
// @match *://www.google.com.br/*?*
// @match *://www.google.bs/*?*
// @match *://www.google.bt/*?*
// @match *://www.google.co.bw/*?*
// @match *://www.google.by/*?*
// @match *://www.google.com.bz/*?*
// @match *://www.google.ca/*?*
// @match *://www.google.cd/*?*
// @match *://www.google.cf/*?*
// @match *://www.google.cg/*?*
// @match *://www.google.ch/*?*
// @match *://www.google.ci/*?*
// @match *://www.google.co.ck/*?*
// @match *://www.google.cl/*?*
// @match *://www.google.cm/*?*
// @match *://www.google.cn/*?*
// @match *://www.google.com.co/*?*
// @match *://www.google.co.cr/*?*
// @match *://www.google.com.cu/*?*
// @match *://www.google.cv/*?*
// @match *://www.google.com.cy/*?*
// @match *://www.google.cz/*?*
// @match *://www.google.de/*?*
// @match *://www.google.dj/*?*
// @match *://www.google.dk/*?*
// @match *://www.google.dm/*?*
// @match *://www.google.com.do/*?*
// @match *://www.google.dz/*?*
// @match *://www.google.com.ec/*?*
// @match *://www.google.ee/*?*
// @match *://www.google.com.eg/*?*
// @match *://www.google.es/*?*
// @match *://www.google.com.et/*?*
// @match *://www.google.fi/*?*
// @match *://www.google.com.fj/*?*
// @match *://www.google.fm/*?*
// @match *://www.google.fr/*?*
// @match *://www.google.ga/*?*
// @match *://www.google.ge/*?*
// @match *://www.google.gg/*?*
// @match *://www.google.com.gh/*?*
// @match *://www.google.com.gi/*?*
// @match *://www.google.gl/*?*
// @match *://www.google.gm/*?*
// @match *://www.google.gr/*?*
// @match *://www.google.com.gt/*?*
// @match *://www.google.gy/*?*
// @match *://www.google.com.hk/*?*
// @match *://www.google.hn/*?*
// @match *://www.google.hr/*?*
// @match *://www.google.ht/*?*
// @match *://www.google.hu/*?*
// @match *://www.google.co.id/*?*
// @match *://www.google.ie/*?*
// @match *://www.google.co.il/*?*
// @match *://www.google.im/*?*
// @match *://www.google.co.in/*?*
// @match *://www.google.iq/*?*
// @match *://www.google.is/*?*
// @match *://www.google.it/*?*
// @match *://www.google.je/*?*
// @match *://www.google.com.jm/*?*
// @match *://www.google.jo/*?*
// @match *://www.google.co.jp/*?*
// @match *://www.google.co.ke/*?*
// @match *://www.google.com.kh/*?*
// @match *://www.google.ki/*?*
// @match *://www.google.kg/*?*
// @match *://www.google.co.kr/*?*
// @match *://www.google.com.kw/*?*
// @match *://www.google.kz/*?*
// @match *://www.google.la/*?*
// @match *://www.google.com.lb/*?*
// @match *://www.google.li/*?*
// @match *://www.google.lk/*?*
// @match *://www.google.co.ls/*?*
// @match *://www.google.lt/*?*
// @match *://www.google.lu/*?*
// @match *://www.google.lv/*?*
// @match *://www.google.com.ly/*?*
// @match *://www.google.co.ma/*?*
// @match *://www.google.md/*?*
// @match *://www.google.me/*?*
// @match *://www.google.mg/*?*
// @match *://www.google.mk/*?*
// @match *://www.google.ml/*?*
// @match *://www.google.com.mm/*?*
// @match *://www.google.mn/*?*
// @match *://www.google.com.mt/*?*
// @match *://www.google.mu/*?*
// @match *://www.google.mv/*?*
// @match *://www.google.mw/*?*
// @match *://www.google.com.mx/*?*
// @match *://www.google.com.my/*?*
// @match *://www.google.co.mz/*?*
// @match *://www.google.com.na/*?*
// @match *://www.google.com.ng/*?*
// @match *://www.google.com.ni/*?*
// @match *://www.google.ne/*?*
// @match *://www.google.nl/*?*
// @match *://www.google.no/*?*
// @match *://www.google.com.np/*?*
// @match *://www.google.nr/*?*
// @match *://www.google.nu/*?*
// @match *://www.google.co.nz/*?*
// @match *://www.google.com.om/*?*
// @match *://www.google.com.pa/*?*
// @match *://www.google.com.pe/*?*
// @match *://www.google.com.pg/*?*
// @match *://www.google.com.ph/*?*
// @match *://www.google.com.pk/*?*
// @match *://www.google.pl/*?*
// @match *://www.google.pn/*?*
// @match *://www.google.com.pr/*?*
// @match *://www.google.ps/*?*
// @match *://www.google.pt/*?*
// @match *://www.google.com.py/*?*
// @match *://www.google.com.qa/*?*
// @match *://www.google.ro/*?*
// @match *://www.google.ru/*?*
// @match *://www.google.rw/*?*
// @match *://www.google.com.sa/*?*
// @match *://www.google.com.sb/*?*
// @match *://www.google.sc/*?*
// @match *://www.google.se/*?*
// @match *://www.google.com.sg/*?*
// @match *://www.google.sh/*?*
// @match *://www.google.si/*?*
// @match *://www.google.sk/*?*
// @match *://www.google.com.sl/*?*
// @match *://www.google.sn/*?*
// @match *://www.google.so/*?*
// @match *://www.google.sm/*?*
// @match *://www.google.sr/*?*
// @match *://www.google.st/*?*
// @match *://www.google.com.sv/*?*
// @match *://www.google.td/*?*
// @match *://www.google.tg/*?*
// @match *://www.google.co.th/*?*
// @match *://www.google.com.tj/*?*
// @match *://www.google.tl/*?*
// @match *://www.google.tm/*?*
// @match *://www.google.tn/*?*
// @match *://www.google.to/*?*
// @match *://www.google.com.tr/*?*
// @match *://www.google.tt/*?*
// @match *://www.google.com.tw/*?*
// @match *://www.google.co.tz/*?*
// @match *://www.google.com.ua/*?*
// @match *://www.google.co.ug/*?*
// @match *://www.google.co.uk/*?*
// @match *://www.google.com.uy/*?*
// @match *://www.google.co.uz/*?*
// @match *://www.google.com.vc/*?*
// @match *://www.google.co.ve/*?*
// @match *://www.google.co.vi/*?*
// @match *://www.google.com.vn/*?*
// @match *://www.google.vu/*?*
// @match *://www.google.ws/*?*
// @match *://www.google.rs/*?*
// @match *://www.google.co.za/*?*
// @match *://www.google.co.zm/*?*
// @match *://www.google.co.zw/*?*
// @match *://www.google.cat/*?*
// @match *://www.bing.com/*?*
// @match *://search.yahoo.com/search*
// @match *://*.search.yahoo.com/search*
// @match *://search.yahoo.co.jp/*?*
// @match *://www.baidu.com/s?*
// @match *://yandex.com/search/?*
// @match *://yandex.ru/search/?*
// @match *://search.disroot.org/search*
// @match *://searx.tiekoetter.com/search*
// @match *://search.bus-hit.me/search*
// @match *://search.inetol.net/search*
// @match *://priv.au/search*
// @match *://searx.be/search*
// @match *://searxng.site/search*
// @match *://search.hbubli.cc/search*
// @match *://search.im-in.space/search*
// @match *://opnxng.com/search*
// @match *://search.upinmars.com/search*
// @match *://search.sapti.me/search*
// @match *://freesearch.club/search*
// @match *://xo.wtf/search*
// @match *://www.gruble.de/search*
// @match *://searx.tuxcloud.net/search*
// @match *://baresearch.org/search*
// @match *://searx.daetalytica.io/search*
// @match *://etsi.me/search*
// @match *://search.leptons.xyz/search*
// @match *://search.rowie.at/search*
// @match *://search.mdosch.de/search*
// @match *://searx.catfluori.de/search*
// @match *://searx.si/search*
// @match *://searx.namejeff.xyz/search*
// @match *://search.itstechtime.com/search*
// @match *://s.mble.dk/search*
// @match *://searx.kutay.dev/search*
// @match *://ooglester.com/search*
// @match *://searx.ox2.fr/search*
// @match *://searx.techsaviours.org/search*
// @match *://searx.perennialte.ch/search*
// @match *://s.trung.fun/searxng/search*
// @match *://search.in.projectsegfau.lt/search*
// @match *://search.projectsegfau.lt/search*
// @match *://darmarit.org/searx/search*
// @match *://searx.lunar.icu/search*
// @match *://nyc1.sx.ggtyler.dev/search*
// @match *://search.rhscz.eu/search*
// @match *://paulgo.io/search*
// @match *://northboot.xyz/search*
// @match *://searx.zhenyapav.com/search*
// @match *://searxng.ch/search*
// @match *://copp.gg/search*
// @match *://searx.sev.monster/search*
// @match *://searx.oakleycord.dev/search*
// @match *://searx.juancord.xyz/search*
// @match *://searx.work/search*
// @match *://search.ononoki.org/search*
// @match *://search.demoniak.ch/search*
// @match *://searx.cthd.icu/search*
// @match *://searx.fmhy.net/search*
// @match *://searx.headpat.exchange/search*
// @match *://sex.finaltek.net/search*
// @match *://search.gcomm.ch/search*
// @match *://search.smnz.de/search*
// @match *://searx.ankha.ac/search*
// @match *://search.lvkaszus.pl/search*
// @match *://searx.nobulart.com/search*
// @match *://sx.t-1.org/search*
// @match *://www.jabber-germany.de/searx/search*
// @match *://sx.catgirl.cloud/search*
// @match *://sx.vern.cc/searxng/search*
// @match *://www.startpage.com/search*
// @match *://www.startpage.com/sp/search*
// @match *://search.brave.com/*?*
// @match *://duckduckgo.com
// @match *://duckduckgo.com/?*
// @match *://ghosterysearch.com/*?*
// @match *://presearch.com/*?*
// @match *://metager.org/*meta/meta.ger3*
// @match *://metager.de/*meta/meta.ger3*
// @match *://4get.ca/*?*
// @match *://4get.silly.computer/*?*
// @match *://4get.plunked.party/*?*
// @match *://4get.konakona.moe/*?*
// @match *://4get.sijh.net/*?*
// @match *://4get.hbubli.cc/*?*
// @match *://4get.perennialte.ch/*?*
// @match *://4get.zzls.xyz/*?*
// @match *://4getus.zzls.xyz/*?*
// @match *://4get.seitan-ayoub.lol/*?*
// @match *://4get.dcs0.hu/*?*
// @match *://4get.psily.garden/*?*
// @match *://4get.lvkaszus.pl/*?*
// @match *://4get.kizuki.lol/*?*
// @match *://search.ahwx.org/search.php?*
// @match *://search2.ahwx.org/search.php?*
// @match *://search3.ahwx.org/search.php?*
// @match *://ly.owo.si/search.php?*
// @match *://librey.franklyflawless.org/search.php?*
// @match *://librey.org/search.php?*
// @match *://search.davidovski.xyz/search.php?*
// @match *://search.milivojevic.in.rs/search.php?*
// @match *://glass.prpl.wtf/search.php?*
// @match *://librex.uk.to/search.php?*
// @match *://librey.ix.tc/search.php?*
// @match *://search.funami.tech/search.php?*
// @match *://librex.retro-hax.net/search.php?*
// @match *://librex.nohost.network/search.php?*
// @match *://search.pabloferreiro.es/search.php?*
// @match *://librey.baczek.me/search.php?*
// @match *://lx.benike.me/search.php?*
// @match *://search.seitan-ayoub.lol/search.php?*
// @match *://librey.myroware.net/search.php?*
// @match *://librey.nezumi.party/search.php?*
// @match *://search.zeroish.xyz/search.php?*
// @match *://stract.com/*?*
// @match *://search.albony.xyz/*?*
// @match *://search.garudalinux.org/*?*
// @match *://search.dr460nf1r3.org/*?*
// @match *://search.nezumi.party/*?*
// @match *://s.tokhmi.xyz/*?*
// @match *://search.sethforprivacy.com/*?*
// @match *://whoogle.dcs0.hu/*?*
// @match *://whoogle.lunar.icu/*?*
// @match *://gowogle.voring.me/*?*
// @match *://whoogle.privacydev.net/*?*
// @match *://whoogle.hostux.net/*?*
// @match *://wg.vern.cc/*?*
// @match *://whoogle.hxvy0.gq/*?*
// @match *://whoogle.ungovernable.men/*?*
// @match *://whoogle2.ungovernable.men/*?*
// @match *://whoogle3.ungovernable.men/*?*
// @match *://wgl.frail.duckdns.org/*?*
// @match *://whoogle.no-logs.com/*?*
// @match *://whoogle.ftw.lol/*?*
// @match *://whoogle-search--replitcomreside.repl.co/*?*
// @match *://search.notrustverify.ch/*?*
// @match *://whoogle.datura.network/*?*
// @match *://whoogle.yepserver.xyz/*?*
// @match *://www.etools.ch/searchSubmit.do*
// @match *://www.etools.ch/mobileSearch.do*
// @match *://www.mojeek.com/*?*
// @match *://www.mojeek.co.uk/*?*
// @match *://wiby.me/?*
// @match *://yep.com/web?*
// @match *://www.torry.io/search*
// @match *://www.qwant.com/?*
// @match *://www.ecosia.org/*?*
// @match *://search.becovi.com/serp.php?*
// @match *://good-search.org/*search/?*
// @match *://www.alltheinternet.com/?*
// @match *://www.searchalot.com/?*
// @match *://search.aol.com/*search*
// @match *://www.onesearch.com/*search*
// @match *://www.info.com/serp?*
// @match *://oceanhero.today/web?*
// @match *://swisscows.com/*/web?*
// @match *://search.lilo.org/?*
// @match *://search.entireweb.com/*?*
// @match *://www.tadadoo.com/*?*
// @match *://search.gmx.com/web/result?*
// @match *://search.gmx.com/web?*
// @match *://youcare.world/all?*
// @match *://search.lycos.com/web/?*
// @match *://alohafind.com/search/?*
// @match *://spot.ecloud.global/search*
// @match *://qmamu.com/*?*
// @match *://search.carrot2.org/*
// @match *://www.nona.de/?*
// @match *://www.sapo.pt/pesquisa/web/tudo?*
// @match *://www.exalead.com/search/web/results/?*
// @match *://cgi.search.biglobe.ne.jp/cgi-bin/search2-b?*
// @match *://search.goo.ne.jp/web.jsp?*
// @match *://search.walla.co.il/?*
// @match *://coccoc.com/*?*
// @match *://search.seznam.cz/?*
// @match *://www.startsiden.no/sok/?*
// @match *://search.marginalia.nu/*?*
// @match *://mwmbl.org/?*
// @match *://search.naver.com/search.naver?*
// @match *://gibiru.com/results.html?*
// @match *://www.lukol.com/s.php?*
// @match *://www.draze.com/web/*?*
// @match *://www.yelliot.com/search/?*
// @match *://fr.yelliot.com/search/?*
// @match *://ar.yelliot.com/search/?*
// @match *://es.yelliot.com/search/?*
// @match *://de.yelliot.com/search/?*
// @match *://it.yelliot.com/search/?*
// @match *://ru.yelliot.com/search/?*
// @match *://cn.yelliot.com/search/?*
// @match *://in.yelliot.com/search/?*
// @match *://pt.yelliot.com/search/?*
// @match *://efind.com/search*
// @match *://fireball.de/de/*?*
// @match *://freespoke.com/search/web?*
// @match *://gogoprivate.com/search*
// @match *://resulthunter.com/*?*
// @match *://search.givewater.com/serp?*
// @match *://results.excite.com/serp?*
// @match *://www.webcrawler.com/serp?*
// @match *://www.metacrawler.com/serp?*
// @match *://www.dogpile.com/serp?*
// @match *://www.infospace.com/serp?*
// @match *://www.refseek.com/*?*
// @match *://www.zapmeta.com/*?*
// @match *://www.izito.com/*?*
// @match *://www.ask.com/web?*
// @match *://www.pronto.com/web?*
// @match *://anoox.com/find.php?*
// @match *://kagi.com/search*
// @grant none
// @run-at document-end
// @license GPL-2.0-only
// ==/UserScript==
(function () {
'use strict';
// Define URL modification rules with precompiled regex
const urlModificationRules = [
// {
// matchRegex: new RegExp(/^(?:.*?(?:\/RU=|&q=|&as=))?(?:https?:\/\/)(?:[\w-]+\.|)((?:imdb|imgur|instagram|medium|odysee|quora|reddit|tiktok|twitter|wikipedia|youtube)\.(?:[a-z]+).*?)(?:$|\/RK=.*|&sa=.*)/),
// replaceWith: 'https://farside.link/$1'
// },
{
matchRegex: new RegExp(/^(?:.*?(?:\/RU=|&q=|&as=))?https?:\/\/((?!test)[a-z]+)\.?m?\.wikipedia\.org\/(?:[a-z]+|wiki)\/(?!Special:Search)(.*?)(?:$|\/RK=.*|&sa=.*)/),
replaceWith: 'https://www.wikiwand.com/$1/$2'
},
{
matchRegex: new RegExp(/^(?:.*?(?:\/RU=|&q=|&as=))?https?:\/\/zh\.?m?\.wikipedia\.org\/(?:zh-hans|wiki)\/(.*?)(?:$|\/RK=.*|&sa=.*)/),
replaceWith: 'https://www.wikiwand.com/zh-hans/$1'
},
{
matchRegex: new RegExp(/^(?:.*?(?:\/RU=|&q=|&as=))?https?:\/\/wikipedia\.org\/(?:[a-z]+|wiki)\/(?!Special:Search)(.*?)(?:$|\/RK=.*|&sa=.*)/),
replaceWith: 'https://www.wikiwand.com/en/$1'
},
{
matchRegex: new RegExp(/^(?:.*?(?:\/RU=|&q=|&as=))?https?:\/\/(?:old|www)\.reddit\.com\/((?:r|u)\/.*?)(?:$|\/RK=.*|&sa=.*)/),
replaceWith: 'https://old.reddit.com/$1'
// replaceWith: 'https://safereddit.com/$1'
// replaceWith: 'https://lr.vern.cc/$1'
},
{
matchRegex: new RegExp(/^(?:.*?(?:\/RU=|&q=|&as=))?https?:\/\/www\.quora\.com\/((?=.*-)[\w-]+|profile\/.*?)(?:$|\/RK=.*|&sa=.*)/),
replaceWith: 'https://quetre.iket.me/$1'
},
// Unfortunately, nitter has been discontinued.
// {
// matchRegex: new RegExp(/^(?:.*?(?:\/RU=|&q=|&as=))?https?:\/\/twitter\.com\/([A-Za-z_][\w]+)(\/status\/(?:\d+))?(?:.*?)(?:$|\/RK=.*|&sa=.*)/),
// replaceWith: 'https://nitter.catsarch.com/$1$2'
// },
{
matchRegex: new RegExp(/^(?:.*?(?:\/RU=|&q=|&as=))?https?:\/\/(?:www\.)?stackoverflow\.com\/(questions\/\d+(?:\/[\w-]+)?)(?:.*?)(?:$|\/RK=.*|&sa=.*)/),
replaceWith: 'https://ao.vern.cc/$1'
},
{
matchRegex: new RegExp(/^(?:.*?(?:\/RU=|&q=|&as=))?https?:\/\/(.*?(?:medium.*?|towardsdatascience|betterprogramming|plainenglish|gitconnected|aninjusticemag|betterhumans|uxdesign|uxplanet)\.\w+\/(?!tag)(?=.*-)(?:[\w\/-]+|[\w@.]+\/[\w-]+))(?:\?source=.*)?(?:$|\/RK=.*|&sa=.*)/),
replaceWith: 'https://freedium.cfd/https://$1'
},
{
matchRegex: new RegExp(/^(?:.*?(?:\/RU=|&q=|&as=))?https?:\/\/(?:www\.|m\.)?youtube\.com\/(watch(?:\/?\?v=|\/)[\w-]{11})[\s\S]*/),
replaceWith: 'https://piped.video/$1'
// replaceWith: 'https://vid.puffyan.us/$1'
},
{
matchRegex: new RegExp(/^(?:.*?(?:\/RU=|&q=|&as=))?https?:\/\/(?:www\.|m\.)?youtube\.com\/((?:@|playlist\?|channel\/|user\/|shorts\/).*?)(?:$|\/RK=.*|&sa=.*)/),
replaceWith: 'https://piped.video/$1'
// replaceWith: 'https://vid.puffyan.us/$1'
},
{
matchRegex: new RegExp(/^(?:.*?(?:\/RU=|&q=|&as=))?https?:\/\/music\.youtube\.com\/((?:playlist\?|watch\?|channel\/|browse\/).*?)(?:$|\/RK=.*|&sa=.*)/),
replaceWith: 'https://hyperpipe.surge.sh/$1'
},
{
matchRegex: new RegExp(/^(?:.*?(?:\/RU=|&q=|&as=))?https?:\/\/www\.twitch\.tv\/(\w+)(?:.*?)(?:$|\/RK=.*|&sa=.*)/),
replaceWith: 'https://ttv.vern.cc/$1'
},
{
matchRegex: new RegExp(/^(?:.*?(?:\/RU=|&q=|&as=))?https?:\/\/(?:m|www)\.imdb\.com\/((?:title|name)\/\w+)(?:.*?)(?:$|\/RK=.*|&sa=.*)/),
replaceWith: 'https://ld.vern.cc/$1'
},
{
matchRegex: new RegExp(/^(?:.*?(?:\/RU=|&q=|&as=))?https?:\/\/www\.goodreads\.com\/((?:(?:[a-z]+\/)?book\/show|work\/quotes|series|author\/show)\/[\w.-]+)(?:.*?)(?:$|\/RK=.*|&sa=.*)/),
replaceWith: 'https://bl.vern.cc/$1'
},
{
// only support English Fandom sites
matchRegex: new RegExp(/^(?:.*?(?:\/RU=|&q=|&as=))?https?:\/\/((?!www|community).*?)\.fandom\.com\/wiki\/(.*?)(?:$|\/RK=.*|&sa=.*)/),
replaceWith: 'https://antifandom.com/$1/wiki/$2'
},
{
matchRegex: new RegExp(/^(?:.*?(?:\/RU=|&q=|&as=))?https?:\/\/www\.urbandictionary\.com\/(define\.php\?term=.*?)(?:$|\/RK=.*|&sa=.*)/),
replaceWith: 'https://rd.vern.cc/$1'
},
{
matchRegex: new RegExp(/^(?:.*?(?:\/RU=|&q=|&as=))?https?:\/\/www\.reuters\.com\/((?=.*\/)(?=.*-).*?)(?:$|\/RK=.*|&sa=.*)/),
replaceWith: 'https://nu.vern.cc/$1'
},
{
matchRegex: new RegExp(/^(?:.*?(?:\/RU=|&q=|&as=))?https?:\/\/(www\.ft\.com\/content\/[\w-]+)(?:.*?)(?:$|\/RK=.*|&sa=.*)/),
replaceWith: 'https://archive.today/https://$1'
},
{
matchRegex: new RegExp(/^(?:.*?(?:\/RU=|&q=|&as=))?https?:\/\/(www\.bloomberg\.com\/(?:(?:[a-z]+\/)?news|opinion)\/.*?)(?:$|\/RK=.*|&sa=.*)/),
replaceWith: 'https://archive.today/https://$1'
},
{
matchRegex: new RegExp(/^(?:.*?(?:\/RU=|&q=|&as=))?https?:\/\/www\.npr\.org\/(?:\d{4}\/\d{2}\/\d{2}|sections)\/(?:[A-Za-z-]+\/\d{4}\/\d{2}\/\d{2}\/)?(\d+)\/(?:.*?)(?:$|\/RK=.*|&sa=.*)/),
replaceWith: 'https://text.npr.org/$1'
},
{
matchRegex: new RegExp(/^(?:.*?(?:\/RU=|&q=|&as=))?https?:\/\/news\.ycombinator\.com\/item\?id=(\d+)(?:.*?)(?:$|\/RK=.*|&sa=.*)/),
replaceWith: 'https://www.hckrnws.com/stories/$1'
},
{
matchRegex: new RegExp(/^(?:.*?(?:\/RU=|&q=|&as=))?https?:\/\/(?:[a-z]+)\.slashdot\.org(.*?)(?:$|\/RK=.*|&sa=.*)/),
replaceWith: 'https://slashdot.org$1'
},
{
matchRegex: new RegExp(/^(?:.*?(?:\/RU=|&q=|&as=))?https?:\/\/(?:(?:.*)(?:arxiv\.org\/pdf|arxiv-export-lb\.library\.cornell\.edu\/(?:pdf|abs)))\/(\d{4}\.\d{4,5}(v\d)?)(?:.*)/),
replaceWith: 'https://arxiv.org/abs/$1'
},
{
matchRegex: new RegExp(/^(?:.*?(?:\/RU=|&q=|&as=))?https?:\/\/(ieeexplore\.ieee\.org\/document\/\d+)\/(?:.*?)(?:$|\/RK=.*|&sa=.*)/),
replaceWith: 'https://$1'
},
{
matchRegex: new RegExp(/^(?:.*?(?:\/RU=|&q=|&as=))?https?:\/\/github\.ink(.*?)(?:$|\/RK=.*|&sa=.*)/),
replaceWith: 'https://github.com$1'
},
{
matchRegex: new RegExp(/^(?:.*?(?:\/RU=|&q=|&as=))?https?:\/\/www\.snopes\.com(.*?)(?:$|\/RK=.*|&sa=.*)/),
replaceWith: 'https://sd.vern.cc$1'
},
{
matchRegex: new RegExp(/^(?:.*?(?:\/RU=|&q=|&as=))?https?:\/\/www\.instructables\.com\/(.*?)(?:$|\/RK=.*|&sa=.*)/),
replaceWith: 'https://ds.vern.cc/$1'
// replaceWith: 'https://structables.private.coffee/$1'
},
{
matchRegex: new RegExp(/^(?:.*?(?:\/RU=|&q=|&as=))?https?:\/\/genius\.com\/((?=[\w-]+lyrics|search\?q=).*?)(?:$|\/RK=.*|&sa=.*)/),
replaceWith: 'https://dm.vern.cc/$1'
},
{
matchRegex: new RegExp(/^(?:.*?(?:\/RU=|&q=|&as=))?https?:\/\/(.*?)\.bandcamp\.com\/(?:$|\/RK=.*|&sa=.*)/),
replaceWith: 'https://tn.vern.cc/artist.php?name=$1'
},
{
matchRegex: new RegExp(/^(?:.*?(?:\/RU=|&q=|&as=))?https?:\/\/(.*?)\.bandcamp\.com\/(.*?)\/(.*?)(?:$|\/RK=.*|&sa=.*)/),
replaceWith: 'https://tn.vern.cc/release.php?artist=$1&type=$2&name=$3'
},
{
matchRegex: new RegExp(/^(?:.*?(?:\/RU=|&q=|&as=))?https?:\/\/bandcamp\.com\/search\?q=(.*?)(?:$|\/RK=.*|&sa=.*)/),
replaceWith: 'https://tn.vern.cc/search.php?query=$1'
},
{
matchRegex: new RegExp(/^(?:.*?(?:\/RU=|&q=|&as=))?https?:\/\/f4\.bcbits\.com\/img\/(.*?)(?:$|\/RK=.*|&sa=.*)/),
replaceWith: 'https://tn.vern.cc/image.php?file=$1'
},
{
matchRegex: new RegExp(/^(?:.*?(?:\/RU=|&q=|&as=))?https?:\/\/t4\.bcbits\.com\/stream\/(.*?)\/(.*?)\/(.*?)\?token=(.*?)(?:$|\/RK=.*|&sa=.*)/),
replaceWith: 'https://tn.vern.cc/audio.php?directory=$1&format=$2&file=$3&token=$4'
},
{
matchRegex: new RegExp(/^(?:.*?(?:\/RU=|&q=|&as=))?https?:\/\/(?:[\w.]+)?imgur.com\/((?:a\/)?(?!gallery)[\w.]+)(?:.*?)(?:$|\/RK=.*|&sa=.*)/),
replaceWith: 'https://rimgo.totaldarkness.net/$1'
},
{
matchRegex: new RegExp(/^(?:.*?(?:\/RU=|&q=|&as=))?https?:\/\/www\.pixiv\.net\/(?:[a-z]+\/)?(artworks\/\d+|tags\/\w+|users\/\d+).*/),
replaceWith: 'https://pixivfe.exozy.me/$1'
},
{
matchRegex: new RegExp(/^(?:.*?(?:\/RU=|&q=|&as=))?https?:\/\/knowyourmeme\.com\/(.*?)(?:$|\/RK=.*|&sa=.*)/),
replaceWith: 'https://mm.vern.cc/$1'
},
{
matchRegex: new RegExp(/^(?:.*?(?:\/RU=|&q=|&as=))?https?:\/\/tenor\.com\/((?:view|search)\/.*?)(?:$|\/RK=.*|&sa=.*)/),
replaceWith: 'https://sp.vern.cc/$1'
},
{
matchRegex: new RegExp(/^(?:.*?(?:\/RU=|&q=|&as=))?https?:\/\/(?:\w+\.)?ifunny\.co\/(picture\/.*?)(?:$|\/RK=.*|&sa=.*)/),
replaceWith: 'https://uf.vern.cc/$1'
},
{
matchRegex: new RegExp(/^(?:.*?(?:\/RU=|&q=|&as=))https?:\/\/(.*?)(?:$|\/RK=.*|&sa=.*)/),
replaceWith: 'https://$1'
},
// Add more rules here as needed
];
// Define enhanced selector rules for each search engine
const selectorRules = {
'google': [
{
selector: 'div.MjjYud div div div span a',
childSelector: 'div cite',
updateChildText: true,
containProtocol: true,
urlDisplayMethod: 1
},
{
selector: 'div.PKBwyd div.yuRUbf div span a',
childSelector: 'div cite',
updateChildText: true,
containProtocol: true,
urlDisplayMethod: 1
},
{
// selector for sub-results
selector: 'div.MjjYud div div a'
},
{
// selector for sidebar links
selector: 'div.TQc1id#rhs a'
},
{
// selector for 'discussions and forums' widget
selector: 'div.MjjYud div.LJ7wUe a.v4kUNc',
childSelector: 'div.VZGVuc div.bgBiT.wHYlTd',
updateTextByOverwrite: true,
useTopLevelDomain: true,
urlDisplayMethod: 3
},
{
// selector for 'videos' widget
selector: 'div.e4xoPb div.RzdJxc a.xMqpbd'
},
{
selector: 'div.EyBRub div.eA0Zlc div a'
},
{
// selector for results in google image search tab
selector: 'div.islrc div.isv-r a'
}
],
'bing': [
{
selector: 'ol#b_results li.b_algo h2 a'
},
{
selector: 'ol#b_results li.b_algo a.tilk',
childSelector: 'cite',
updateTextByOverwrite: true,
urlDisplayMethod: 2
},
{
selector: 'ol#b_results li.b_algo li a'
},
{
selector: 'ol#b_results li.b_algo div.pageRecoContainer a'
},
{
selector: 'div#b_content div.lite-entcard-blk a'
}
],
'yahoo': [
{
parentSelector: 'div#left div#web ol li div div.compTitle h3.title',
linkNodeSelector: 'a',
textNodeSelector: 'span.p-abs',
childSelector: 'span',
updateChildText: true,
containProtocol: false,
multiElementsForUrlDisplay: 2
},
{
selector: 'div#left div#web ol li div ul.compArticleList a'
},
{
selector: 'div#left div#web ol li div div.compGenericCardList a'
},
{
selector: 'div#right ol.cardReg.searchRightTop a'
}
],
'yahoojp': [
{
parentSelector: 'div.sw-CardBase div.sw-Card__title',
linkNodeSelector: 'a.sw-Card__titleInner',
textNodeSelector: 'div.sw-Card__titleCiteWrapper cite ol',
childSelector: 'li',
updateChildText: true,
containProtocol: true,
multiElementsForUrlDisplay: 1
},
{
selector: 'div.sw-CardBase p.Algo__osl a'
},
{
selector: 'div.sw-CardBase div.sw-Card.AnswerKnowledgePanel__title div.sw-Tooltip__balloonInner a',
updateTextByOverwrite: true,
urlDisplayMethod: 2
},
{
selector: 'div.sw-CardBase div.sw-Card.AnswerKnowledgePanel__title a'
},
{
selector: 'div.sw-CardBase div.sw-Card.AnswerKnowledgePanel__info a'
}
],
'baidu': [
{
originalUrlSelector: 'div#content_left div.c-container',
originalUrlAttribute: 'mu',
linkNodeSelector: ['h3.c-title a', 'h3.t.kg-title_7kFVp a', 'div.c-row a.siteLink_9TPP3', 'div.c-showurl a.cu-line-clamp-1', 'ul.subLink_answer li a', 'span.detail-btn_2Ar6f a']
},
{
selector: 'div#content_left div.c-container h3.c-title a'
},
{
selector: 'div#content_left div.c-container a.siteLink_9TPP3'
},
{
selector: 'div#content_left div.c-container ul.subLink_answer li a'
}
],
'yandex': [
{
selector: 'ul#search-result li div.Organic-Subtitle div a',
updateChildText: true,
containProtocol: false,
urlDisplayMethod: 1,
},
{
selector: 'ul#search-result li div.Organic div a',
}
],
'searx': [
{
selector: 'article.result a.url_wrapper',
childSelector: 'span span',
updateChildText: true,
containProtocol: true,
multiElementsForUrlDisplay: 1
},
{
selector: 'article.result h3 a'
},
{
selector: 'aside.infobox div.urls ul li a'
}
],
'startpage': [
{
selector: 'div.result div.upper a',
updateTextByOverwrite: true,
urlDisplayMethod: 2
},
{
selector: 'div.result a.result-link'
},
{
selector: 'div.bg-sitelinks div.sitelink-container a.sitelink'
},
{
selector: 'div.search-expander-top a'
},
{
selector: 'div.sx-kp-inner a'
},
// video page
{
selector: 'div.result div.details a'
}
],
'brave': [
{
selector: 'div.snippet a.h',
childSelector: 'div.site cite.snippet-url span',
updateChildText: true,
containProtocol: false,
multiElementsForUrlDisplay: 1
},
{
selector: 'div#discussions.snippet a',
},
{
selector: 'div#infobox-snippet.snippet a'
},
// video page
{
selector: 'div.video-snippet a'
}
],
'duckduckgo': [
{
selector: 'a.eVNpHGjtxRBq_gLOfGDr.LQNqh2U1kzYxREs65IJu'
},
{
selector: 'a.Rn_JXVtoPVAFyGkcaXyK',
childSelector: 'span',
updateChildText: true,
containProtocol: true,
multiElementsForUrlDisplay: 1
},
{
// Selector for sub-results
selector: 'ul.b269SZlC2oyR13Fcc4Iy li a.f3uDrYrWF3Exrfp1m3Og'
},
{
selector: 'div.react-module div section div a'
},
// video page
{
selector: 'div.tile.tile--vid div.tile__body a'
}
],
'ghostery': [
{
selector: 'li.result h2 a'
},
{
selector: 'li.result div.snippet div.address a.url',
updateTextByOverwrite: true,
urlDisplayMethod: 2
}
],
'presearch': [
{
selector: 'div.relative div.w-auto a',
childSelector: 'div',
updateChildText: true,
urlDisplayMethod: 3,
},
{
selector: 'div.relative div.inline-block a'
},
{
parentSelector: 'div.relative div.flex div.mr-2',
linkNodeSelector: 'a',
textNodeSelector: 'div.text-results-link',
updateTextByOverwrite: true,
urlDisplayMethod: 3
},
// video page
{
selector: 'div.relative div.flex a.flex'
}
],
'metager': [
{
selector: 'h2.result-title a'
},
{
selector: 'div.result-subheadline a',
updateTextByOverwrite: true,
urlDisplayMethod: 3
},
{
selector: 'div.quicktip div.quicktip-headline h1 a'
},
{
selector: 'div.quicktip div.quicktip-detail h2 a'
}
],
'4get': [
{
parentSelector: 'div.text-result',
linkNodeSelector: 'a.hover',
textNodeSelector: 'div.url',
childSelector: 'a.part',
updateChildText: true,
containProtocol: true,
multiElementsForUrlDisplay: 4
},
{
selector: 'div.text-result div.sublinks a'
},
{
parentSelector: 'div.right-wrapper div.answer',
linkNodeSelector: 'a.answer-title',
textNodeSelector: 'div.url',
childSelector: 'a.part',
updateChildText: true,
containProtocol: true,
multiElementsForUrlDisplay: 4
}
],
'librey': [
{
selector: 'div.text-result-wrapper a',
updateTextWithoutOverwrite: true,
useTopLevelDomain: true,
urlDisplayMethod: 2
},
{
selector: 'p.special-result-container a',
updateTextWithoutOverwrite: true,
urlDisplayMethod: 2
},
],
'stract': [
{
selector: 'div.grid div div.flex div div a.text-link'
},
{
selector: 'div.grid div div.flex div div div a',
updateTextByOverwrite: true,
urlDisplayMethod: 2
},
{
selector: 'div.mb-5.text-xl a'
},
{
selector: 'div.text-sm a.text-link'
}
],
'whoogle': [
{
selector: 'div#main div.ZINbbc.has-favicon div.egMi0 a',
childSelector: 'div.sCuL3 div.BNeawe',
updateTextByOverwrite: true,
containProtocol: false,
urlDisplayMethod: 1
},
{
selector: 'div#main div.ZINbbc div.yStFkb div.ZINbbc.has-favicon a',
childSelector: 'div.BNeawe.UPmit.AP7Wnd',
updateTextByOverwrite: true,
containProtocol: false,
urlDisplayMethod: 1
},
],
'etools': [
{
// searchSubmit.do