Giter VIP home page Giter VIP logo

no-google-amp-bot's People

Contributors

dependabot[bot] avatar lunaneff avatar psidex 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

Watchers

 avatar  avatar

Forkers

ryul95

no-google-amp-bot's Issues

Multiple links in a single comment

When someone posts a comment containing two or more google amp links only the first one gets processed.

Would be nice if the bot could process multiple links and display them in the same order as they appear in the comment.

Please use "canonical" result from getting the google amp page

I think the most reliable way to get the correct target page is to retrieve the google amp link and look for canonical relation in the HTML and embedded Javascript. Consider the following PCRE regexps:

<link\s+rel="?canonical"?\s+href="?(.*?)"?\s*/?>
<link\s+href="?(.*?)"?\s+rel="?canonical"?\s*/?>
"canonicalUrl":"(.*?)"

The target URL would be in the first grouping.

Verbosity

Please, please, please: if your bot has to exist, can't it be less verbose? I think it would really improve the reading experience on Reddit if its comments were as brief as possible. I'd advocate for something like:

Non-AMP link: https://www.example.com
Why?

That is a service. Its current verbosity is self-important, self-promoting spam.

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.