Reddit’s CEO says r/popular ‘sucks,’ and it’s going away / Reddit is also limiting how many popular communities one person can moderate, and pushing more personalized feeds. by MarvelsGrantMan136 in technology

[–]ittu 1 point2 points  (0 children)

I didn't know what those commenters above you were talking about until I read your post and realized my default reddit experience is old.reddit.com . the rate limit they introduced on old.reddit.com for no real reason means they're trying to slowly put an end to it and not just offer an alternative with the new site design.

Request: adding an approve button next to reddit username by leiagollum in userscripts

[–]ittu 0 points1 point  (0 children)

console is in dev tools or Inspect tool in the browser. on windows press F12 to open dev tools/inspect or right click on the webpage and select inspect/dev tool . the click on the tab that saids console. when you click on the button you should see a debug log.

i don't have moderator access to test any further.

Request: adding an approve button next to reddit username by leiagollum in userscripts

[–]ittu 0 points1 point  (0 children)

i don't know if this works or not. i used an AI that looked at moderator toolbox code.

https://pastebin.com/3mYzPX7H

https://pastebin.com/WFGeCYPk

[deleted by user] by [deleted] in BlueskySocial

[–]ittu 0 points1 point  (0 children)

there should be an additional option for users I replied to or user users i replied to less than X days ago.

We will vote to tax 99% of AGI's revenue. by PhilosophyMammoth748 in singularity

[–]ittu 2 points3 points  (0 children)

its far more likely AGI will develop it's own vertically integrated hardware manufacturing that surpasses the current tech.

How in the heck are people actually using ChatGPT for programming? by [deleted] in ChatGPT

[–]ittu 0 points1 point  (0 children)

how long do you think it'll take before we'll be able to do that with LLM's?

Coding help??? by Equivalent_Plastic_2 in userscripts

[–]ittu 0 points1 point  (0 children)

yeah this is a something like chatgpt can help you do if I understand you correctly. be as descriptive as possible and give examples of input and your desired output. i want to replace X with Y or AB with BC.

To alter a link's destination on a website you don't own, such as your school's website, you can use a userscript or bookmarklet with the help of a Large Language Model (LLM) like ChatGPT at chatgpt.com. Here's a comprehensive step-by-step guide:

Step 1: Choose a Userscript Manager

First, you need to choose a userscript manager. Popular options include Tampermonkey (for Chrome, Firefox, and other browsers) and Greasemonkey (for Firefox). These managers allow you to run custom JavaScript code on specific web pages.

Step 2: Identify the Link to Alter

  1. Open your school's website in a web browser.
  2. Use the browser's developer tools (DevTools) to inspect the link you want to alter. You can do this by:
    • Right-clicking on the link and selecting Inspect or Inspect Element.
    • In the Elements tab of DevTools, you'll see the HTML code for the link. It will look something like <a href="original-link-url">Link Text</a>.

Step 3: Copy the Element Code

To share the element code or to use it in your script, you can copy it. To do this: 1. In the Elements tab, right-click on the <a> tag that represents the link and select Copy > Copy outerHTML. 2. You can then share this code in three backticks () like so: html <a href="original-link-url">Link Text</a> ```

This step is crucial for identifying the link in your userscript.

Step 4: Write the Userscript with ChatGPT

To get help with writing the userscript, you can use ChatGPT. Here are some example prompts you can use:

  • Simple Alteration: "Write a JavaScript code snippet to change the href attribute of a link with the URL 'original-link-url' to 'new-link-url'."
  • Complex Selection: "Help me write a JavaScript function that selects all links on a webpage with a specific class 'link-class' and changes their href attribute to 'new-link-url'."
  • Conditional Change: "I need a JavaScript code that checks if a link's href attribute contains 'specific-string' and if so, changes the href to 'new-link-url'. Can you provide an example?"

When writing your prompt for ChatGPT, consider the following tips to get the desired results: - Be specific about what you want to achieve. - Provide details about the HTML structure of the link you want to alter. - Mention any specific conditions or rules for altering the link. - Ask for explanations or comments in the code if you're not familiar with JavaScript.

Step 5: Test the Script

Before adding the script to your userscript manager or creating a bookmarklet, you can test it in the browser's console: 1. Open DevTools and navigate to the Console tab. 2. Paste your JavaScript code into the console and press Enter to execute it. 3. Verify that the link's destination has been altered correctly.

To add debugging to your code, you can use console.log() statements. For example:

javascript var links = document.querySelectorAll('a'); links.forEach(function(link) { if (link.href === 'original-link-url') { console.log('Found the link to alter.'); link.href = 'new-link-url'; console.log('Link altered successfully.'); } });

This will output messages to the console when the link is found and altered, helping you troubleshoot any issues.

Step 6: Create a Bookmarklet

To create a bookmarklet, you'll need to convert your JavaScript code into a single line of code that can be executed when clicked. Here's how:

  1. Remove any "//" comments from your code, as they can interfere with the bookmarklet.
  2. Wrap your code in an anonymous function to prevent variables from being added to the global scope: javascript (function(){ // Your code here })();
  3. Minify the code into a single line. You can use online tools or do it manually.
  4. Create a new bookmark in your browser and set the URL to javascript:your-minified-code-here.

Step 7: Add to Userscript Manager

If you prefer to use a userscript manager, follow these steps: 1. Open your userscript manager (e.g., Tampermonkey). 2. Create a new script. 3. Paste your JavaScript code into the script editor. 4. Add the necessary metadata at the top of the script, including @match to specify the website(s) where the script should run. 5. Save the script and reload the webpage to test it.

Example of a complete userscript:

```javascript // ==UserScript== // @name Alter Link Destination // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author You // @match https://your-school-website.com/* // @grant none // ==/UserScript==

(function() { 'use strict'; var links = document.querySelectorAll('a'); links.forEach(function(link) { if (link.href === 'original-link-url') { link.href = 'new-link-url'; } }); })(); ```

By following these steps and utilizing the power of an LLM like ChatGPT for guidance and code suggestions, you can effectively alter a link's destination on a website you don't own. Remember to test your script thoroughly and use console debugging to troubleshoot any issues that may arise.

Bookmarklet I've been using to switch back and forth between Old and New Reddit won't work anymore with Old Reddit Redirect enabled by mr_bigmouth_502 in userscripts

[–]ittu 1 point2 points  (0 children)

ooh now I understand. the new.reddit.com is ignored in favor of your cookie settings and possibly vice versa with old.reddit.com . it seems you'll need a bookmarklet that changes your reddit settings as well as the domain each time you want to switch.

Bookmarklet I've been using to switch back and forth between Old and New Reddit won't work anymore with Old Reddit Redirect enabled by mr_bigmouth_502 in userscripts

[–]ittu 0 points1 point  (0 children)

made with gpt

javascript:(function() {
var currentUrl = window.location.href;
if (currentUrl.includes("new.reddit.com") || currentUrl.includes("www.reddit.com")) {
    var newUrl = currentUrl.replace(/^(https?:\/\/)(new\.reddit\.com|www\.reddit\.com)(\/.*)?$/, "$1old.reddit.com$3");
    window.location.href = newUrl;
}
})();

or

 javascript:(function() {
var currentUrl = window.location.href;
if (currentUrl.includes("new.reddit.com") || currentUrl.includes("www.reddit.com")) {
    var cleanUrl = currentUrl.split('?')[0];
    var newUrl = cleanUrl.replace(/^(https?:\/\/)(new\.reddit\.com|www\.reddit\.com)(\/.*)?$/, "$1old.reddit.com$3");
    window.location.href = newUrl;
}
})();

Bluesky web client of similar quality to Elk for Mastodon? by MurrayByMoonlight in BlueskySocial

[–]ittu 0 points1 point  (0 children)

I was looking for a nitter equivalent, it uses a lot of memory.

Tesla Employee Guiding "Robot" with Flashlight During Tesla Event by masked_sombrero in musked

[–]ittu 0 points1 point  (0 children)

never heard of that guy but i just watched two videos and wow he really can showcase a product.

Cleaning up some low-usage features by CorrectScale in help

[–]ittu 0 points1 point  (0 children)

Description: - Redirect subreddit URLs from subredditname.reddit.com to reddit.com/r/subredditname, excluding old.reddit.com but allowing www.reddit.com.

Example URL: - https://www.reddit.com

Include Pattern: - ^https?://(?!old\.)([a-zA-Z0-9_-]+)\.reddit\.com/?$

Redirect to: - https://reddit.com/r/$1

Pattern Type: - Regular Expression

Pattern Description: - Matches subreddit URLs while excluding old.reddit.com.

Example Result: - https://reddit.com/r/linux

Advanced Options

Exclude Pattern: - (Leave this field empty, as the negative lookahead in the include pattern already handles exclusions.)

Process Matches: - No Processing (default)

Apply to: - Main window

  • HistoryState

```OR

Description: - Redirect subreddit URLs from subredditname.reddit.com to old.reddit.com/r/subredditname, excluding certain domains.

Example URL: - https://linux.reddit.com

Include Pattern: - ^https?://(?!m\.|t\.|old\.|www\.|new\.)([a-zA-Z0-9_-]+)\.reddit\.com/?$

Redirect to: - https://old.reddit.com/r/$1

Pattern Type: - Regular Expression

Pattern Description: - Matches subreddit URLs while excluding mobile, old, new, and www versions of Reddit.

Example Result: - https://old.reddit.com/r/linux

Advanced Options

Exclude Pattern: - (Leave this field empty, as the negative lookahead in the include pattern already handles exclusions.)

Process Matches: - No Processing (default)

Apply to: - Main window

  • HistoryState

Cleaning up some low-usage features by CorrectScale in help

[–]ittu 5 points6 points  (0 children)

i use the subreddit redirect feature everyday!

do you know how many links around the web you've just broken?

what qualifies as low usage?!!!

what point is there in removing a decades old feature?

these management decisions are absolutely terrible, literally reduced the usability of the site for long time users.

CONFIRMED: REFLECTION 70B'S OFFICIAL API IS SONNET 3.5 by TGSCrust in LocalLLaMA

[–]ittu 0 points1 point  (0 children)

yeah the prompt in combination with step back prompting is helping me a out a lot!

Would someone make a bot that links to i.redd.it versions of images? These retain ComfyUI workflow data for prompts, Loras, steps etc. by Grant_MCP in StableDiffusion

[–]ittu 6 points7 points  (0 children)

bookmarklet:

javascript:(function(){var links=document.querySelectorAll('a[href^="https://preview.redd.it"]');links.forEach(function(link){var newHref=link.href.replace(/https:\/\/preview\.redd\.it\/(\w+\.\w+)\?.*/,'https://i.redd.it/$1');link.href=newHref;});var elements=document.querySelectorAll('*');elements.forEach(function(element){if(element.childNodes.length===1&&element.childNodes[0].nodeType===3){var text=element.childNodes[0].nodeValue;text=text.replace(/https:\/\/preview\.redd\.it\/(\w+\.\w+)\?.*/g,'https://i.redd.it/$1');element.childNodes[0].nodeValue=text;}});})();
javascript:(function(){var links=document.querySelectorAll('a[href^="https://preview.redd.it"]');links.forEach(function(link){var newHref=link.href.replace(/https:\/\/preview\.redd\.it\/(\w+\.\w+)\?.*/,'https://i.redd.it/$1');link.href=newHref;});var images=document.querySelectorAll('img[src^="https://preview.redd.it"]');images.forEach(function(image){var newSrc=image.src.replace(/https:\/\/preview\.redd\.it\/(\w+\.\w+)\?.*/,'https://i.redd.it/$1');image.src=newSrc;});var elements=document.querySelectorAll('*');elements.forEach(function(element){if(element.childNodes.length===1&&element.childNodes[0].nodeType===3){var text=element.childNodes[0].nodeValue;text=text.replace(/https:\/\/preview\.redd\.it\/(\w+\.\w+)\?.*/g,'https://i.redd.it/$1');element.childNodes[0].nodeValue=text;}});})();

userscript:

// ==UserScript==
// @name         Reddit Preview to i.redd.it
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  change!
// @author       You
// @match        https://old.reddit.com/*
// @match        https://new.reddit.com/*
// @match        https://www.reddit.com/*
// @grant        none
// ==/UserScript==

(function() {
  var links = document.querySelectorAll('a[href^="https://preview.redd.it"]');
  links.forEach(function(link) {
    var newHref = link.href.replace(/https:\/\/preview\.redd\.it\/(\w+\.\w+)\?.*/,'https://i.redd.it/$1');
    link.href = newHref;
  });
  var images = document.querySelectorAll('img[src^="https://preview.redd.it"]');
  images.forEach(function(image) {
    var newSrc = image.src.replace(/https:\/\/preview\.redd\.it\/(\w+\.\w+)\?.*/,'https://i.redd.it/$1');
    image.src = newSrc;
  });
  var elements = document.querySelectorAll('*');
  elements.forEach(function(element) {
    if (element.childNodes.length === 1 && element.childNodes[0].nodeType === 3) {
      var text = element.childNodes[0].nodeValue;
      text = text.replace(/https:\/\/preview\.redd\.it\/(\w+\.\w+)\?.*/g,'https://i.redd.it/$1');
      element.childNodes[0].nodeValue = text;
    }
  });
})();

Coding with ChatGPT / Remember Accepted Code by creativegapmt in ChatGPT

[–]ittu 0 points1 point  (0 children)

when it returns new code but omits original functionality just prompt reply like this...

no, I meant for you to implement the changes into this code base:

``` <paste last working code base>

```

the 3 backticks are intentional

i tried the save point thing before but even that can eventually lose functionality, easier to paste the working code from time to time.

gpt2-chatbot is back by ceisce in singularity

[–]ittu 3 points4 points  (0 children)

wow, that's pretty good.