Code Monkey home page Code Monkey logo

garywill / autoreferer Goto Github PK

View Code? Open in Web Editor NEW
19.0 4.0 3.0 85 KB

Browser addon. Control referer to protect privacy and not break web. The addon (maybe the only one?) that deals with Firefox's document.referrer bug 🛡️🛣️

Home Page: https://garywill.github.io

License: GNU General Public License v2.0

JavaScript 83.65% HTML 14.35% Shell 2.00%
firefox firefox-addon referer privacy extension referrer-policy referer-spoof referrer browser webextension

autoreferer's Introduction

autoreferer's People

Contributors

garywill avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

autoreferer's Issues

Bug: URLs converted to lowercase

When I left-click on links, the URL is converted to lowercase.

To reproduce:

  1. Install the latest version (0.8.3) from AMO
  2. Search "JPEG XL" in DuckDuckGo
  3. Left-click on the result which links to Wikipedia's article
  4. The URL becomes https://en.wikipedia.org/wiki/Jpeg_xl, which causes Wikipedia to display "Wikipedia does not have an article with this exact name."

I find that by downgrading to 0.8.1, the issue will disappear.

However, it looks like this repository is still serving the old version of the code, so I am unable to see the commits between 0.8.1 and 0.8.3.

Bug: Addon does not encode the question mark properly, which breaks some URLs

For some URLs, e.g. Wikipedia articles with a question mark in the title, the ? symbol has to be encoded to %3F, otherwise the URL will not be correct.

Case 1: Question mark at the end of title:

  1. Install the latest version (0.8.21) from AMO
  2. Search "How Heavy Are the Dumbbells You Lift" in any search engine (I tested on DuckDuckGo.)
  3. Click on the result which links to Wikipedia's article
  4. The URL becomes https://en.wikipedia.org/wiki/How_Heavy_Are_the_Dumbbells_You_Lift?, which causes Wikipedia to display "Wikipedia does not have an article with this exact name."

Case 2: Question mark in the middle and at the end of title:

  1. Visit https://en.wikipedia.org/wiki/WorldEnd
  2. Click "日本語" on the left sidebar to go to the Japanese version
  3. The URL becomes https://ja.wikipedia.org/wiki/%E7%B5%82%E6%9C%AB%E3%81%AA%E3%81%AB%E3%81%97%E3%81%A6%E3%81%BE%E3%81%99%E3%81%8B?_%E5%BF%99%E3%81%97%E3%81%84%E3%81%A7%E3%81%99%E3%81%8B?_%E6%95%91%E3%81%A3%E3%81%A6%E3%82%82%E3%82%89%E3%81%A3%E3%81%A6%E3%81%84%E3%81%84%E3%81%A7%E3%81%99%E3%81%8B?
  4. In other words, the latter part of the URL becomes終末なにしてますか?_忙しいですか?_救ってもらっていいですか?, and Wikipedia displays "ウィキペディアには現在この名前の項目はありません。" (which means there is no such article)

In both cases, if I manually change ? to %3F, then it works.

Could you help figuring out this site? I believe it's a referrer issue.

https://wowk1no.vip/16427

Open this in Chrome and press one of the "[ШУУД ҮЗЭХ]" links on episodes list.

You will be redirected to another site (fishlovingworld.com) showing video player screenshot. Works!

But when you do the same in Firefox, it doesn't work. It just redirects back to https://wowk1no.vip which i believe because of the following

<meta name="referrer" content="always">
<meta http-equiv="refresh" content="0; url=https://howtodoit.icu/?pid=6095&sh=12" />

I use your add-ons and you're experienced on Firefox's referrer mechanisms/workings.

If you have time, please help me figure out why this site doesn't work in Firefox.

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.