🏠 返回首頁 

讨论 » 创建请求

Conversion between firefox userstyle to chrome userstyle or even script ?

§
发表于:2019-02-18
编辑于:2019-02-22

Conversion between firefox userstyle to chrome userstyle or even script ?

#PlacesToolbarItems menupopup .scrollbox-innerbox, .bookmark-item[container="true"] menupopup .scrollbox-innerbox {width: 300px !important;display: table !important;}
#PlacesToolbarItems menupopup menuseparator, .bookmark-item[container="true"] menupopup menuseparator {display: block !important;margin-bottom: 6px !important;}
§
发表于:2019-02-21

this is not a firefox script but a CSS Sheets, i don't know what site you want to run it at,replace www.youtube.com with the site you want to run blow maybe it will run

// ==UserScript==
// @version     0.1
// @name        inject a style for a site such as youtube
// @match       *://www.youtube.com/*
// @run-at      document-start
// @grant       none
// @noframes
// ==/UserScript==
(function () {
'use strict';
var injection = document.createElement('style');
document.head.appendChild(injection);
injection.textContent = `
#PlacesToolbarItems menupopup .scrollbox-innerbox, .bookmark-item[container="true"] menupopup .scrollbox-innerbox {width: 300px !important;display: table !important;}
#PlacesToolbarItems menupopup menuseparator, .bookmark-item[container="true"] menupopup menuseparator {display: block !important;margin-bottom: 6px !important;}`;
}());

by the way i'm not so good at this so there is nothing i can help on the other post you call for help

§
发表于:2019-02-22
编辑于:2019-02-22

You're not good, you're right ))

You just mixed a usercript section with a userstyle for firefox.. I did a mistake, it wasn't a script that i gave you but a userstyle.. & i needed a userstyle conversion or at worse, userscript for chrome. & it doesn't affect any sites. It's bookmarks separators..

A perfect version that can't be found as chrome extensions either.

§
发表于:2019-02-22

Anyone else ? ((

发表回复

登录以发表回复。