Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Request: Please add support for TamperMonkey #39

Open
thereddestdog opened this issue Mar 9, 2023 · 3 comments
Open

Request: Please add support for TamperMonkey #39

thereddestdog opened this issue Mar 9, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@thereddestdog
Copy link

https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo

Would be nice to just use a single CSS format extension

@thereddestdog
Copy link
Author

Just get an error when trying to create a new userscript :(

image

@sapondanaisriwan
Copy link
Owner

sapondanaisriwan commented Mar 9, 2023

Please use Stylus instead. I haven't studied about JS yet and I still have no plan create a script with Tampermonkey or Violentmonkey.

@sapondanaisriwan sapondanaisriwan added the enhancement New feature or request label Mar 9, 2023
@THErlego
Copy link

if you HAVE to use this in tampermonkey, which is 1000% not the best way to do it you could add this code first then put adashimaatube inside:

// ==UserScript==
// @name         adashimaatube 
// @version      2.1.3
// @description tube
// @author       you
// @match        *://*.youtube.com/*
// @license      MIT
// ==/UserScript==

function addStyle(styleString) {
  const style = document.createElement('style');
  style.textContent = styleString;
  document.head.append(style);
}
addStyle(`

//INSERT CODE HERE

`)

with this method, you will not get automatic updates, not be able to easily change the settings and some things may not apply correctly
the reason why theres 2 big extensions for it is because tampermonkey is meant for JS and stylus is only for CSS

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants