Coder Social home page Coder Social logo

rules's Introduction

Buy Me A Coffee Buy Me A Coffee Buy Me A Coffee

for Firefox for Edge for Chrome

ClearURLs Rules

ClearURLs is an add-on based on the new WebExtensions technology and is optimized for Firefox and Chrome based browsers.

This repo manages the rules for the ClearURLs addon. By using the GitLab and GitHub CI/CD, we automatically create checksum files for the rules and make them available through GitLab and GitHub Pages.

Contribute

If you have any suggestions or complaints, please create an issue or email us rules.support (at) clearurls.xyz (this mail will automatically create a new issue in this repo).

Download Rules

The rules and the corresponding hash file are available on GitLab and GitHub Pages under the following URLs:

GitLab

GitHub

rules's People

Contributors

bobvandevijver avatar chenyiping1995 avatar chirag64 avatar coloursofosint avatar eruizc-dev avatar ethanbnntt avatar forage avatar gymcap avatar iam-py-test avatar igetin avatar imbearchild avatar iz-zzzzz avatar joshaber avatar kevinroebert avatar kmohzaid avatar mochaap avatar moritzheiber avatar mpldr avatar mskiptr avatar octopuset avatar oemaix avatar pekkarr avatar permanently avatar phil-lipp avatar proletarius101 avatar rhubinak avatar roguedbear avatar the-blank-x avatar urdarinda avatar vizitys avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rules's Issues

URL not shortened on techcrunch.com

🛒 Aliexpress rules need enhancement

still have these parameters,pls fix

example 1:
https://www.aliexpress.com/item/4001147595415.html?pvid=61933b68-35f5-4820-98d0-0eaef897172d&_t=gps-id:pcDetailBottomMoreOtherSeller,scm-url:1007.33416.213724.0,pvid:61933b68-35f5-4820-98d0-0eaef897172d,tpp_buckets:668%230%23131923%230_668%23888%233325%2312_23416%230%23213724%230_23416%234721%2321967%23832_23416%234722%2321972%238_668%232846%238109%231935_668%235811%2327177%2329_668%232717%237561%23355_668%231000022185%231000066058%230_668%233422%2315392%23473_4452%230%23226710%230_4452%233474%2315675%23357_4452%234862%2324463%23590_4452%233098%239599%23112_4452%235108%2323442%23551_4452%233564%2316062%23817

Skimresources, Skimlinks, Redirectingat etc

There are a bunch of auto affiliate services that many websites use to gain affiliate revenue from, ex:

https://go.skimlinks.com/?id=45704X1167592&xs=1&sref=https%3A%2F%2Fthewirecutter.com%2F&xcust=AwEAAAAAAAAAAbln&url=https://www.theteaspot.com/products/peppermint-mint-herbal-tea?variant=11937575600164

http://go.redirectingat.com/?id=355X561&test=off&xcust=bb4f7ea08d1511eb9a185217dadf8f510INT&url=https%3A%2F%2Ftry.cynch.com%2Fgrilling10

They all have the common pattern of appending a &url= at the end of themselves. They also tend to be blocked by tools such as ublock.

False positive: Sendle shipment tracking URLs

Sendle shipment tracking URLs are stripped inappropriately.

This results in Sendle showing the following error:

Looks like that number isn’t quite right. Check the reference number you were given and try again.

URL not shortened on facebook marketplace

chinese wechat (weixin) url tracking param

It only needs these parameters: __biz, sn, idx, mid

https://mp.weixin.qq.com/s?__biz=MzA5NjI1NTE5Mw==&mid=2658864866&idx=1&sn=ef531df79d991ce4a57ff1311abca534&chksm=8b3d4354bc4aca42db044e65ab85df43e114ef6006963f676aa4264fb4a91cbca86a62dfcd80&scene=0&xtrack=1&key=9d3ca08bb5be9f04934549c8e4e4a996c30aa942366114adccc22c64816231bea07f025c7317b89bf7a3fc21cfc2fdcecd2ba072d018940841d34f393111a3d3cb9d5f6e26c22ba0c52acb1a87070111c0fd497cbcaa639cc3545bea37c9f6d6343731671d5deb9426c3c7d2bc4b4c9cdef298e1ab462c5ebcd2ce9c4c358e12&ascene=1&uin=MjYxODQ5NzE0MA%3D%3D&devicetype=Windows+10+x64&version=62090529&lang=zh_CN&exportkey=A9SSQkB1xNFL4HWXt%2FnY9z8%3D&pass_ticket=vw%2FaWcNgC4RDQz1%2FU0vgcgiQ9%2FEaIBm31G9H5eNbrRxEZto6oaf%2BaOgWNCLfot47&wx_header=0

--->

https://mp.weixin.qq.com/s?__biz=MzA5NjI1NTE5Mw==&mid=2658864866&idx=1&sn=ef531df79d991ce4a57ff1311abca534

googleadservices.com

Make a template for issues

Example:

Issue template: URL not shortened correctly

Which URL is being displayed:

Here you describe or paste what is the URL looking like, when it's not shortened

How should URL look like:

Here you describe or paste what is the URL supposed to be like, when it's shortened

More context:

Anything more we should know about this case?

idk something like that...

Breakage due to rule ([\/\?#]|(&|&))+((?:%3F)?[a-z]?mc=[^&]*)

Before processing
https://www.billiger.de/common/modules/api/cmodul?p=yjYblVw3QdoiOd6cmEd_bUi1B6UChvGUWp3gHtOoiOHQcU7xlGrfr9YMw6AXc6x4w5-Hgh0zm6Nc3CowW-vLRKqFLMneWjQnNibYfIDTF5fXt7W0lisK-U9GTdKm06lkw&mid=2057097209&mc=J7v95zhIqPl9&id=2057097209

After processing
https://www.billiger.de/common/modules/api/cmodul?p=yjYblVw3QdoiOd6cmEd_bUi1B6UChvGUWp3gHtOoiOHQcU7xlGrfr9YMw6AXc6x4w5-Hgh0zm6Nc3CowW-vLRKqFLMneWjQnNibYfIDTF5fXt7W0lisK-U9GTdKm06lkw&mid=2057097209&id=2057097209

Rule
([\/\?#]|(&|&))+((?:%3F)?[a-z]?mc=[^&]*)

Cheers

Exception Needed for sftc.org

When visiting this URL, the page redirects, and places in a "referrer" URL query string. It is required, but is removed by clearurls default rules. The result is that the captcha page redirects the user to a 404 after completion, rather than the original intended destination. An exception needs to be added.

Visit: http://webapps.sftc.org/ci/CaseInfo.dll

URL before sanitization: https://webapps.sftc.org/captcha/captcha.dll?referrer=https%3A%2F%2Fwebapps.sftc.org%2Fci%2FCaseInfo.dll%3F

I believe this is the rule portion which is causing issues:

"globalRules": {
            "urlPattern": ".*",
            "completeProvider": false,
            "rules": [

...

                "(?:%3F)?referrer",

ebay resolution page problem when clicking a link on gmail

Before processing:
https://www.google.com/url?q=https://rover.ebay.com/rover/0/e11569.m44.l1495/7?euid%3D975847943a7b4d9281f2d87bd21a567a%26loc%3Dhttp%253A%252F%252Fres.ebay.de%252Fws%252FeBayISAPI.dll%253FResolveCPSCase%2526caseId%253D5249352673%2526ssPageName%253DADME%253AX%253ACPSSEB%253AUS%253A1495&source=gmail&ust=1603369300211000&usg=AFQjCNGd5-iF3xBuoSp2L_v5QTqS2OSoYw

After processing:
https://rover.ebay.com/rover/0/e11569.m44.l1495/7?euid=975847943a7b4d9281f2d87bd21a567a&loc=http://res.ebay.de/ws/eBayISAPI.dll?ResolveCPSCase&caseId=5249352673&ssPageName=ADME:X:CPSSEB:US:1495

Rule:
This url is redirected

If I disable CleanURLs filter, then the URL described in Before processing works as intended.

Issues with tracking part inside URL

Hello,

An url is ending by "/id1-id2-news-article-name-topic?utm_term=Autofeed&xtref=twitter.com&utm_medium=Social&utm_source=Twitter#Echobox=15981719XX" use by 20minutes.fr

Some website keep the file extension like "/id1-id2-news-article-name-topic.html?utm_term=Autofeed&utm_medium=Social&utm_source=Twitter&Echobox=1598170XXX#xtor=CS3-5083" use by lexpress.fr and votreargent.lexpress.fr or
"/id1-id2-news-article-name-topic.html?utm_term=Autofeed&utm_medium=Social&utm_source=Twitter#Echobox=1598164XXX" use by lemonde.fr and programme-tv.net or
"/id1-id2-news-article-name-topic/index.html?utm_term=" use by edition.cnn.com or
"/id1-id2-news-article-name-topic.php?utm_term=Autofeed&utm_medium=Social&utm_source=Twitter&Echobox=1598168XXX#xtor=CS1-32-%5BEchobox%5D" use by lepoint.fr

Another tracking expression : "/id1-id2-news-article-name-topic?taid=5f422dd0f8e3570001c61XXX&utm_campaign=trueAnthem%3A+Trending+Content&utm_medium=trueAnthem&utm_source=twitter" use by reuters.com

Another tracking expression : "/id1-id2-news-article-name-topic/?
utm_source=twitter&utm_medium=social&utm_campaign=editorial&utm_term=health_covid-19&linkId=97827XXX" use by time.com

Another tracking expression : "/id1-id2-news-article-name-topic/?mbid=social_twitter&utm_brand=wired&utm_medium=social&utm_social-type=owned&utm_source=twitter" use by wired.com

Another tracking expression : "/id1-id2-news-article-name-topic?ncid=tweetlnkfrhpmg00000XXX" use by huffingtonpost.fr

Another tracking expression : "/id1-id2-news-article-name-topic.php#xtor=AD-1481423XXX" use by leparisien.fr

Another tracking expression : "id1-id2-news-article-name-topic#xtor=XXX-X" use by programme-television.org

Another tracking expression : "/id1-id2-news-article-name-topic/?utm_campaign=twitter&utm_medium=twitter&utm_source=twitter" use by journaldugeek.com

Another tracking expression : "/id1-id2-news-article-name-topic?utm_campaign=theverge&utm_content=chorus&utm_medium=social&utm_source=twitter" use by theverge.com

Another tracking expression : "/id1-id2-news-article-name-topic?mod=eXtX" use by wsj.com

Another tracking expression : "/id1?utm_campaign=link_post&utm_medium=social&utm_source=Twitter" use by 9gag.com

Another tracking expression : "/id1-id2-news-article-name-topic/?utm_medium=SocialFlow&utm_source=NYPMetroTwitter&utm_campaign=SocialFlow" or "/id1-id2-news-article-name-topic/?utm_source=NYPTwitter&utm_medium=SocialFlow&utm_campaign=SocialFlow" or "/id1-id2-news-article-name-topic/?utm_campaign=SocialFlow&utm_medium=SocialFlow&utm_source=NYPSportsTwitter&sr_share=twitter" use by nypost.com

Another tracking expression : "/id1-id2-news-article-name-topic?at_campaign=64&at_custom3=%40BBCWorld&at_custom2=twitter&at_medium=custom7&at_custom1=%5Bpost+type%5D&at_custom4=DFXXX682-XXXX-11EA-XXXX-04343A982XXX" use by bbc.com

Another tracking expression : "/id1-id2-news-article-name-topic?utm_source=twitter&utm_medium=social&utm_campaign=20200XXXX" use by dealabs.com

Another tracking expression : "/id1-id2-news-article-name-topic?xtor=rss-450&utm_medium=Social&utm_source=Twitter&utm_campaign=dlvr.it" use by liberation.fr

Another very rare expression, I put the full link : "https://www.washingtonpost.com/gdpr-consent/?next_url=https%3a%2f%2fwww.washingtonpost.com%2fpolitics%2ftrumps-suggestion-of-deploying-law-enforcement-officials-to-monitor-polls-raises-specter-of-intimidation%2f2020%2f08%2f21%2f4ff6407a-e3bb-11ea-8dd2-d07812bf00f7_story.html%3futm_source%3dtwitter%26utm_medium%3dsocial%26utm_campaign%3dwp_main&utm_source=twitter&utm_medium=social&utm_campaign=wp_main" so this part need to be remove "%3futm_source%3dtwitter%26utm_medium%3dsocial%26utm_campaign%3dwp_main&utm_source=twitter&utm_medium=social&utm_campaign=wp_main"

Is it possible to remove these tracking parts ?

Regards

[REQUEST] add bilibili.com

hope to add rule of bilibili

before:
https://www.bilibili.com/video/BV13d4y1F7rw/?vd_source=649e9c6eb3856b252cecea4e6dfa2109

after:

https://www.bilibili.com/video/BV13d4y1F7rw/

AXS Ticketing

Hi!

I noticed that I had to turn off ClearURLs filtering to be able to buy tickets for any show (I'm using Brave Browser which is built off Chromium).

Example URL:

http://shop.axs.com/?c=axs&e=154910168852036683&t_locale=en-US

Error message: "Your session has expired" upon load.

I believe AXS relies on some weird utm stuff which ultimately breaks their site if you are using this extension.

Is there any way I can write a rule in my settings to ignore from running on certain URLs? I was looking for an exemption/ignore url option in settings but did not find any.

For now I will just have to turn filtering off while using AXS.

Thank you!

twitter tracking parameter not removed

Example: https://twitter.com/pichuboo/status/1451372407655071747?t=ZE3U5N82pY-lifLdzX0dvQ&s=19
Any s= gets removed properly, but the t= tracking parameter never gets removed, even if s= is not used. About a month ago, it was actually removing both for a week or so, now it only does one.

Tracking in twitter urls & twitter's "copy url"

The s query parameter identifies which device you're on (s=20 is the destkop website, s=19 is the android twitter mobile app) while t is an unknown query parameter very likely used for tracking, even when signed out. This occurs when you click "Copy link to Tweet" in the twitter UI.

Examples:

Someone else who's noticed this:
https://twitter.com/luca/status/1432780065109155855

HTTP/2 401 at Google auth confirmation due to ZX rule

Env: Linux, FF dev 107.0b1, ClearURLs 1.25.0
Steps to reproduce:

  1. Set non-english locale! - with English(US) everything goes fine
  2. Go to https://workspace.google.com/marketplace and try to install any app.
  3. Get error XHR POST https://accounts.google.com/signin/oauth/consent/approval?hl=ru&_reqid=30157&rt=j [HTTP/2 401 Unauthorized 71ms] in logs and "Подтверждение не отправлено, попробуйте еще раз"

ClearURL log:
https://signaler-pa.clients6.google.com/punctual/multi-watch/channel?VER=8&gsessionid=XXXXX&key=XXXXXXXX&RID=rpc&SID=XXXXXXXXX&CI=0&AID=76&TYPE=xmlhttp&zx=isc9oXXwevf0&t=1 -- ZX rule applied ( ||google.*^$removeparam=zx )
https://lh3.googleusercontent.com/XXXX_XXXXX -- ETag header removed
turning ETag clearing off has no effect

Constantly Reloads page with "+" after ?search=, replacing it with " "

On the page
https://www.uptodate.com/contents/diclofenac-systemic-patient-drug-information?search=diclofenac+sodium&source=panel_search_result&selectedTitle=3~105&usage_type=panel&display_rank=3&showDrugLabel=true

the + after ?search=diclofenac keeps getting replaced with %20 and getting replaced back with + and constantly reloading the page 25+ times before stopping. Turning off filtering stops the issue from occurring, but there is no entry in the log.

Unfortunately the link is paywalled.

meet.google.com breakage when removing ETag

STR:
Join a google meeting meeting with ETag removing and the screen is blank, no video, no share screen, no chat, no controls.
Join a google meeting meeting without ETag removing and everything works.

Cheers

LinkedIn Job Tracking URL link

Hello,

ClearURLs extension doesn't seem to work on LinkedIn whenever I open a job in new tab.

Website: linkedin.com

Browser: Firefox 102

URL: https://www.linkedin.com/jobs/view/junior-data-engineer-m-f-d-at-artefact-3172716058?trackingId=ermfwjPmAAPoxJ6tKVCugQ%3D%3D&position=1&pageNum=0

How the URL could have been: https://www.linkedin.com/jobs/view/junior-data-engineer-m-f-d-at-artefact-3172716058

Add Bandcamp track/album rules

Links to Bandcamp albums and tracks can have tracking garbage at the end wich can just be cut.

Uncleaned:
https://noagreements.bandcamp.com/track/save-me-disavowed?from=search&search_item_id=2443005792&search_item_type=t&search_match_part=%3F&search_page_id=2248967963&search_page_no=0&search_rank=1&logged_in_menubar=true

Clean:
https://noagreements.bandcamp.com/track/save-me-disavowed

This is a VERY ugly RegEx for it: (^https:\/\/[\S]+.bandcamp.com\/(?:track|album)\/[^\/\?]+)\?[\s\S]*$
Only the first capturing group will be kept, the rest discarded

Breaks Hipay payment forms

Some online shops are using Hipay as a payment provider. Hipay has a payment form loaded as an iframe and the extension seems to be stripping the parameters from their main page.

This makes the payment form unusable.

Problem occurred on the website https://www.materiel.net/ that loads Hipay through this URL (example) : https://secure.materiel.net/bundles/hipay?v=1Q5akuis1dVA9FDgqklbtZQXib6WmxydtIO8-mVn6601.

With the extension enabled, Hipay fails (with errors in the console) and the form controls are readonly. With the extension disabled, the form works as intended.

[Specification] Question about completeProvider

The spec for completeProvider says:

If you want to specify rules, exceptions, and/or redirections, the value of completeProvider must be false.

It means that ClearURLs will ignore any custom rule (e.g rules, exceptions) if this field is set to true in some provider.

So why this provider has some exceptions and redirections set? They aren't getting ignored in this context?

Not working for me, either the extension or the tool

Hi,
Today this doesn't seem to be working for me at all. I have tried both firefox and chrome, but my URLs are not getting cleared. Everything seems up to date.

I even tried clicking the tools icon to manually clear a url. Here is what I pasted
https://dothebay.com/p/low-key-parks-san-francisco-near-me?mc_cid=b0e0xxxxxx&mc_eid=6459xxxxxx
And when I click Clean URLs, I get: Here you can find the cleaned URLs:
...and the exact same URL appears below.

I certainly expect mc_cid and mc_eid to be cleared since I have "Allow referral marketing" switched OFF. Is something down today? Is there someway I can manually insist that mc_cid and mc_eid tags get cleared?

Thanks! Love the tool...usually. :)

[amazon.*] remove everything after dp/*/

Rules for Flipkart & Desidime To Remove Tracking Element

As title suggest, there is lots of tracking element on Flipkart.com (An e-Commerce Website) & a Website called Desidime.com (E-Commerce Coupon/Deal Sharing Platform) which kinda breaks when visiting external pages.

Hope you can look into both of these and add relevant rules.

Add a rule for Quizlet

I suggest to add a rule to block this:
quizlet.com/SOMETHING/learn ?funnelUUID= 2dd2e953-6c9b-4fb2-9057-fd1d22bb56bf

Amazon ClearUrls rule not sufficiently shortening url

Add Ebay rule

ClearUrls doesn't clean Ebay links.

Example, with the ClearUrls turned on, Ebay link was un-shortened like this:
https://www.ebay.com/itm/275502931620?amdata=cksum%3A2755029316203cd5cd341d8246a1986f018025e88adb%7Cenc%3AAQAHAAABMJE7%252BNyUclXdoFXnbx3NvlJX7YMqFr8NJCcyHQud2Z04j2uZxgnHXbb2ZalpwbGsJ4D%252FcbSkMz8IpnsCPJ7ydREm8lqmL0kHB523%252FFCl%252BP6DeF3%252FH0fvjK92zzkJTwEE8SKxVpRs4yKQu%252F57tqCXgY8xqKB9%252F6UbjuXv47UZYBqgXpQyBP1Wq3KdtCY3KvL0EIJvLA25vjRfQ1cmN%252Bh9y5y8hpmE1VzM0vatndrRPG5IjxN4gQREok4x2%252F4fer%252FFf4Bn93oiPWb5sLYljUa1P8czdw7RZQ6uO5ZFLmiEe0qXKYBbZx7tsrUuSN3ASRyVcMrn8NoEJ7T918Zlk9VelcRqyyqaFezyJx37JBLFQgtQLpYkHW7P94BXYxciksxBvE4jnQxBpHTqdzp1SoeTq5s%253D%7Campid%3APLX_CLK%7Cclp%3A2047675

Ebay link, when shortened, should look like this:
https://www.ebay.com/itm/275502931620

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.