Jump to content

Browsers working on Older NT-Family OSes


Ben Markson

Recommended Posts


  • Tripredacus locked and unlocked this topic
  • 2 weeks later...

It helps me to have a direct link so this is my solution. It adds a Subforums link to the Windows XP page that points to the Browsers working on Older NT-Family OSes page. :D
 

// ==UserScript==
// @name        addBrowserLink
// @namespace   BenMarkason
// @author      Ben Markson
// @description Add Browser Link.
// @include     https://msfn.org/board/forum/34-windows-xp/
// @grant       none
// @version     1.0
// @run-at      document-end
// ==/UserScript==

(function()
{
  eli = document.getElementsByClassName("ipsDataList_zebra");
  if (eli[0])
  {
      li = document.createElement("li");
      li.className = "cForumRow ipsDataItem ipsDataItem_responsivePhoto ipsClearfix";
      eli[0].appendChild(li);

      div = document.createElement("div");
      div.className = "ipsDataItem_icon ipsDataItem_category";
      li.appendChild(div);
      span = document.createElement("span");
      span.className = "ipsItemStatus ipsItemStatus_large cForumIcon_normal ipsItemStatus_read";
      div.appendChild(span);
      i = document.createElement("i");
      i.className = "fa fa-comments";
      span.appendChild(i);
      div = document.createElement("div");
      div.className = "ipsDataItem_main";
      li.appendChild(div);

      h4 = document.createElement("h4");
      h4.className = "ipsDataItem_title ipsType_break";
      div.appendChild(h4);
      a = document.createElement("a");
      a.href = "https://msfn.org/board/forum/201-browsers-working-on-older-nt-family-oses/";
      a.textContent = "Browsers working on Older NT-Family OSes";
      a.className = "ipsDataItem_title ipsType_break";
      h4.appendChild(a);
  }
})();

 

Ben.

Link to comment
Share on other sites

1 hour ago, NotHereToPlayGames said:

How about a screencap?  I'm not keen on installing the script until I can physically SEE what I will gain BEFORE installing it.

You could ask to have your member name changed to NotHereToInstallScriptsWithoutScreenCapsNoSeeNoGo ... :whistle:

Though probably such a long name would wreck for good the forum page layout.

HereJustToGainsay would be short and effective, though :dubbio:.

jaclaz

Link to comment
Share on other sites

2 hours ago, NotHereToPlayGames said:

How about a screencap?  I'm not keen on installing the script until I can physically SEE what I will gain BEFORE installing it.

Here you go:

subforums.jpg.b42a7ea84f1b14887213cee205c6e017.jpg

...but I'd believe the code over a screenshot. :)

This is the 'active' content':

a.href = "https://msfn.org/board/forum/201-browsers-working-on-older-nt-family-oses/";
a.textContent = "Browsers working on Older NT-Family OSes";

Ben,

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...