Discussions » Creation Requests

Conversion between firefox userstyle to chrome userstyle or even script ?

§
Posted: 2019-02-18
Edited: 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;}
§
Posted: 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

§
Posted: 2019-02-22
Edited: 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.

§
Posted: 2019-02-22

Anyone else ? ((

Post reply

Sign in to post a reply.