Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name CoinBrawl ForumPlus
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description try to take over the world!
- // @author You
- // @match https://www.coinbrawl.com/message_threads/*
- // @grant none
- // ==/UserScript==
- //document.body.innerHTML = document.body.innerHTML.replace('idea', '😀');
- //'<h4><a href="/users/46720">Darkenvy</a></h4>'
- userName = '\<h4\>\<a\shref="\/users\/\d+"\>(.*)\<\/a\>\<\/h4\>';
- avatar = '😀';
- var re = /\<h4\>\<a\shref="\/users\/(\d+)"\>.*\<\/a\>\<\/h4\>/;
- function findAvatar(userID) {
- a = userID.match(/\d+/)
- //a = userID;
- //b = a.substring(1, a.length);
- //b = a / 151;
- //c = Math.round(userID);
- return a;
- }
- for(i = 0; i < 20; i++) {
- document.body.innerHTML = document.body.innerHTML.replace( re, findAvatar('$1') );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement