旁路 全部 短鏈接

繞過所有短鏈接網站自動跳過煩人的鏈接縮短器,直接到您的目的地

< 腳本旁路 全部 短鏈接的回應

提問/評論

§
發表於:2022-01-24
編輯:2022-01-24

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)(\/.*)?/

§
發表於:2022-01-24

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.

§
發表於:2022-01-24

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.

§
發表於:2022-01-24

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

§
發表於:2022-01-24

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

§
發表於:2022-01-24
編輯:2022-01-24

^(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

§
發表於:2023-07-16

ok I remember helping you improve your script now haha

§
發表於:2023-07-16
§
發表於:2023-07-16

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.

§
發表於:2023-07-16
編輯:2023-07-16

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.

§
發表於:2023-12-17

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.

§
發表於:2023-12-17

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

§
發表於:2023-12-17

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...

發表回覆

登入以回復