User talk:Meteor sandwich yum/dabfinder.js

This is just a page where I keep track of bug fixes.

Bug list edit

  • Bug#1 - WP:NOTBROKEN not showing up, nor "don't fix them."
  • Bug#2 - text Redirects hilighted, but don't repeatedly appears after pressing the button more than once.
  • Bug#3 (predicted) - checks for http-only protocol. Should almost definitely fail for https://
  • Bug#4 (predicted) - in other languages (jawiki, dewiki, etc.) a user would only see the text "Redirects hilighted, but don't" and be confused. Not to mention it wouldn't be in a given language. Perhaps discard?

Notes for each bug edit

Testing on Old revision of Asclepius

Changes (total) edit

Relevant text changed (begin):

function findRDRs() {
  appendCSS('.mw-redirect {background-color: #ffff00;}\n#t-rdr {background-color:#ffff00;}');
  document.getElementById('t-rdr').appendChild(document.createTextNode('\nRedirects hilighted, but don\'t '));

  if(wgServer != 'http://en.wikipedia.org' && wgScriptPath != '/wikipedia/en/w') return //en.wp policy
  var a = document.createElement('a');
  a.setAttribute('href','http://en.wikipedia.org/wiki/Wikipedia:Redirect#Do_not_.22fix.22_links_to_redirects_that_are_not_broken');
  a.appendChild(document.createTextNode('fix them.'));
  document.getElementById('t-rdr').appendChild(a);
}

Relevant text changed (end):

var already_written = false;
function findRDRs() {
  if (!already_written) {
    appendCSS('.mw-redirect {background-color: #ffff00;}\n#t-rdr {background-color:#ffff00;}');
    document.getElementById('t-rdr').appendChild(document.createTextNode('\nRedirects hilighted, but don\'t '));
 
    var a = document.createElement('a');
    a.setAttribute('href','//en.wikipedia.org/wiki/Wikipedia:Redirect#Do_not_.22fix.22_links_to_redirects_that_are_not_broken');
    a.appendChild(document.createTextNode('fix them.'));
    document.getElementById('t-rdr').appendChild(a);
    already_written = true;
  }
}

Very useful script, but stopped working? edit

I installed this script about a year ago and found it to be very useful. Unfortunately, some months back it just stopped working. Clicking it doesn't seem to do anything. I've tried it from two accounts in two browsers on two computers. Are there any known issues/fixes? Thanks. — Rhododendrites talk \\ 01:43, 30 January 2016 (UTC)Reply

@Rhododendrites: It doesn't work for me either. SLBedit (talk) 14:33, 23 July 2018 (UTC)Reply