Enquirer Home Page | Twitter | Back to Improbable Island
 

ii-direct-filth

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);
}
 
Logged in as: Guest (Guest)
greasemonkey/ii-direct-filth.txt · Last modified: 2016/07/19 11:01 by Full Metal Lion