User Functions
Don't have an account yet? Sign up as a New User
Lost your password?
|
Enquirer Home Page | Twitter | Back to Improbable Island
- ii-direct-filth.user.js
// ==UserScript==
// @name ii-direct-filth
// @namespace http://enquirer.improbableisland.com/dokuwiki/doku.php?id=greasemonkey:ii-direct-filth
// @description Adds a link ('#') to each post in the Forum of Filth that points directly to said post
// @match http://enquirer.improbableisland.com/forum/*
// @icon http://improbableisland.com/favicon.ico
// @version 1.1
// @author Full Metal Lion
// @grant none
// ==/UserScript==
var nameLinks = document.querySelectorAll("a[name]");
for(var i=0; i<nameLinks.length; i++)
{
nameLinks[i].innerHTML = '#';
nameLinks[i].setAttribute('href', document.URL.replace(/#.*/, "")+'#'+nameLinks[i].name);
}
|