Google Chrome Data Saver VS Tampermonkey UserScripts

The extension Data Saver for Google Chrome is not compatible with Tampermonkey's UserScripts installation process.

The reason is quite simple, for a JS file to be considered as a UserScript two criteria should be met :

  1. the file name should end in .user.js

  2. the file should have a valid header represented as a comment. Example :

// ==UserScript==
// @id             iitc-plugin-show-linked-portals@fstopienski
// @name           IITC plugin: Show linked portals
// @category       Portal Info
// @version
// @namespace
// @updateURL
// @downloadURL
// @description    [jonatkins-2015-09-17-154202] Try to show the linked portals (image, name and link direction) in portal detail view and jump to linked portal on click.  Some details may not be available if the linked portal is not in the current view.
// @include*
// @include*
// @match*
// @match*
// @include*
// @include*
// @match*
// @match*
// @grant          none
// ==/UserScript==

Google Chrome's Data Saver breaks the second criteria. The proxy used by this extension removes comments and minifies JS files to save bandwith.

So instead of having an "add userscript" page :

Tampermonkey UserScript installation

Chrome downloads the JS file and the UserScript is not installed :

Tampermonkey downloaded user js file

The only solution I found is to remove the Data Saver extension.

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.