FirefoxBar / xStyle

A user styles manager for Firefox and Chrome
http://team.firefoxcn.net/#addons
GNU General Public License v3.0
171 stars 13 forks source link

"Install with Stylish button" than "Install Style" in chrome #60

Open pabli24 opened 6 years ago

pabli24 commented 6 years ago

Userstyles showing Install with Stylish button. This happens only in chrome browser.

sylingd commented 6 years ago

Which button is displayed has no effect on the function

maboloshi commented 6 years ago

使用User-Agent Switcher for Chromehttps://userstyles.org伪装成 ff浏览器访问 就能使用

也可以使用UserJavaScript.

// ==UserScript==
// @name       Make userstyles.org support xStyle extension
// @version    0.1
// @description Uses Mozilla user agent, make it support xStyle extension.
// @icon       https://userstyles.org/favicon.ico  
// @match      https://userstyles.org/*
// @run-at     document-start
// @grant none
// ==/UserScript==
Object.defineProperty(navigator, 'userAgent', {
    value: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0'
});