Yeah, just like the topic suggests, this is a step by step and easy to understand tutorial on how to copy campaign signatures with a click using Tampermonkey extension and TryNinja's scripts.
Having been aware of the difficulties faced by forum members and In response to this thread
https://asktom.cf/index.php?topic=5533860.0, I decided to simplify it.
let's start with Mobile VersionFor the mobile, you'll use Edge browser. Opera mini and chrome has limited it no support for extensions on mobile.
After installing the edge browser,
Step 1Click on the hamburger at the far right
Step 2Click on extensions and then get Tampermonkey,

.

Also don't forget the checkbox to turn on developer mode. Click on it and Add.
Step 3Go back to extensions, click on Tampermonkey and create new script

Remove all the contents of the new script and paste the TryNinja code
// ==UserScript==
// @name Copy Code to Clipboard
// @version 0.1
// @description Click the codeheader to copy the content to your clipboard
// @author TryNinja
// @match https://asktom.cf/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=asktom.cf
// ==/UserScript==
(function() {
'use strict';
const codeheaders = document.querySelectorAll('.codeheader');
const copyCode = id => {
const header = document.querySelector(`.${id}`);
const copyBtn = document.querySelector(`.${id} > button`);
const code = header.nextElementSibling;
navigator.clipboard.writeText(code.innerText).then(() => {
copyBtn.textContent = 'Code: (copied!)';
});
}
for (const codeheader of codeheaders) {
const rand = Math.floor(Math.random() * 10e6);
const id = `code-${rand}`;
codeheader.classList.add(id);
codeheader.innerHTML = `<button type="button" style="border: 0; background: none; color: rgb(136, 169, 195); font-weight: bold;">Code: (click to copy)</button>`;
const copyBtn = document.querySelector(`.${id} > button`);
copyBtn.addEventListener('click', () => copyCode(id));
}
})();
NOTE: The above code works only for asktom.cf. You may not be able to apply it on another site.
After importing the code, You should have something like this

Then click on file and save
Step 4Then go back to your bitcointalk account and refresh the page. You should see something like this

Congratulations, you can now copy signatures easily or anything in code block across the forum site.
Desktop VersionFor the desktop version, I'll be using chrome tho illustrate it's workability across different browsers. Desktop browser is easier than mobile, only that you'll need to set developer mode in browser manually.
Step 1click on the three dots at the far right, scroll down to extensions, Hover on it and click "Visit Chrome Webstore"

Go ahead and search for Tampermonkey and install it. Remember to turn on developer mode manually

Also be sure to pin it to the menu bar for easier accessibility
Step 2Click on the Tampermonkey Icon and create new script

Then go ahead to clear the contents of the script and import TryNinja code, click on file and save.
Step 3Go to the extension dashboaed and ensure your script is enabled

Navigate to forum site and also click on the pinned Tampermonkey extension to be sure the script is being run on the forum site
Step 3Now refresh the page and you should have something like this, If you do CONGRATULATIONS.
ConclusionThis is an easy and fun exercise that can help you copy signatures easily both from mobile devices and Desktop alike, you only need to run this setup once, Thanks to TryNinja for providing the scripts. Tampermonkey is a safe extension with a wide range of usage, hence it's being selected for this tutorial. However, I must warn us of the danger of using it inappropriately. Tampermonkey allows scripts modify our webpages and importing untrusted scripts can be a threat to our information security. The script we used for this tutorial has been scrutinized and seen not to be interfering with our data and hence it is considered very safe. If you must import a script to use, be sure to check what it Fetches (fetch()), the XMLHttpRequest, and what it sets to the localStorage(localStorage.setItem()) and more to validate your data security.
Do well to have fun with it and If you encounter any issues in the process, I would be glad to help
