Greasy Fork is available in English.

Bypassare Tutto Collegamenti brevi

Ignora tutti i siti di collegamenti brevi Salta automaticamente i fastidiosi accorciatori di collegamenti, direttamente alla tua destinazione

< Valutazione su Bypassare Tutto Collegamenti brevi

Domanda/commento

§
Pubblicato: 24/01/2022
Modificato: 24/01/2022

half of your script are just match rules, seeing that made me feel bad, so use this regex technique and make it all a single or just a few lines.
// @include /^(https?:\/\/)(www\.)?(arnolds|bluraytorrent|filmestorrentbrasil|filmestorrentmax|filmestorrentdownload)(\.com\.br)(\/.*)?/

§
Pubblicato: 24/01/2022

half of your script are just match rules, seeing that made me feel bad, so use this regex technique and make it all a single or just a few lines.
// @include /^(https?:\/\/)(www\.)?(arnolds|bluraytorrent|filmestorrentbrasil|filmestorrentmax|filmestorrentdownload)(\.com\.br)(\/.*)?/

Thanks so much for your suggestions , at this time i'm still focus on the code to make it works more better each day. why i use match rules because i don't want my scripts disturbing other sites that not shortlinls sites, and before i publish at Greasyfork site , almost one year i test it for my self , many sites listed in the scripts not running well if using include rules , that why i prefer match rules than include rules.

§
Pubblicato: 24/01/2022

I hope you can help me to make match rules with regex technique for all the sites listed in my Scripts, if you have much time.

§
Pubblicato: 24/01/2022

Regex won't make your script run on needless sites, if you code it well.

Include is just a improvement of match, include should not be worse or make your script not work on any websites, again, if you code it well.

The regex is there so you can edit it yourself, it's not hard to understand it
Change arnolds|bluraytorrent|filmestorrentbrasil|filmestorrentmax|filmestorrentdownload to the names of the websites your script works on
remove (www\.)? in case the website does not start with https://www.
(\.com\.br) means that the website has to end in .com.br, if the website only ends with .com, remove \.br

§
Pubblicato: 24/01/2022

Thanks for your explanation , i'm still testing with dot com website and i have many questions about this regex, if i change (https?:\/\/) with (*?:\/\/) is this will work on both http and https ? and how to write this match in regex

// @match *://cool-time.dutchycorp.space/* => still confused because have "-"
// @match *://*.sohexo.org/kisalink/* => this is example the site that have many sub-domain not only "www"

and the last is about exclude, how to create regex that work only on this page?
// @exclude *://claimercorner.xyz/claimer/dashboard

§
Pubblicato: 24/01/2022
Modificato: 24/01/2022

^(https?:\/\/) matches http and https

// @include /^(https?:\/\/)(www\.)?(cool-time)(\.dutchycorp\.space)(\/.*)?/
// @include /^(https?:\/\/)(.+)?(sohexo)(\.org\/kisalink)(\/.*)?/

Use https://regex101.com/ to test anything

// @include /^(https?:\/\/)(.+)?(claimercorner)(\.xyz\/claimer\/dashboard)/

Use this regex I made for most websites, if you have 1 website that ends in .xyz, then just do not use a regex for that website.
Regex will be good for .com/.org/.net etc websites that are usually most websites

§
Pubblicato: 16/07/2023

ok I remember helping you improve your script now haha

§
Pubblicato: 16/07/2023
§
Pubblicato: 16/07/2023

ok I remember helping you improve your script now haha

Yeah i love your suggestion to use the regex technique, but now i'm confused because tamper extension asking me to switch to @match,

What do you think about this warning ?
eslint: userscripts/better-use-match - Using @include is potentially unsafe and may be obsolete in Manifest v3 in early 2023. Please switch to @match.

§
Pubblicato: 16/07/2023
Modificato: 16/07/2023

I am going to ignore that until the last possible second.
All my scripts use @include and they still work although more than half of 2023 has already passed, so I am not sure if chrome will really make @include stop working. Hopefully it won't, if it does I will have to run and replace all my scripts using @include with @match and stop using regex.
Not using regex just make scripts look ugly, get heavier, and have more unnecessary lines of code.

§
Pubblicato: 17/12/2023

I don't think about the update page changelog as a way to "attack" the script users that commented about bad/good things, or was a simple way to say "updated from crap to something that works".

I would suggest that you look at any of my scripts so you see what a changelog "means", that would be very helpful for anyone including yourself.
My changelogs always help me go back to old versions and see my mistakes, sometimes I take off a feature or update it, but after a while, it starts working again, so if I wrote a good changelog I would know it. This is very helpful, especially for scripts like this one that work on 1K+ websites haha.

§
Pubblicato: 17/12/2023

I'm sorry it's just joke for owner who have Bad thoughts with me , after I read message from his site , but now the message he wrote is even worse , haha
if curious , you can see this image //i.ibb.co/ky72N07/germansite.png
My friend who saw this was very angry, I just said calm down, no need to get emotional, be patient

§
Pubblicato: 17/12/2023

No need to be sorry, this isn't a rule I think, so it's just my suggestion.

Ok now it makes sense... that's funny.
I think it's also happening with me but not on that scale yet...

Pubblica risposta

Accedi per pubblicare una risposta.