Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Mark Links v3
- // @namespace original version by headbanger (I think)
- // @description Styles logout links so you dont accidentally click one
- // @include http://*.endoftheinter.net/showmessages.php*
- // @include https://*.endoftheinter.net/showmessages.php*
- // @include http://*.endoftheinter.net/message.php*
- // @include https://*.endoftheinter.net/message.php*
- // @include http://endoftheinter.net/showmessages.php*
- // @include https://endoftheinter.net/showmessages.php*
- // @include http://endoftheinter.net/linkme.php*
- // @include https://endoftheinter.net/linkme.php*
- // @include http://links.endoftheinter.net/linkme.php*
- // @include https://links.endoftheinter.net/linkme.php*
- // @include http://*boards.*.endoftheinter.net/showtopics.php?board=*
- // @include https://*boards.*.endoftheinter.net/showtopics.php?board=*
- // @include http://*boards.*.endoftheinter.net/showmessages.php*
- // @include https://*boards.*.endoftheinter.net/showmessages.php*
- // @include http://archives.*.endoftheinter.net/*
- // @include https://archives.*.endoftheinter.net/*
- // @include http://boards.clouds.endoftheinter.net/*
- // @include https://boards.clouds.endoftheinter.net/*
- // @include http://archives.clouds.endoftheinter.net/*
- // @include https://archives.clouds.endoftheinter.net/*
- // ==/UserScript==
- var alllinks = document.getElementsByTagName("a");
- for (var i = 1; i < alllinks.length; i++) {
- var thislink = alllinks[i];
- function markLink() {
- thislink.style.backgroundColor = "#EE8888";
- thislink.style.color = "#000000";
- thislink.title = "This link will log you out!";
- }
- if (thislink.href.indexOf("endoftheinter.net/logout.php") != -1 && thislink.innerHTML != "Logout") {
- markLink();
- } else if (thislink.href.indexOf("fivethirstyeight.com") != -1 && thislink.innerHTML != "fivethirstyeight.com") {
- markLink();
- } else if (thislink.href.indexOf("arizonatimes.us") != -1 && thislink.innerHTML != "arizonatimes.us") {
- markLink();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement