User Tools

Site Tools


greasemonkey:ii-direct-filth

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);
}
greasemonkey/ii-direct-filth.txt · Last modified: 2023/11/21 18:04 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki