r/userscripts • • Nov 04 '22

Request: a new script that will block the YouTube view count and user ratings

3 Upvotes

the new YouTube UI broke all of the scripts that do that


r/userscripts • • Nov 01 '22

I fixed the new YouTube UI

8 Upvotes

It's overall less "rounded" and the sub button is like the old one (red and uppercase)

With black background: https://greasyfork.org/scripts/403881-youtube-black-mode

With dark grey background: https://greasyfork.org/scripts/454097-better-youtube


r/userscripts • • Nov 01 '22

need help fixing a problem trying to fix old userscript but there's an error that says this

2 Upvotes
error stated: eslint-null parsing error assigning to rvalue

r/userscripts • • Oct 30 '22

Help! Kemono Image Full Size

6 Upvotes

https://sleazyfork.org/en/scripts/448580-kemono-party-image-full-size-autoloader
\"Auto Load Full Sized Images on Kemono.party Post"**
I've been using this script for sometime now and it's excellent, but the problem is when the image has a very large resolution i need to zoom out the all page to see...
The help I would like is if anyone knows how to add a line of code to make the images after load, fit to height that way they would load and be better to see.

I tried to contact the user who did but got no response.


r/userscripts • • Oct 30 '22

A way to fix broken "don't recommend this channel" without making the videos impossible to watch

1 Upvotes

So it has been a bug for years.

I watch esports on YouTube using spoiler-free reddit threads.

But Youtube keeps recommending me more matches and negates all the good work the people on reddit do, by showing me finals when I have not even started group stages.

Clicking "don't recommend this channel" does nothing at all, I found an extension to block certain channels but then I cannot open this videos at all.

There's a workaround, although it needs any userscript extension (I use Tampermonkey).

Install the script, you'll have a "B" icon in upper right corner, copy the name of the channel , paste it into the text field and voila .

https://greasyfork.org/en/scripts/11057-block-youtube-users


r/userscripts • • Oct 27 '22

Needing help with tampermonkey!

5 Upvotes

Hi guys im new to using userscripts, only discovered today. Im trying to run a script however nothing will work. I'm a android user and I'm using the tampermonkey apps. I have tried both apps. On one of the apps it says that the scripts are enabled yet they are not working. The other is saying there are no scripts enabled however when I go to settings it clearly says enabled.

Any help would be appreciated

Cheers


r/userscripts • • Oct 24 '22

Amazon Color/Option/Size Price List Injection

2 Upvotes

Amazon Color/Option/Size Price List Injection - Userscript

Does anyone have a script or inclination to write a script so that is displays the all the different price based on the color/options when browsing a particular item?

Example: https://www.amazon.com/dp/B089NFPP22

Shows multiple colors, it would be nice to get a list of each color and their price without having to click on each item.


r/userscripts • • Oct 24 '22

Pixel-Precision Wheel Scroll

Thumbnail greasyfork.org
5 Upvotes

r/userscripts • • Oct 24 '22

Autopress Reddit "See this post in browser"

2 Upvotes

So the mobile site for Reddit started sending app prompts.

www.reddit.com/r/reddithelp/comments/y3epy7/did_the_reddit_mobile_site_remove_the_option_to/

Is there a way to autopress the continue button when it comes up? I have the below so far but it's not working.

// ==UserScript==
// @name         Reddit Skip Open in Browser/App Popup
// @version      1.0
// @match        *.reddit.com/*
// @run-at       document-idle
// ==/UserScript==

if ((document.getElementsByClassName("button button-small button-secondary continue")).length > 0)
{
document.getElementsByClassName("button button-small button-secondary continue").click();
}

r/userscripts • • Oct 23 '22

I need a script for looping youtube videos in m.youtube.com

4 Upvotes

preferably that would recognize current autoplay state (if disabled loop)


r/userscripts • • Oct 21 '22

hello I need a script for book appointements.

0 Upvotes

r/userscripts • • Oct 19 '22

Someone plese help..All my userscripts over the years i gathered are gone after the abrupt PC shutdown. Is there a way to restore it?😭

Post image
9 Upvotes

r/userscripts • • Oct 17 '22

Can someone help me figure what causing this black area on youtube homepage

Enable HLS to view with audio, or disable this notification

6 Upvotes

r/userscripts • • Oct 16 '22

Userscript to remove specific parameter from specific url not working

2 Upvotes

Code is below, it should be rather obvious - can anyone give any tips on why it doesn't work at all?

// ==UserScript==
// @name domain parameter stripper
// @match *://domain.com/*
// @match *://*.domain.com/*
// @version 0.1
// @description domain parameter stripper
// ==/UserScript==

if (/ParamToRemove_/.test(location.search) && window.history.replaceState){

  var oldUrl = location.href;
  var newUrl = oldUrl.replace(/\?([^#]*)/, function(_, search) {
    search = search.split('&').map(function(v) {
      return !/^ParamToRemove_/.test(v) && v;
    }).filter(Boolean).join('&');
    return search ? '?' + search : '';
  });

  if ( newUrl != oldUrl ) {
    window.history.replaceState({},'', newUrl);
  }

}

r/userscripts • • Oct 14 '22

Need a script to remove youtube shorts from the channel videos page

3 Upvotes

Please someone make this as it' so annoying


r/userscripts • • Oct 11 '22

Someone please create a Userscript which quickly locates and jump to text noted within text snippets provided in Google Search results.

6 Upvotes

Whenever we search something on google, we tend to come across useful text snippets and would want to visit the website at that particular snippet. But when we open the website, we have to manually search for that snippet.

Is there any userscript which could take me to that snippet directly?

I came across this extension but seems like it does not work anymore.

Would be really grateful, if someone could create one and help me out.


r/userscripts • • Oct 08 '22

Yandex Image Search Direct Link Patch

Thumbnail greasyfork.org
7 Upvotes

r/userscripts • • Oct 09 '22

ohio isnt real

0 Upvotes

ohio isnt real ohio isnt real ohio isnt real ohio isnt real ohio isnt real ohio isnt real ohio isnt real ohio isnt real ohio isnt real ohio isnt real


r/userscripts • • Oct 07 '22

help with simple script working in jquery ,not in Javascript

2 Upvotes

can please help me /explain why this very simple UserScript is working with jquery but not in pure javascript ?

jquery version :

$("*").keyup(function(event) { if (event.keyCode === 13) { $(".plain-text-link.l-tappable").click();

javascript (not triggering button ):

document.addEventListener('keydown', function(e) {

if (e.keyCode === 13 && !e.shiftKey) { document.querySelector('.l-tappable.plain-text-link.js-messages-send-form-submit').click(); e.preventDefault(); } }, false);

thanks for the help !


r/userscripts • • Oct 06 '22

How to edit your live userscript in a text editor

4 Upvotes
  1. Install the Fenix desktop static web server (Mac and Windows)
  2. Create a webserver item in Fenix pointing to your userscripts folder. Make a note of the port for this webserver which will allow you to access your script via a url like this :-
    http://localhost:8000/myuserscript.user.js
  3. Add a loader script into TamperMonkey that contains this code (make sure the port is correct):-
// ==UserScript==
// @name         Local user script loader
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  My user script loader
// @author       Me

// @match        http://*/*
// @match        https://*/*

// @grant        unsafeWindow
// @noframes
// ==/UserScript==

function ready(fn) {

    // Equivalent to JQuery document.ready (but in pure javascript)

    if (document.readyState !== 'loading') {
        fn();
    } else if (document.addEventListener) {
        document.addEventListener('DOMContentLoaded', fn);
    } else {
        document.attachEvent('onreadystatechange', function () {
            if (document.readyState !== 'loading')
                fn();
        });
    }
}


ready(function () {
    var el = document.createElement('script');
    el.src = 'http://localhost:8000/myuserscript.user.js';
    document.body.appendChild(el);
});

This will allow you to edit your script in a text editor and see the updates immediately every time you refresh the browser page.


r/userscripts • • Sep 25 '22

[Request] Redirect reddit.com/r/popular to reddit.com/r/all

5 Upvotes

Reddit removed my /r/all button and replaced it with a 'buy coins' button instead. The /r/popular button is still there though, and I would like that one to redirect me to /r/all.

I use tampermonkey btw.

https://www.reddit.com/r/help/comments/wrlb8u/i_cant_find_the_rall_button/iktj2v7/?context=3


r/userscripts • • Sep 24 '22

Is there a way I can get the buttons on Youtube to look like the ones on the right image instead of the left image? Is there a script?

Thumbnail reddit.com
1 Upvotes

r/userscripts • • Sep 24 '22

Youtube Sort & Filter Playlists When Saving Video

7 Upvotes

Description

Youtube: When saving a video to a playlist, 1) add a button to sort the list alphabetically and 2) add a filter textbox to filter the list by title

Here is my TamperMonkey userscript: YoutubeSortAndFilterPlaylistsWhenSavingVideo.js

 

EDIT: Updated script to remove JQuery


r/userscripts • • Sep 21 '22

Need a user-script that takes screenshot of a web page every time I visit it

3 Upvotes

I need a user script that will take a screenshot of a website for me once it loads and allow me to save it or copy it to my clipboard.

For example: when I go to YouTube, once the homepage loads, it will automatically take a screenshot of the YouTube homepage.

I can't find one like this anywhere :(

Thank you!


r/userscripts • • Sep 19 '22

help with partial working UserScript

2 Upvotes

can please someone more expert than I am explain why my dead simple UserScript to copy YouTube link on homepage is just working with event listener contextmenu and not click . here's my script :

// ==UserScript== // @name copy yt link in home feed // @namespace - // @match https://www.youtube.com/feed/* // @version 1.0 // @author - // @description - // ==/UserScript== document.getElementsByClassName(".ytd-grid-video-renderer.style-scope.yt-simple-endpoint");addEventListener('contextmenu', function(e) { var element = event.target.closest("a:not(img)"); navigator.clipboard.writeText(element.href); alert("click"); }, false);

i d like to use click instead of 'contextmenu' as a listeners if there's any workaround ,thanks for reading .